dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.margiolis.net/dotfiles.git
Log | Files | Refs | README | LICENSE

sysact (328B)


      1 #!/bin/sh
      2 
      3 cmds="\
      4 lock            slock
      5 leave_dwm       kill -TERM $(pidof -s dwm)
      6 renew_dwm       kill -HUP $(pidof -s dwm)
      7 reboot          ${reb:-doas reboot}
      8 shutdown        ${shut:-doas shutdown -p now}"
      9 
     10 choice="$(echo "${cmds}" | cut -d ' ' -f 1 | dmenu)" || exit 1
     11 `echo "${cmds}" | grep "^${choice}" | cut -d ' ' -f2-`