display stuff i guess

This commit is contained in:
h 2023-10-10 16:53:57 -04:00
parent 7e43e05a73
commit a7e4592a9c
5 changed files with 19 additions and 1 deletions

View File

@ -10,6 +10,8 @@ else
bspc monitor -d 1 101 bspc monitor -d 1 101
fi fi
echo $(cat /etc/hostname) > "${XDG_CACHE_HOME}"/device_hostname
bspc wm -O DP-0 HDMI-0 bspc wm -O DP-0 HDMI-0
echo "landscape" > "${XDG_CACHE_HOME}"/window_mode echo "landscape" > "${XDG_CACHE_HOME}"/window_mode

View File

@ -1,3 +1,5 @@
#!/bin/bash #!/bin/bash
oled-brightness "$@" if [[ $(cat /etc/hostname) == "uzui" ]]; then
"${XDG_CONFIG_HOME}"/bin/uzui/oled-brightness "$@"
fi

5
scripts/display_change Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
#
if [[ $(cat /etc/hostname) == "uzui" ]]; then
"${XDG_CONFIG_HOME}"/bin/uzui/monitor_connect "$@"
fi

9
scripts/uzui/monitor_connect Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
if [[ "$1" == "0x0" ]]; then
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output HDMI-1 --off
elif [[ "$1" == "mirror" ]]; then
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output HDMI-1 --mode 1920x1080 --same-as eDP-1
else
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output HDMI-1 --mode "$1" --pos 1920x0 --rotate normal
fi