Fixed the if statement in sound script.
This commit is contained in:
parent
5837a1f5a4
commit
12ceef2611
@ -11,10 +11,10 @@ def on_new_window(self,i3):
|
|||||||
|
|
||||||
def on_mode(self,event):
|
def on_mode(self,event):
|
||||||
mode= event.change
|
mode= event.change
|
||||||
if mode == 'ratpoison':
|
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')
|
|
||||||
elif 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')
|
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')
|
||||||
|
|
||||||
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