change the name, kill the wlclock before launching. Also get some parametters to know where to launch it.
This commit is contained in:
parent
66b6d0f634
commit
ec81fcb2bc
2 changed files with 16 additions and 3 deletions
16
clock-start
Executable file
16
clock-start
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
# Take as $1 the position (eg. bottom-left) as $2 and $3, the y and x pos, in px.
|
||||||
|
|
||||||
|
if [ "$1" == "" ]
|
||||||
|
then
|
||||||
|
pos="top-left"
|
||||||
|
else
|
||||||
|
pos="$1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# kill all others wlclocks that are still active.
|
||||||
|
pkill wlclock
|
||||||
|
|
||||||
|
wlclock --layer bottom --position "$pos" --margin $2 $3 $2 $3 --background-colour "#ffffff00" --border-colour "#00000000" --clock-colour "#ffa500" --hand-width 4
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/bash
|
|
||||||
|
|
||||||
wlclock --layer bottom --position bottom-left --margin 0 0 95 87 --background-colour "#ffffff00" --border-colour "#00000000" --clock-colour "#00ffff" --hand-width 4
|
|
Loading…
Reference in a new issue