From c3a86efa1b68fbab9b564076df4c6b31adc747c9 Mon Sep 17 00:00:00 2001 From: yage Date: Sat, 13 Apr 2024 17:04:57 -0600 Subject: [PATCH] xorg scripts for small monitor on altaria --- bin/altaria/smol-game | 10 ++++++++++ bin/altaria/xorg.zsh | 3 +++ 2 files changed, 13 insertions(+) create mode 100755 bin/altaria/smol-game diff --git a/bin/altaria/smol-game b/bin/altaria/smol-game new file mode 100755 index 0000000..3c5db40 --- /dev/null +++ b/bin/altaria/smol-game @@ -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 \ + ; diff --git a/bin/altaria/xorg.zsh b/bin/altaria/xorg.zsh index 6885eaf..4a22dbb 100644 --- a/bin/altaria/xorg.zsh +++ b/bin/altaria/xorg.zsh @@ -11,6 +11,7 @@ XRANDR_RESOLUTION__1080p='1920x1080' XRANDR_OUTPUT__office='DP-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__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__1080p=(--output $XRANDR_OUTPUT__livingroom --mode $XRANDR_RESOLUTION__1080p) +XRANDR_ARGS__smol__1080p=(--output $XRANDR_OUTPUT__smol --mode $XRANDR_RESOLUTION__1080p) + ##################################################################### XRANDR_SET() {