mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-04-29 17:25:34 +00:00
Automatic DAW mode for Bitwig
This commit is contained in:
parent
32b3e12943
commit
8bf1fbdbea
@ -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
|
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
|
||||
|
11
systemd/user/i3wm-close-window.service
Normal file
11
systemd/user/i3wm-close-window.service
Normal 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
|
Loading…
x
Reference in New Issue
Block a user