diff --git a/i38.sh b/i38.sh index e674dbe..791ed2c 100755 --- a/i38.sh +++ b/i38.sh @@ -367,6 +367,15 @@ bindsym Control+Shift+F9 move container to workspace number \$ws9, exec spd-say bindsym Control+Shift+F10 move container to workspace number \$ws10, exec spd-say -P important -Cw "moved to workspace 10" +# A mode that will pass all keys except $mod+shift+backspace to the current application. +# Use $mod+shift+backspace to exit the mode. +bindsym $mod+shift+BackSpace mode "bypass" +mode "bypass" { +# Exit bypass mode. +bindsym $mod+Shift+BackSpace mode "default" +} + + EOF # Create ratpoison mode if requested. diff --git a/scripts/sound.py b/scripts/sound.py index 9fd3e28..46f74a4 100755 --- a/scripts/sound.py +++ b/scripts/sound.py @@ -14,10 +14,12 @@ def on_new_window(self,i3): def on_mode(self,event): mode= event.change - if mode == 'default': - system('play -qV0 "|sox -np synth .07 sq 400" "|sox -np synth .5 sq 800" fade h 0 .5 .5 norm -20 reverse &') - else: + if mode == 'ratpoison': system('play -qV0 "|sox -np synth .07 sq 400" "|sox -np synth .5 sq 800" fade h 0 .5 .5 norm -20 &') + elif mode == 'bypass': + system('play -nqV0 synth .1 saw 700 saw 1200 delay 0 .04 remix - norm -6') + else: + system('play -qV0 "|sox -np synth .07 sq 400" "|sox -np synth .5 sq 800" fade h 0 .5 .5 norm -20 reverse &') def on_workspace_focus(self,i3): #system('play -qnV0 synth pi fade 0 .25 .15 pad 0 1 reverb overdrive riaa norm -8 speed 1 &')