summaryrefslogtreecommitdiff
path: root/.local/bin/desktop
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2025-04-29 09:25:30 +0530
committerVikas Kushwaha <dev@vikas.rocks>2025-04-29 09:28:54 +0530
commit7df7120b1ae66ed0e9a7c6ed9b224ba44ea1d920 (patch)
tree1a9f78045786dbbad346204d3957194af04988e4 /.local/bin/desktop
parenta2860b969e97e47a2b1c0ddb7161adb5b35c06f3 (diff)
Updates
Diffstat (limited to '.local/bin/desktop')
-rwxr-xr-x.local/bin/desktop/i3exit32
-rwxr-xr-x.local/bin/desktop/kiosk3
2 files changed, 12 insertions, 23 deletions
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