Stow scripts

This commit is contained in:
2023-11-25 09:35:34 -05:00
parent 547eb10705
commit b41a4141f2
41 changed files with 2 additions and 2 deletions

View File

@ -0,0 +1,19 @@
#!/usr/bin/env python3
import i3ipc, os
def onWindowClose(conn, win):
if(win.ipc_data['container']['window_properties']['class'] == 'Bitwig Studio'):
print(win.ipc_data['container']['window_properties']['title'])
if(win.ipc_data['container']['window_properties']['title'] !=
'DSP Performance Graph'):
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()

View File

@ -0,0 +1,13 @@
#!/bin/bash
# Stop all polybar instances
killall -q polybar
while pgrep -x polybar >/dev/null; do sleep 0.1; done
for monitor in $(xrandr -q | grep -e "\sconnected\s" | cut -d' ' -f1); do
if [ $monitor == 'DP-2' ] || [ $monitor == 'LVDS-1' ]; then
MONITOR=$monitor polybar aqua &
fi
done

View File

@ -0,0 +1,7 @@
#!/bin/bash
# Stop all waybar instances
killall -q waybar
while pgrep -x waybar >/dev/null; do sleep 0.1; done
waybar &