auto-default audio when switching screens

This commit is contained in:
2023-08-03 11:54:37 -06:00
parent 181688ef7c
commit e3db34ba97
10 changed files with 180 additions and 29 deletions

19
bin/altaria/beeg-game Executable file
View File

@ -0,0 +1,19 @@
#!/bin/zsh
source ${0:a:h}/xorg.zsh
: \
&& scwrypts desktop/xrandr/disconnect-all \
&& xrandr \
--output DP-2 \
--primary \
--mode 3840x2160 --rate 119.88 \
--rotate normal \
--pos 0x0 \
;
pkill compton
scwrypts desktop/pulse-audio/set-default-sink -- hdmi --id 0 --profile output:hdmi-surround71-extra2
scwrypts desktop/screen-blank -- disable
scwrypts desktop/i3/set-background -- roy-art.jpg
scwrypts desktop/play-sound -- gamedock

View File

@ -1,18 +0,0 @@
#!/bin/zsh
source ${0:a:h}/xorg.zsh
xrandr \
--output DP-0 \
--off \
--output HDMI-0 \
--primary \
--mode 3840x2160 \
--rotate normal \
--pos 0x0 \
;
pkill compton
scwrypts desktop/screen-blank -- disable
scwrypts desktop/i3/set-background -- roy-art.jpg
scwrypts desktop/play-sound -- gamedock

View File

@ -1,19 +1,29 @@
#!/bin/zsh
source ${0:a:h}/xorg.zsh
xrandr \
--output DP-0 \
--primary \
--mode 1920x1080 \
--rotate normal \
--pos 0x0 \
--output HDMI-0 \
--mode 1920x1080 \
--rotate normal \
--pos 0x0 \
: \
&& scwrypts desktop/xrandr/disconnect-all \
&& xrandr \
--output DP-0 \
--primary \
--mode 3840x2160 \
--rotate normal \
--pos 0x0 \
&& xrandr \
--output HDMI-0 \
--mode 3840x2160 \
--rate 60.00 \
--rotate normal \
--pos 0x0 \
--output DP-2 \
--mode 3840x2160 \
--rate 60.00 \
--rotate normal \
--pos 0x0 \
;
(pkill compton; sleep 1; compton;) &
scwrypts desktop/pulse-audio/set-default-sink -- Komplete
scwrypts desktop/screen-blank -- disable
scwrypts desktop/i3/set-background -- purple.jpg

19
bin/altaria/office-game Executable file
View File

@ -0,0 +1,19 @@
#!/bin/zsh
source ${0:a:h}/xorg.zsh
: \
&& scwrypts desktop/xrandr/disconnect-all \
&& xrandr \
--output DP-0 \
--primary \
--mode 3840x2160 \
--rotate normal \
--pos 0x0 \
;
pkill compton
scwrypts desktop/pulse-audio/set-default-sink -- Komplete
scwrypts desktop/screen-blank -- disable
scwrypts desktop/i3/set-background -- roy-art.jpg
scwrypts desktop/play-sound -- gamedock

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

@ -0,0 +1,20 @@
#!/bin/zsh
source ${0:a:h}/xorg.zsh
: \
&& scwrypts desktop/xrandr/disconnect-all \
&& xrandr \
--output HDMI-0 \
--primary \
--mode 3840x2160 --rate 119.88 \
--rotate normal \
--pos 0x0 \
;
pkill compton
scwrypts desktop/pulse-audio/set-default-sink -- hdmi --id 0 --profile output:hdmi-surround-extra1
scwrypts desktop/screen-blank -- disable
scwrypts desktop/i3/set-background -- roy-art.jpg
scwrypts desktop/play-sound -- gamedock

View File

@ -1,3 +1,3 @@
#!/bin/zsh
source $HOME/.config/wryn/env.zsh
[ ! $DISPLAY ] && export DISPLAY=:0
export DISPLAY=:0