yage
ad66d50b11
finally going to commit that zshrc refactor - smolvsdefault on altaria - i3-utils refactor - no need for custom scwrypt executable anymore - time to say goodbye to the old dotwryn.env in favor of the new and improved rc.ds - vim/rc.d refactor + QuickREPL and QuickCommand replacements for \r and \t - going to stop tracking Archives explicitly until new hard drive - tty-colorscheme is now referenced directly - colorscheme/spring-sunset needed to swap primary/secondary colors for focus in i3 since it was confusing - setup config no longer needs to create ~/.config/wryn/env.vim; added some dependencies to arch-linux - switch from dmenu to rofi by default; allow .i3 overrides in colorschemes; tty-colorscheme is now referenced directly
30 lines
546 B
Bash
Executable File
30 lines
546 B
Bash
Executable File
#!/bin/zsh
|
|
source ${0:a:h}/xorg.zsh
|
|
|
|
USE_SMOL=false
|
|
xrandr -q | grep $XRANDR_OUTPUT__smol | grep -v 'disconnected' && {
|
|
xrandr -q | grep $XRANDR_OUTPUT__smol | grep -qv primary && {
|
|
USE_SMOL=true
|
|
}
|
|
}
|
|
|
|
XRANDR_ARGS=()
|
|
case $USE_SMOL in
|
|
true )
|
|
XRANDR_ARGS+=(
|
|
${XRANDR_ARGS__smol__1080p[@]} --pos 0x0 --primary
|
|
)
|
|
;;
|
|
false )
|
|
XRANDR_ARGS+=(
|
|
${XRANDR_ARGS__office__4k[@]} --pos 0x0 --primary
|
|
${XRANDR_ARGS__livingroom__4k[@]} --pos 0x0
|
|
)
|
|
;;
|
|
esac
|
|
|
|
XRANDR_SET \
|
|
--screen-blank disable \
|
|
${XRANDR_ARGS[@]} \
|
|
;
|