From ec81fcb2bc7356032673b26322d675e1e8a74819 Mon Sep 17 00:00:00 2001 From: primardj Date: Sun, 24 Mar 2024 23:39:20 +0000 Subject: [PATCH] change the name, kill the wlclock before launching. Also get some parametters to know where to launch it. --- clock-start | 16 ++++++++++++++++ wlclock-start.sh | 3 --- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100755 clock-start delete mode 100755 wlclock-start.sh 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