diff options
| author | Tslil Clingman <hiato1@gmail.com> | 2014-03-03 22:14:09 +0200 |
|---|---|---|
| committer | Tslil Clingman <hiato1@gmail.com> | 2014-03-03 22:14:09 +0200 |
| commit | e09595fc13a59e4b84674b0875f66e6afcd801b2 (patch) | |
| tree | ab737109e42abd9ace809972cdc75b99a8ac5188 | |
| parent | f2b32d25177be465c7209072eb93ae14fc16dfa3 (diff) | |
Silly spaces in passwords not being captured
| -rwxr-xr-x | sc | 14 | ||||
| -rwxr-xr-x | vcs | 8 | ||||
| -rwxr-xr-x | wls | 2 |
3 files changed, 12 insertions, 12 deletions
@@ -1,13 +1,13 @@ # Quick hack to manage screen hotplugging #!/bin/dash case "$1" in - "d") xrandr --nograb --output CRT1 --off --output LVDS --auto;; - "r") xrandr --nograb --output CRT1 --auto --primary --output LVDS --off;; - "c") xrandr --nograb --output CRT1 --auto --output LVDS --auto;; - "n") xrandr --nograb --output LVDS --auto --above CRT1 --output CRT1 --auto;; - "s") xrandr --nograb --output LVDS --auto --below CRT1 --output CRT1 --auto;; - "e") xrandr --nograb --output LVDS --auto --right-of CRT1 --output CRT1 --auto;; - "w") xrandr --nograb --output LVDS --auto --left-of CRT1 --output CRT1 --auto;; + "d") xrandr --nograb --output VGA-0 --off --output LVDS --auto;; + "r") xrandr --nograb --output VGA-0 --auto --primary --output LVDS --off;; + "c") xrandr --nograb --output VGA-0 --auto --output LVDS --auto;; + "n") xrandr --nograb --output LVDS --auto --above VGA-0 --output VGA-0 --auto;; + "s") xrandr --nograb --output LVDS --auto --below VGA-0 --output VGA-0 --auto;; + "e") xrandr --nograb --output LVDS --auto --right-of VGA-0 --output VGA-0 --auto;; + "w") xrandr --nograb --output LVDS --auto --left-of VGA-0 --output VGA-0 --auto;; *) xrandr --nograb ;; esac; #feh --bg-center "$BKG" @@ -17,12 +17,12 @@ rstr=" %F{28}●%f" if [[ -d ".git" || -d "../.git" || -d "../../.git" ]]; then outp=$(git status) VCS_STR="×" - VCS_INF=$(echo $outp | head -n 1 | cut -d' ' -f 4-) - check $outp "^# Untracked files:$" + VCS_INF=$(echo $outp | head -n 1 | cut -d' ' -f 3-) + check $outp "^Untracked files:$" [[ $? = 0 ]] && VCS_NEW=$nstr - check $outp "^# Changes not staged for commit:$" + check $outp "^Changes not staged for commit:$" [[ $? = 0 ]] && VCS_MOD=$mstr - check $outp "^# Changes to be committed:$" + check $outp "^Changes to be committed:$" [[ $? = 0 ]] && VCS_REC=$rstr else if [[ -d "_darcs" || -d "../_darcs" || -d "../../_darcs" ]]; then fls=$(darcs show files) @@ -13,7 +13,7 @@ read ssid if [ ! -f "$dird/$ssid" ]; then echo Creating new network profile, enter passphrase: read pass - wpa_passphrase $ssid $pass > $dird/$ssid + wpa_passphrase $ssid "$pass" > $dird/$ssid echo "Edit file (y/[n])? " read edit if [ "$edit" == "y" ]; then |
