From a28487fe6fbac72c7b1a752acab42dcc6ab46476 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Wed, 28 May 2025 14:24:58 -0400 Subject: Post server fs corruption --- scripts/desktop/wlsunset-toggle | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/desktop/wlsunset-toggle (limited to 'scripts/desktop/wlsunset-toggle') diff --git a/scripts/desktop/wlsunset-toggle b/scripts/desktop/wlsunset-toggle new file mode 100755 index 0000000..7dcd06e --- /dev/null +++ b/scripts/desktop/wlsunset-toggle @@ -0,0 +1,10 @@ +#! /usr/bin/env sh +# | +CORDS=$(cat $HOME/.config/home-cords || echo '') +LAT=$(echo $CORDS | cut -d '|' -f 1) +LONG=$(echo $CORDS | cut -d '|' -f 2) +if pidof wlsunset; then + pkill wlsunset +else + wlsunset -l $LAT -L $LONG & +fi -- cgit v1.2.3-101-g0448