From 24370abb5d418b35a6291cbdb082e121362af45f Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 3 Nov 2017 03:27:33 -0400 Subject: [PATCH] Convert lock.sh from tabs to spaces --- .config/i3/lock.sh | 56 +++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.config/i3/lock.sh b/.config/i3/lock.sh index 578e501..664f3c3 100755 --- a/.config/i3/lock.sh +++ b/.config/i3/lock.sh @@ -1,11 +1,11 @@ #!/bin/bash lock() { - killall -SIGHUP gpg-agent - setxkbmap -option 'ctrl:nocaps' -option "shift:both_capslock" + killall -SIGHUP gpg-agent + setxkbmap -option 'ctrl:nocaps' -option "shift:both_capslock" # needs i3lock-color - i3lock --ignore-empty-password --clock --indicator -f --color=222222 \ + i3lock --ignore-empty-password --clock --indicator -f --color=222222 \ --textcolor=eeeeeeee --timecolor=eeeeeeee --datecolor=cccccccc \ --ringcolor=333333ff --line-uses-ring --insidecolor=00000000 \ --insidewrongcolor=00000000 --insidevercolor=00000000 \ @@ -15,8 +15,8 @@ lock() { } case "$1" in - lock) - lock + lock) + lock # if given an argument, turn off the screen after that many seconds if [[ $2 && ${2-x} ]] @@ -24,29 +24,29 @@ case "$1" in sleep $2 xset dpms force off fi - ;; - logout) - i3-msg exit - ;; - suspend) - lock && systemctl suspend - ;; - hibernate) - lock && systemctl hibernate - ;; - reboot) - systemctl reboot - ;; - shutdown) - systemctl poweroff - ;; - pick) - $0 $(echo -e "lock\nlogout\nsuspend\nhibernate\nreboot\nshutdown" | rofi -dmenu -i) - ;; - *) - echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown|pick}" - exit 2 - ;; + ;; + logout) + i3-msg exit + ;; + suspend) + lock && systemctl suspend + ;; + hibernate) + lock && systemctl hibernate + ;; + reboot) + systemctl reboot + ;; + shutdown) + systemctl poweroff + ;; + pick) + $0 $(echo -e "lock\nlogout\nsuspend\nhibernate\nreboot\nshutdown" | rofi -dmenu -i) + ;; + *) + echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown|pick}" + exit 2 + ;; esac exit 0