aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/Wlogout.sh
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2023-12-04 00:06:37 +0900
committerJaKooLit <jimmielovejay@gmail.com>2023-12-04 00:06:37 +0900
commit2ad7d3373353bc2440892f9bed9295066f93b4ae (patch)
tree74fd8b33e0029261fc19f3259c16c98c8260135a /config/hypr/scripts/Wlogout.sh
parenta7847d0de3b53b84f39664f7dc6c3416213c762e (diff)
return of wlogout. rofi-power is just pain 2 theme
Diffstat (limited to 'config/hypr/scripts/Wlogout.sh')
-rwxr-xr-xconfig/hypr/scripts/Wlogout.sh19
1 files changed, 19 insertions, 0 deletions
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage