config swap & a couple of bugs
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/xorg.zsh
|
||||
|
||||
xrandr --output $XRANDR_OUTPUT__smol --off
|
||||
|
||||
XRANDR_SET \
|
||||
--compositing disable \
|
||||
--screen-blank disable \
|
||||
--background link-vs-gdizz.jpg \
|
||||
--sound-effect gamedock \
|
||||
${XRANDR_ARGS__livingroom__1080p[@]} --pos 0x0 --primary \
|
||||
;
|
@@ -1,12 +0,0 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/xorg.zsh
|
||||
|
||||
xrandr --output $XRANDR_OUTPUT__smol --off
|
||||
|
||||
XRANDR_SET \
|
||||
--compositing disable \
|
||||
--screen-blank disable \
|
||||
--background vegeta.jpg \
|
||||
--sound-effect gamedock \
|
||||
${XRANDR_ARGS__livingroom__4k[@]} --pos 0x0 --primary --rate 119.88 \
|
||||
;
|
@@ -4,9 +4,9 @@ tmux new -d -s apps -n 'foreman' 'htop' \; \
|
||||
split-window -d -t apps:foreman "clear; echo 'Keeping apps fresh...'; while true; do sleep 30; done" \
|
||||
2>/dev/null
|
||||
|
||||
for APP in $(find "${0:a:h}" -name apps.\*)
|
||||
for APP in $(find "${0:a:h}" -name apps.\* | sed 's/.*apps\.//')
|
||||
do
|
||||
echo "looking for $APP"
|
||||
tmux list-windows -t apps: | awk '{print $2;}' | grep -q $APP \
|
||||
|| tmux new-window -dn $APP -t apps: "${0:a:h}/$APP"
|
||||
|| tmux new-window -dn $APP -t apps: "${0:a:h}/apps.$APP"
|
||||
done
|
||||
|
@@ -1,9 +1,9 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/xorg.zsh $@
|
||||
[ $1 ] && RESOLUTION=$1 || RESOLUTION=4k
|
||||
source ${0:a:h}/xorg.zsh ${RESOLUTION} ${@:2}
|
||||
|
||||
#DISABLE+=(livingroom)
|
||||
DISABLE+=(bedroom)
|
||||
DISABLE+=(smol)
|
||||
#DISABLE+=(splitter)
|
||||
DISABLE+=(desk)
|
||||
|
||||
XRANDR_OFF ${DISABLE[@]}
|
||||
|
||||
@@ -11,5 +11,5 @@ XRANDR_SET \
|
||||
--compositing enable \
|
||||
--screen-blank disable \
|
||||
--sound-effect gamedock \
|
||||
${XRANDR_ARGS__livingroom[@]} --pos 0x0 --primary \
|
||||
${XRANDR_ARGS__splitter[@]} --pos 0x0 --primary \
|
||||
;
|
||||
|
@@ -4,22 +4,13 @@ source ${0:a:h}/xorg.zsh ${RESOLUTION} ${@:2}
|
||||
|
||||
case $MONITOR_CONFIGURATION in
|
||||
( home )
|
||||
xrandr --output DP-4 --off # I'm trying out using just HDMI for a bit
|
||||
XRANDR_SET \
|
||||
--compositing enable \
|
||||
--screen-blank disable \
|
||||
--sound-effect login \
|
||||
--background ${I3_DEFAULT_THEME_BACKGROUND} \
|
||||
${XRANDR_ARGS__livingroom[@]} --pos 0x0 \
|
||||
${XRANDR_ARGS__bedroom[@]} --pos 0x0 \
|
||||
${XRANDR_ARGS__smol[@]} --pos 0x0 --primary \
|
||||
;;
|
||||
|
||||
( unknown ) # temporary office setup
|
||||
xrandr --output DP-4 --mode 2560x1440 --pos 0x0 --primary
|
||||
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
|
||||
scwrypts desktop screen blank -- disable
|
||||
"${DOTWRYN}/bin/polybar"
|
||||
return 0
|
||||
${XRANDR_ARGS__splitter[@]} --pos 0x0 --primary \
|
||||
;;
|
||||
|
||||
( unknown )
|
||||
|
@@ -1,9 +1,9 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/xorg.zsh $@
|
||||
[ $1 ] && RESOLUTION=$1 || RESOLUTION=4k
|
||||
source ${0:a:h}/xorg.zsh ${RESOLUTION} ${@:2}
|
||||
|
||||
DISABLE+=(livingroom)
|
||||
DISABLE+=(bedroom)
|
||||
#DISABLE+=(smol)
|
||||
DISABLE+=(splitter)
|
||||
#DISABLE+=(desk)
|
||||
|
||||
XRANDR_OFF ${DISABLE[@]}
|
||||
|
||||
@@ -11,5 +11,5 @@ XRANDR_SET \
|
||||
--compositing enable \
|
||||
--screen-blank disable \
|
||||
--sound-effect gamedock \
|
||||
${XRANDR_ARGS__smol[@]} --pos 0x0 --primary \
|
||||
${XRANDR_ARGS__desk[@]} --pos 0x0 --primary \
|
||||
;
|
||||
|
@@ -1,20 +1,18 @@
|
||||
#!/bin/zsh
|
||||
#####################################################################
|
||||
|
||||
XRANDR_OUTPUT__livingroom='HDMI-0'
|
||||
XRANDR_OUTPUT__bedroom='DP-0'
|
||||
XRANDR_OUTPUT__smol='DP-4'
|
||||
XRANDR_OUTPUT__splitter='HDMI-0'
|
||||
XRANDR_OUTPUT__desk='DP-4'
|
||||
|
||||
I3_DEFAULT_THEME_BACKGROUND=$(scwrypts -n get theme).jpg
|
||||
|
||||
MONITOR_CONFIGURATION=unknown
|
||||
|
||||
: \
|
||||
&& xrandr --query | grep -q "^${XRANDR_OUTPUT__livingroom} connected" \
|
||||
&& xrandr --query | grep -q "^${XRANDR_OUTPUT__bedroom} connected" \
|
||||
&& xrandr --query | grep -q "^${XRANDR_OUTPUT__smol} connected" \
|
||||
&& xrandr --query | grep -q "^${XRANDR_OUTPUT__splitter} connected" \
|
||||
&& MONITOR_CONFIGURATION=home \
|
||||
;
|
||||
#&& xrandr --query | grep -q "^${XRANDR_OUTPUT__desk} connected" \
|
||||
|
||||
#####################################################################
|
||||
|
||||
@@ -24,9 +22,8 @@ case $1 in
|
||||
XRANDR_OFFSET_X=1920
|
||||
XRANDR_OFFSET_Y=1080
|
||||
|
||||
EXTRA_ARGS__livingroom=()
|
||||
EXTRA_ARGS__bedroom=()
|
||||
EXTRA_ARGS__smol=()
|
||||
EXTRA_ARGS__splitter=()
|
||||
EXTRA_ARGS__desk=()
|
||||
|
||||
I3_BACKGROUND=link-vs-gdizz.jpg
|
||||
;;
|
||||
@@ -36,9 +33,8 @@ case $1 in
|
||||
XRANDR_OFFSET_X=2560
|
||||
XRANDR_OFFSET_Y=1440
|
||||
|
||||
EXTRA_ARGS__livingroom=()
|
||||
EXTRA_ARGS__bedroom=()
|
||||
EXTRA_ARGS__smol=()
|
||||
EXTRA_ARGS__splitter=(--rate 120.00)
|
||||
EXTRA_ARGS__desk=()
|
||||
|
||||
I3_BACKGROUND=roy-art.jpg
|
||||
;;
|
||||
@@ -48,9 +44,8 @@ case $1 in
|
||||
XRANDR_OFFSET_X=3840
|
||||
XRANDR_OFFSET_Y=2160
|
||||
|
||||
EXTRA_ARGS__livingroom=()
|
||||
EXTRA_ARGS__bedroom=()
|
||||
EXTRA_ARGS__smol=(--rate 239.99)
|
||||
EXTRA_ARGS__splitter=(--rate 120.00)
|
||||
EXTRA_ARGS__desk=(--rate 120.00)
|
||||
|
||||
I3_BACKGROUND=${I3_DEFAULT_THEME_BACKGROUND[@]}
|
||||
;;
|
||||
@@ -62,9 +57,8 @@ case $1 in
|
||||
esac
|
||||
|
||||
|
||||
XRANDR_ARGS__livingroom=(--output ${XRANDR_OUTPUT__livingroom[@]} ${XRANDR_MODE[@]} ${EXTRA_ARGS__livingroom[@]})
|
||||
XRANDR_ARGS__bedroom=(--output ${XRANDR_OUTPUT__bedroom[@]} ${XRANDR_MODE[@]} ${EXTRA_ARGS__bedroom[@]})
|
||||
XRANDR_ARGS__smol=(--output ${XRANDR_OUTPUT__smol[@]} ${XRANDR_MODE[@]} ${EXTRA_ARGS__smol[@]})
|
||||
XRANDR_ARGS__splitter=(--output ${XRANDR_OUTPUT__splitter[@]} ${XRANDR_MODE[@]} ${EXTRA_ARGS__splitter[@]})
|
||||
XRANDR_ARGS__desk=(--output ${XRANDR_OUTPUT__desk[@]} ${XRANDR_MODE[@]} ${EXTRA_ARGS__desk[@]})
|
||||
|
||||
##########################################
|
||||
|
||||
@@ -133,5 +127,5 @@ XRANDR_SET() {
|
||||
scwrypts desktop screen blank -- ${SCREEN_BLANK}
|
||||
scwrypts desktop i3 set background -- ${BACKGROUND} || scwrypts desktop i3 set background -- purple.jpg
|
||||
"${DOTWRYN}/bin/polybar"
|
||||
scwrypts desktop play sound -- ${SOUND_EFFECT}
|
||||
scwrypts media play sfx -- ${SOUND_EFFECT}
|
||||
}
|
||||
|
Reference in New Issue
Block a user