Add caps lock signal to home i3 config

master
Jonathan Hodgson 7 years ago
parent f2bfe02cc1
commit a0461fb106
  1. 8
      i3/config

@ -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

Loading…
Cancel
Save