From a0461fb10644d9c589636487fd839a1131678e84 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Fri, 27 Apr 2018 18:45:46 +0100 Subject: [PATCH] Add caps lock signal to home i3 config --- i3/config | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/i3/config b/i3/config index d3728a04..ab27806a 100644 --- a/i3/config +++ b/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