small tweaks for the home server; improved monitor detection; i3 "game" workspace; local plugin detection improvement; help docs; etc

This commit is contained in:
2024-06-26 18:42:33 -06:00
parent 37b562b5c9
commit cebedf3e07
7 changed files with 36 additions and 6 deletions

View File

@ -1,6 +1,19 @@
#!/bin/zsh
source ${0:a:h}/xorg.zsh
case $MONITOR_CONFIGURATION in
home )
;;
unknown )
echo 'unknown state; using default configuration to prevent monitor issues'
xrandr --output $(xrandr | grep ' connected' | awk '{print $1;}') --primary
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
$DOTWRYN/bin/polybar
scwrypts desktop play sound -- login
return 0
;;
esac
USE_SMOL=false
xrandr -q | grep $XRANDR_OUTPUT__smol | grep -v 'disconnected' && {
xrandr -q | grep $XRANDR_OUTPUT__smol | grep -qv primary && {

View File

@ -25,6 +25,16 @@ XRANDR_ARGS__smol__1080p=(--output $XRANDR_OUTPUT__smol --mode $XRANDR_RESOLUTIO
#####################################################################
MONITOR_CONFIGURATION=unknown
: \
&& xrandr --query | grep -q "^$XRANDR_OUTPUT__office connected" \
&& xrandr --query | grep -q "^$XRANDR_OUTPUT__livingroom connected" \
&& MONITOR_CONFIGURATION=home \
;
###############################################################################
XRANDR_SET() {
local ERRORS=0