mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-04-29 17:25:34 +00:00
Synth power menu
This commit is contained in:
parent
8bf1fbdbea
commit
4d98c61049
15
scripts/audio/synth-power-prompt.sh
Executable file
15
scripts/audio/synth-power-prompt.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Script to bring up a prompt to set synth power state.
|
||||
|
||||
current='Keep current state'
|
||||
off='Power synths off'
|
||||
on='Power synths on'
|
||||
selected=$(echo -e "${current}\n${off}\n${on}" | rofi -dmenu -p \
|
||||
'Change synth power' -theme ~/.config/rofi/themes/aqua)
|
||||
|
||||
if [ "$selected" == "$off" ]; then
|
||||
python ~/.config/scripts/audio/synth-power.py -o
|
||||
elif [ "$selected" == "$on" ]; then
|
||||
python ~/.config/scripts/audio/synth-power.py -d
|
||||
fi
|
@ -4,10 +4,13 @@ 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')
|
||||
os.system('sh ~/.config/scripts/audio/aquamix.sh -n')
|
||||
os.system('sh ~/.config/scripts/audio/synth-power-prompt.sh')
|
||||
|
||||
i3 = i3ipc.Connection()
|
||||
i3.on('window::close', onWindowClose)
|
||||
i3.main()
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user