From 57cc32e6814ebd50c124044201cfe3317c3d219d Mon Sep 17 00:00:00 2001 From: Jeremiah Ticket Date: Wed, 23 Nov 2022 15:13:28 -0700 Subject: [PATCH] Added workspace sound. --- scripts/sound.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/sound.py b/scripts/sound.py index efdd82f..620b087 100755 --- a/scripts/sound.py +++ b/scripts/sound.py @@ -15,11 +15,15 @@ def on_mode(self,i3): # 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') +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') + i3 = i3ipc.Connection() i3.on('window::new', on_new_window) i3.on('mode', on_mode) # get current mode: # var = i3ipc.ModeEvent(data) +i3.on('workspace::focus', on_workspace_focus) i3.main()