From 5071d68864657ac928b3f39bc3da37770f3d94bc Mon Sep 17 00:00:00 2001 From: Jeremiah Ticket Date: Wed, 23 Nov 2022 14:10:22 -0700 Subject: [PATCH] Commented out mode detection code for later use; will still play sound on mode change --- scripts/sound.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/sound.py b/scripts/sound.py index a39f17a..efdd82f 100644 --- a/scripts/sound.py +++ b/scripts/sound.py @@ -9,7 +9,11 @@ def on_new_window(self,i3): system('play -n synth .25 sin 440:880 sin 480:920 remix - norm -3 pitch -500') def on_mode(self,i3): - system('play -qV0 "|sox -np synth .07 sq 400" "|sox -np synth .5 sq 800" fade h 0 .5 .5 norm -20') +# mode = i3ipc.ModeEvent(['change']) +# if mode == 'resize': + 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') i3 = i3ipc.Connection()