xorg scripts for small monitor on altaria

This commit is contained in:
Wryn (yage) Wagner 2024-04-13 17:04:57 -06:00
parent 8ccec170b9
commit c3a86efa1b
2 changed files with 13 additions and 0 deletions

10
bin/altaria/smol-game Executable file
View File

@ -0,0 +1,10 @@
#!/bin/zsh
source ${0:a:h}/xorg.zsh
XRANDR_SET \
--compositing disable \
--screen-blank disable \
--background captain-falcon.jpg \
--sound-effect gamedock \
${XRANDR_ARGS__smol__1080p[@]} --pos 0x0 --primary \
;

View File

@ -11,6 +11,7 @@ XRANDR_RESOLUTION__1080p='1920x1080'
XRANDR_OUTPUT__office='DP-0' XRANDR_OUTPUT__office='DP-0'
XRANDR_OUTPUT__livingroom='HDMI-0' XRANDR_OUTPUT__livingroom='HDMI-0'
XRANDR_OUTPUT__smol='DP-4'
XRANDR_ARGS__office__4k=(--output $XRANDR_OUTPUT__office --mode $XRANDR_RESOLUTION__4k) XRANDR_ARGS__office__4k=(--output $XRANDR_OUTPUT__office --mode $XRANDR_RESOLUTION__4k)
#XRANDR_ARGS__office__2k=() # not available on office monitor #XRANDR_ARGS__office__2k=() # not available on office monitor
@ -20,6 +21,8 @@ XRANDR_ARGS__livingroom__4k=(--output $XRANDR_OUTPUT__livingroom --mode $XRANDR_
XRANDR_ARGS__livingroom__2k=(--output $XRANDR_OUTPUT__livingroom --mode $XRANDR_RESOLUTION__2k) XRANDR_ARGS__livingroom__2k=(--output $XRANDR_OUTPUT__livingroom --mode $XRANDR_RESOLUTION__2k)
XRANDR_ARGS__livingroom__1080p=(--output $XRANDR_OUTPUT__livingroom --mode $XRANDR_RESOLUTION__1080p) XRANDR_ARGS__livingroom__1080p=(--output $XRANDR_OUTPUT__livingroom --mode $XRANDR_RESOLUTION__1080p)
XRANDR_ARGS__smol__1080p=(--output $XRANDR_OUTPUT__smol --mode $XRANDR_RESOLUTION__1080p)
##################################################################### #####################################################################
XRANDR_SET() { XRANDR_SET() {