diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2022-07-07 15:55:54 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2022-07-07 15:55:54 -0500 |
commit | 38ebf64b07f99de9464905ee5f8aaee1148b6a4f (patch) | |
tree | 1617ef65c4bd54db8f48cf70122ef7b923c623ab /x11 | |
parent | 35a2dd3734f1d31060fe28837cf0e1d947c8d6f4 (diff) | |
download | scripts-38ebf64b07f99de9464905ee5f8aaee1148b6a4f.tar.xz scripts-38ebf64b07f99de9464905ee5f8aaee1148b6a4f.zip |
tons of changes from when website was down
Diffstat (limited to 'x11')
-rwxr-xr-x | x11/xkeyconf | 15 | ||||
-rwxr-xr-x | x11/xsudo | 5 |
2 files changed, 7 insertions, 13 deletions
diff --git a/x11/xkeyconf b/x11/xkeyconf index cea356f..bc310b6 100755 --- a/x11/xkeyconf +++ b/x11/xkeyconf @@ -1,12 +1,5 @@ #!/bin/sh -# Faster repeated keys and less delay before repeating -xset r rate 250 50 & - -# Remap caps to super when held -setxkbmap -option caps:super - -# Remap caps to escape when pressed -killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' - -# Turn off caps lock, just in case it was on prior -xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock +xset r rate 250 50 & # Faster repeated keys and less delay before repeating +setxkbmap -option caps:super # Remap caps to super when held +killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' # Remap caps to escape when pressed +xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock # Turn off caps lock, just in case it was on prior @@ -1,7 +1,8 @@ #!/bin/sh -sudo=doas +sudo=${SUDO:-sudo} while ! echo "$pass" | $sudo -n true; do pass="$(dmenu -p 'Password: ' <&-)" # Ask user for password pass is incorrect (skipped if nopass in enabled) [ "$pass" = '' ] && exit 0 done -echo "$pass" | $sudo xauth -f /root/.Xauthority add $(xauth list $DISPLAY) && echo "$pass" | $sudo "$@" +echo "$pass" | $sudo xauth -f /root/.Xauthority add $(xauth list $DISPLAY) \ + && echo "$pass" | $sudo "$@" |