Bypass mode added. In this mode, all keys except the toggle bypass mode key, mod+shift+backspace, will be passed to the application. As far as I know, the toggle key should not conflict with anything.
This commit is contained in:
parent
9efa0b110d
commit
8b30abc8b6
9
i38.sh
9
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"
|
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
|
EOF
|
||||||
|
|
||||||
# Create ratpoison mode if requested.
|
# Create ratpoison mode if requested.
|
||||||
|
@ -14,10 +14,12 @@ def on_new_window(self,i3):
|
|||||||
|
|
||||||
def on_mode(self,event):
|
def on_mode(self,event):
|
||||||
mode= event.change
|
mode= event.change
|
||||||
if mode == 'default':
|
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 reverse &')
|
|
||||||
else:
|
|
||||||
system('play -qV0 "|sox -np synth .07 sq 400" "|sox -np synth .5 sq 800" fade h 0 .5 .5 norm -20 &')
|
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):
|
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 &')
|
#system('play -qnV0 synth pi fade 0 .25 .15 pad 0 1 reverb overdrive riaa norm -8 speed 1 &')
|
||||||
|
Loading…
Reference in New Issue
Block a user