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

7
displays/lock Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
#scrot screenshot.png -m -e 'mv $f /tmp/'
#convert /tmp/screenshot.png -blur 0x7 /tmp/screenshotblur.png
#i3lock -t -i /tmp/screenshotblur.png
i3lock -t -i $(find $HOME/pictures/lockscreen -type f | shuf -n1)

BIN
displays/lock_wallpaper.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

BIN
displays/lock_wallpaper.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 896 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

35
displays/motherbase-setup Executable file
View File

@@ -0,0 +1,35 @@
#!/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
;;
home)
xrandr --output "${INTERNAL}" --off
xrandr --output DP1-2 --primary --auto
xrandr --output DP2-1 --left-of DP2-2 --auto
systemctl --user stop polybar@hdmi.service
systemctl --user restart polybar@external.service
systemctl --user restart polybar@internal.service
;;
work)
xrandr --output "${INTERNAL}" --off
xrandr --output HDMI2 --auto --right-of DP1-2
xrandr --output DP1-2 --auto --primary
systemctl --user restart polybar@hdmi.service
systemctl --user restart polybar@external.service
systemctl --user stop polybar@internal.service
;;
esac

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

58
displays/shadowmoses-setup Executable file
View File

@@ -0,0 +1,58 @@
#!/bin/bash
set -x
PLACE=$1
#xrandr | grep -A1 'DisplayPort.* connected' | while read -r display
#do
# echo $display | tail -n1 | grep 2560
# if [ $? -eq 0 ]
# then
# WQHD=$(echo $display | head -n1 | cut -d" " -f1)
# else
# FULLHD=$(echo $display | head -n1 | cut -d" " -f1)
# fi
#done
INTERNAL=$(xrandr | grep eDP | cut -d' ' -f1)
QUADHD_RIGHT=DisplayPort-0
QUADHD_LEFT=DisplayPort-1
#deactivate()
case $PLACE in
single)
for display in $(xrandr --query | grep -v ' connected' | cut -d' ' -f1)
do
if [ $display == "eDP" ]
then
true
else
xrandr --output "${display}" --off
fi
done
xrandr --output "${INTERNAL}" --auto --primary
systemctl --user restart polybar@main.service
systemctl --user stop polybar@quadhd_left.service
systemctl --user stop polybar@quadhd_right.service
;;
home)
xrandr --output "${INTERNAL}" --off
xrandr --output "${QUADHD_LEFT}" --auto --primary
xrandr --output "${QUADHD_RIGHT}" --auto --right-of "${QUADHD_LEFT}"
systemctl --user stop polybar@main.service
systemctl --user restart polybar@quadhd_left.service
systemctl --user restart polybar@quadhd_right.service
;;
home-single)
xrandr --output "${INTERNAL}" --off
xrandr --output "${QUADHD_RIGHT}" --off
xrandr --output "${QUADHD_LEFT}" --auto --primary
systemctl --user stop polybar@main.service
systemctl --user restart polybar@quadhd_left.service
systemctl --user stop polybar@quadhd_right.service
;;
esac

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB