From 2ad7d3373353bc2440892f9bed9295066f93b4ae Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 4 Dec 2023 00:06:37 +0900 Subject: return of wlogout. rofi-power is just pain 2 theme --- config/hypr/scripts/Wlogout.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 config/hypr/scripts/Wlogout.sh (limited to 'config/hypr/scripts/Wlogout.sh') diff --git a/config/hypr/scripts/Wlogout.sh b/config/hypr/scripts/Wlogout.sh new file mode 100755 index 00000000..c8ce86c1 --- /dev/null +++ b/config/hypr/scripts/Wlogout.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# If you have 1440p, better to use this +#wlogout --protocol layer-shell -b 5 -T 600 -B 600 & + +# for 1080p +wlogout --protocol layer-shell -b 5 -T 450 -B 450 & + + +# Capture the PID of the wlogout process +wlogout_pid=$! + +# Wait for up to 30 seconds for wlogout to exit gracefully +timeout 30s tail --pid $wlogout_pid -f /dev/null + +# If wlogout is still running after the timeout, forcefully kill it +if ps -p $wlogout_pid > /dev/null; then + kill -KILL $wlogout_pid +fi -- cgit v1.2.3