add gitignore and update files

This commit is contained in:
m3philis
2025-03-17 21:28:22 +01:00
parent 9eadf45634
commit e798659b5c
51 changed files with 3790 additions and 3 deletions

26
displays/outerhaven-setup Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
PLACE=$1
INTERNAL=$(xrandr | grep eDP | cut -d' ' -f1)
case $PLACE in
single)
for display in $(xrandr | grep -v '^ ' | grep -v '^Screen' | grep ' connected' | cut -d' ' -f1)
do
xrandr --output "${display}" --off
done
xrandr --output "${INTERNAL}" --mode 1920x1080
systemctl --user stop polybar@hdmi.service
systemctl --user stop polybar@external.service
systemctl --user restart polybar@internal.service
;;
work)
xrandr --output "${INTERNAL}" --off
xrandr --output HDMI-2 --auto --right-of DP-1-2
xrandr --output DP-1-2 --auto --primary
systemctl --user restart polybar@hdmi.service
systemctl --user restart polybar@external.service
systemctl --user stop polybar@internal.service
;;
esac