Adds / tweaks a bunch of scripts
This commit is contained in:
parent
887f479d1f
commit
285165913d
13 changed files with 112 additions and 30 deletions
|
@ -31,7 +31,7 @@ function type_password(){
|
|||
# Then revert back to colemak
|
||||
setxkbmap -layout gb,gb -variant "colemak," -option grp:shifts_toggle
|
||||
xset r rate 200 70
|
||||
xinput --list | grep -Ei 'ErgoDox EZ\s+id' | grep -oE 'id=[0-9]+' | cut -d'=' -f2 | xargs -r setxkbmap -layout gb -device
|
||||
xinput --list | grep -Ei 'ErgoDox EZ Glow\s+id' | grep -oE 'id=[0-9]+' | cut -d'=' -f2 | xargs -r setxkbmap -layout gb -device
|
||||
}
|
||||
function copy_password(){
|
||||
local password="$1"
|
||||
|
|
|
@ -33,8 +33,7 @@ hostname="$(hostname)"
|
|||
if isPhone; then
|
||||
selection="$(echo -e "$shutdown\n$reboot\n$lock\n$logout" | selectcommand)"
|
||||
else
|
||||
notify-send "Not phone"
|
||||
selection="$(echo -e "$shutdown\n$reboot\n$lock\n$logout\n$suspend" | selectcommand)"
|
||||
selection="$(echo -e "$lock\n$shutdown\n$reboot\n$logout\n$suspend" | selectcommand)"
|
||||
fi
|
||||
|
||||
sleep .2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue