dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit 745d0a59b08e56bab9567a47bb7dd5e1072c55aa
parent 7f073a21c11dd42150833257f4a75f2845d42708
Author: Duncaen <mail@duncano.de>
Date:   Sat, 16 May 2015 16:17:12 +0200

New: bin/dmenu_power

Diffstat:
bin/dmenu_power | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/bin/dmenu_power b/bin/dmenu_power @@ -0,0 +1,10 @@ +#!/bin/mksh + +: ${DMENU:=dmenu} +ret=$(echo "Suspend\nHibernate\nReboot\nShutdown" | ${DMENU} -p "Power:" -i | tr '[A-Z]' '[a-z]') +case "$ret" in + suspend) sudo zzz ;; + hibernate) sudo ZZZ ;; + reboot) sudo reboot ;; + shutdown) sudo halt ;; +esac