From 7df7120b1ae66ed0e9a7c6ed9b224ba44ea1d920 Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Tue, 29 Apr 2025 09:25:30 +0530 Subject: Updates --- .local/bin/desktop/i3exit | 32 +++++++++----------------------- .local/bin/desktop/kiosk | 3 +++ 2 files changed, 12 insertions(+), 23 deletions(-) create mode 100755 .local/bin/desktop/kiosk (limited to '.local/bin/desktop') diff --git a/.local/bin/desktop/i3exit b/.local/bin/desktop/i3exit index 0be387c..5aea730 100755 --- a/.local/bin/desktop/i3exit +++ b/.local/bin/desktop/i3exit @@ -22,29 +22,15 @@ lock_desktop() { } case "$command" in - lock) - lock_desktop - xset dpms force off - ;; - logout) - switch-session - i3-msg exit - ;; - switch_user) - dm-tool switch-to-greeter - ;; - suspend) - lock_desktop; $logind suspend - ;; - hibernate) - system_control lock_desktop && $logind hibernate - ;; - reboot) - system_control $logind reboot - ;; - shutdown) - system_control $logind poweroff - ;; + off) xset dpms force off ;; + lock) lock_desktop; xset dpms force off ;; + logout) switch-session; i3-msg exit ;; + switch_user) dm-tool switch-to-greeter ;; + suspend) $logind suspend ;; + sleep) lock_desktop; $logind suspend ;; + hibernate) system_control lock_desktop && $logind hibernate ;; + reboot) system_control $logind reboot ;; + shutdown) system_control $logind poweroff ;; *) echo "== ! i3exit: missing or invalid argument ! ==" echo "Try again with: lock | logout | switch_user | suspend | hibernate | reboot | shutdown" diff --git a/.local/bin/desktop/kiosk b/.local/bin/desktop/kiosk new file mode 100755 index 0000000..64fd977 --- /dev/null +++ b/.local/bin/desktop/kiosk @@ -0,0 +1,3 @@ +#!/bin/sh + +librewolf -P kiosk --kiosk -- cgit v1.2.3