From 9c1ac5f7f3df2d6a782f614a3c8aa1f9b132f92e Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Thu, 1 Jun 2023 15:47:10 -0400 Subject: [PATCH] Sound added for custom modes. Default mode sound should only play when switching back to the default mode now. This means we now have ratpoison mode sound, bypassmode sound, default sound for when no mode is being used other than default bindings, and custom, for when you add your on modes in the customizations file. --- scripts/sound.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/sound.py b/scripts/sound.py index 46f74a4..85d971a 100755 --- a/scripts/sound.py +++ b/scripts/sound.py @@ -18,8 +18,10 @@ def on_mode(self,event): 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: + 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 &') + else: + system('play -n synth 0.05 pluck F3 norm -8 : synth 0.05 pluck C4 norm -8 : synth 0.05 pluck F4 norm -8 : synth 0.05 pluck C5 norm -8') 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 &')