summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTslil Clingman <hiato1@gmail.com>2014-03-04 18:35:21 +0200
committerTslil Clingman <hiato1@gmail.com>2014-03-04 18:35:21 +0200
commit23de8238428186ad7a4c50ea40f8763c7a4a1298 (patch)
tree83f6125658fbf375a0c9a2b097dacb58599d0eeb
parent3af3b6622ab1c91e622197529817539fe5139f40 (diff)
parentb6baaa20394e4441c1abdf18a209999753e002c4 (diff)
Merge branch 'master' of github.com:tslilc/scripts
-rwxr-xr-xsc14
-rwxr-xr-xwls2
2 files changed, 8 insertions, 8 deletions
diff --git a/sc b/sc
index 8fa6029..d543338 100755
--- a/sc
+++ b/sc
@@ -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"
diff --git a/wls b/wls
index 5f51de9..bad8319 100755
--- a/wls
+++ b/wls
@@ -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