From cfaef26e8718916adcc68fbfb63b15f2389b2cd2 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Fri, 6 Oct 2023 23:10:55 +0200 Subject: move all the files --- shell-scripts/sysact | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100755 shell-scripts/sysact (limited to 'shell-scripts/sysact') diff --git a/shell-scripts/sysact b/shell-scripts/sysact deleted file mode 100755 index 4bb92dc..0000000 --- a/shell-scripts/sysact +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -# A dmenu wrapper script for system functions. -export WM="dwm" -ctl='systemctl' - -wmpid(){ # This function is needed if there are multiple instances of the window manager. - echo "$(pidof dwm)" -} - -case "$(printf "🔒 lock\n🚪 leave $WM\n♻️ renew $WM\n🐻 hibernate\n🔃 reboot\n🖥️shutdown\n💤 sleep\n📺 display off" | dmenu -i -p 'Action: ')" in - '🔒 lock') slock ;; - "🚪 leave $WM") kill -TERM "$(wmpid)" ;; - "♻️ renew $WM") kill -HUP "$(wmpid)" ;; - '🐻 hibernate') slock $ctl hibernate -i ;; - '💤 sleep') slock $ctl suspend -i ;; - '🔃 reboot') $ctl reboot -i ;; - '🖥️shutdown') $ctl poweroff -i ;; - '📺 display off') xset dpms force off ;; - *) exit 1 ;; -esac -- cgit v1.2.3