Add caps lock signal to home i3 config
This commit is contained in:
parent
f2bfe02cc1
commit
a0461fb106
1 changed files with 6 additions and 2 deletions
|
@ -65,9 +65,13 @@ bindsym $mod+u exec ~/.dotfiles/rofi/scripts/rofi-emoji
|
||||||
bindsym $mod+Shift+x exec killall i3
|
bindsym $mod+Shift+x exec killall i3
|
||||||
|
|
||||||
|
|
||||||
bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks
|
# Send signals to i3 blocks and zsh to tell them that capslock has been pushed
|
||||||
bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks
|
# 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…
Add table
Add a link
Reference in a new issue