summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbattery (renamed from bat)0
-rwxr-xr-xlock1
-rwxr-xr-xrunas6
-rwxr-xr-xwls2
4 files changed, 6 insertions, 3 deletions
diff --git a/bat b/battery
index d98974c..d98974c 100755
--- a/bat
+++ b/battery
diff --git a/lock b/lock
index 6cf218d..aad1615 100755
--- a/lock
+++ b/lock
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
killall -s HUP gpg-agent
+keychain --clear
xset dpms force off
slock
diff --git a/runas b/runas
index 89f45c1..9ebb527 100755
--- a/runas
+++ b/runas
@@ -9,7 +9,7 @@ export LOCALE="en_ZA.UTF-8"
export PATH=$PATH:.
export HISTFILE=$HOME/.histfile
export HISTSIZE=8192
-umask 077
+umask 033
set -o emacs
set -o utf8-mode
PS1='${ local e=$?; local r=""; (( $e )) && r="<$e>";
@@ -49,6 +49,8 @@ else
cd $HOME
printf '\033k'"$1"'\033\\'
xhost +local:
- sudo -u $1 -s /home/$1/$1
+ usr=$1
+ shift
+ sudo -u $usr -s /home/$usr/$usr $*
xhost -local:
fi;
diff --git a/wls b/wls
index c6229b4..62cf55a 100755
--- a/wls
+++ b/wls
@@ -36,7 +36,7 @@ if [ ! -f "$dird/$ssid" ]; then
echo Creating new network profile, enter passphrase:
read pass
wpa_passphrase $ssid "$pass" > $dird/$ssid
- echo "Edit file (y/[n])? "
+ echo -n "Edit file (y/[n])? "
read edit
if [ "$edit" == "y" ]; then
$EDITOR $dird/$ssid