From 12ceef26115d9e665ce9088734b4472ba030f090 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 23 Nov 2022 20:15:36 -0500 Subject: [PATCH] Fixed the if statement in sound script. --- scripts/sound.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/sound.py b/scripts/sound.py index 42d9453..ef07342 100755 --- a/scripts/sound.py +++ b/scripts/sound.py @@ -11,10 +11,10 @@ def on_new_window(self,i3): def on_mode(self,event): mode= event.change - 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 == 'default': + 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: + 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): system('play -qnV0 synth pi fade 0 .25 .15 pad 0 1 reverb overdrive riaa norm -8 speed 1')