dotfiles/dotconfig/bin/clock-start
2024-07-20 22:10:54 +02:00

16 lines
392 B
Bash
Executable file

#!/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