From 964ba649d2897349150aa8e43a1316a529023c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Mon, 15 Jan 2024 22:34:45 +0300 Subject: [PATCH] deskenv event scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferit Yiğit BALABAN --- lock.sh | 2 +- poweroff.sh | 2 +- reboot.sh | 2 +- sleep.sh | 7 +++++++ 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 sleep.sh diff --git a/lock.sh b/lock.sh index db3026b..4ebd471 100755 --- a/lock.sh +++ b/lock.sh @@ -3,4 +3,4 @@ # Ferit Yiğit BALABAN , 2023 # playerctl pause -swaylock -efklu -i "mounts/31_shoka/pictures/landscape/024.jpg" +swaylock -efklu -i "$HOME/.config/navi/img_lockscreen" \ No newline at end of file diff --git a/poweroff.sh b/poweroff.sh index 6a64b8d..deeca16 100755 --- a/poweroff.sh +++ b/poweroff.sh @@ -2,6 +2,6 @@ dt=$(date -Iseconds) # unison=$($HOME/scripts/unison_sync.sh) rm "$HOME/.cache/cliphist/db" -python "$HOME/scripts/resync_vault.py" +#python "$HOME/scripts/resync_vault.py" echo "[$dt] INFO: navi, powering off" >> navi.log poweroff diff --git a/reboot.sh b/reboot.sh index 75ef602..968e531 100644 --- a/reboot.sh +++ b/reboot.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash dt=$(date +'%d/%m/%y-%H.%M.%S') rm "$HOME/.cache/cliphist/db" -python "$HOME/scripts/resync_vault.py" +#python "$HOME/scripts/resync_vault.py" echo "[$dt] navi restarting..." >> $HOME/navi.log $HOME/scripts/modeset.py --shutdown reboot diff --git a/sleep.sh b/sleep.sh new file mode 100644 index 0000000..7db3b46 --- /dev/null +++ b/sleep.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# +# +# +# +playerctl pause +systemctl suspend