Add caps lock signal to home i3 config

This commit is contained in:
Jonathan Hodgson 2018-04-27 18:45:46 +01:00
parent 67bd0c9d13
commit 8a6c4e0102

View file

@ -65,9 +65,13 @@ bindsym $mod+u exec ~/.dotfiles/rofi/scripts/rofi-emoji
bindsym $mod+Shift+x exec killall i3
bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks
bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks
# Send signals to i3 blocks and zsh to tell them that capslock has been pushed
# The message to zsh is technically a "window change" which causes zsh to re-draw the prompt
# https://unix.stackexchange.com/questions/440184/update-zsh-ps1-propt-on-keypress
bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks && pkill -SIGWINCH zsh
#Send a message to i3blocks to say that numlock has been pushed
bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks