small fixes
This commit is contained in:
parent
d85559dac7
commit
2655ac7e28
|
@ -4,7 +4,7 @@ source $ZDOTDIR/configs/setup
|
|||
source $ZDOTDIR/configs/widgets
|
||||
source $ZDOTDIR/configs/bindings
|
||||
source $ZDOTDIR/configs/aliases
|
||||
source $ZDOTDIR/configs/host-setup
|
||||
[ -r $ZDOTDIR/configs/host-setup ] && source $ZDOTDIR/configs/host-setup
|
||||
|
||||
source $ZDOTDIR/plugins/fzf/bindings.zsh
|
||||
source $ZDOTDIR/plugins/autopyenv/autopyenv.zsh
|
||||
|
|
|
@ -12,6 +12,10 @@ setmap() {
|
|||
" Keymap set" "Layout: $(xkbcomp :0 - | grep -oP "(?<=pc[_+])([^_+]+)(?=[_+])" | tr "(" " " | head -c -2)"
|
||||
fi
|
||||
echo "$1" >"$statefile"
|
||||
xset r rate 300 50
|
||||
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock
|
||||
killall xcape 2>/dev/null
|
||||
xcape -e 'Super_L=Escape'
|
||||
}
|
||||
|
||||
rotatemap() {
|
||||
|
@ -35,7 +39,6 @@ rotatemap() {
|
|||
setmap "$first"
|
||||
}
|
||||
|
||||
DISPLAY=:0
|
||||
|
||||
notify=true
|
||||
while getopts dq flag; do
|
||||
|
@ -51,10 +54,5 @@ done
|
|||
|
||||
rotatemap
|
||||
|
||||
xset r rate 300 50
|
||||
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock
|
||||
killall xcape 2>/dev/null
|
||||
xcape -e 'Super_L=Escape'
|
||||
|
||||
# sleep 0.03
|
||||
# [ "$1" != "-n" ] && pkill -RTMIN+15 dwmblocks
|
||||
|
|
Loading…
Reference in New Issue