Automatic DAW mode for Bitwig

This commit is contained in:
Christian Colglazier 2021-02-20 19:25:30 -05:00
parent 32b3e12943
commit 8bf1fbdbea
4 changed files with 33 additions and 0 deletions

View File

@ -219,6 +219,8 @@ for_window [instance="^sun-awt-X11-XDialogPeer$" title="^Complete Installation$"
# Bitwig
for_window [class="^Bitwig Studio$"] gaps inner set 0; gaps outer set 0
for_window [class="^Bitwig Studio$"] exec python ~/.config/scripts/audio/synth-power.py -d
for_window [class="^Bitwig Studio$"] exec sh ~/.config/scripts/audio/aquamix.sh -d
bindsym $mod+F5 gaps inner current set 0; gaps outer current set 0
bindsym $mod+F6 gaps inner current set $inner; gaps outer current set $outer

View 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()

View File

@ -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

View File

@ -0,0 +1,11 @@
[Unit]
Description=i3wm close window service
[Service]
RemainAfterExit=true
ExecStart=python %h/.config/scripts/desktop/i3wm-close-window.py
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target