cem-utils

Random utilities
git clone git://git.ckyln.com/~cem/cem-utils.git
Log | Files | Refs | README

commit 80336d3dccfa77ccbc33b41c87805bb1b6e63760
parent 8e87b9723934a09fdf95ae318445795ecd468c9a
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon,  3 Feb 2020 12:23:56 +0300

nap-hooks: shorten case

Diffstat:
Mnap-hooks/user-hooks | 10++--------
1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/nap-hooks/user-hooks b/nap-hooks/user-hooks @@ -21,12 +21,6 @@ env="DISPLAY=$display" [ -e "$home/.Xauthority" ] && env="$env XAUTHORITY=$home/.Xauthority" || error "Could not find user's Xauthority file" case ${0##*/} in - 99-onresume) - out "On resume" - su -c "$env $home/.onresume" "$user" - ;; - 99-onsuspend) - out "On suspend" - su -c "$env $home/.onsuspend" "$user" - ;; + 99-onresume) out "Running $home/.onresume" ; su -c "$env $home/.onresume" "$user" ;; + 99-onsuspend) out "Running $home/.onsuspend" ; su -c "$env $home/.onsuspend" "$user" ;; esac