dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit dff66cd1efb36afd54dd6dcf2fdaa9475d5646c1
parent 54f691a0785072bbe48c7f519ed157a3881a7f06
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue, 14 Apr 2020 22:10:38 -0400

sysact added

Diffstat:
A.local/bin/sysact | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/.local/bin/sysact b/.local/bin/sysact @@ -0,0 +1,15 @@ +#!/bin/sh + +# A dmenu wrapper script for system functions. + +cmds="\ +lock screen slock +leave dwm kill -TERM $(pidof -s dwm) +refresh dwm kill -HUP $(pidof -s dwm) +reboot sudo -A reboot +shutdown sudo -A shutdown -h now +" + +choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu)" + +`echo "$cmds" | grep "^$choice " | cut -d ' ' -f2`