diff --git a/clock-start b/clock-start new file mode 100755 index 0000000..6614030 --- /dev/null +++ b/clock-start @@ -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 diff --git a/wlclock-start.sh b/wlclock-start.sh deleted file mode 100755 index 5a005f6..0000000 --- a/wlclock-start.sh +++ /dev/null @@ -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