mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-06-30 17:22:02 +00:00
Automatic DAW mode for Bitwig
This commit is contained in:
13
scripts/desktop/i3wm-close-window.py
Normal file
13
scripts/desktop/i3wm-close-window.py
Normal file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import i3ipc, os
|
||||
|
||||
def onWindowClose(conn, win):
|
||||
if(win.ipc_data['container']['window_properties']['class'] == 'Bitwig Studio'):
|
||||
os.system('sh ~/dotfiles/scripts/audio/aquamix.sh -n')
|
||||
|
||||
i3 = i3ipc.Connection()
|
||||
i3.on('window::close', onWindowClose)
|
||||
i3.main()
|
||||
|
||||
|
@ -107,7 +107,14 @@ function setup {
|
||||
fi
|
||||
}
|
||||
|
||||
function systemd {
|
||||
echo 'Setting up custom systemd services...'
|
||||
systemctl --user enable es-9
|
||||
systemctl --user enable i3wm-close-window
|
||||
}
|
||||
|
||||
setup
|
||||
systemd
|
||||
update
|
||||
dotfiles
|
||||
emacs
|
||||
|
Reference in New Issue
Block a user