scwrypts v3 refactor

This commit is contained in:
2023-06-27 16:53:59 -06:00
parent 02ed7d615a
commit 1a64551465
57 changed files with 590 additions and 501 deletions

1
bin/umbreon/default Symbolic link
View File

@ -0,0 +1 @@
undock

View File

@ -1,23 +0,0 @@
#!/bin/zsh
source ${0:a:h}/xorg.zsh
MOBILE=1
ARGS=()
[[ $MOBILE -eq 1 ]] && {
ARGS+=(--output DP-3 --mode 1920x1080 --pos 0x0 --primary)
ARGS+=(--output eDP-1 --mode 1920x1200 --right-of DP-3)
} || {
ARGS+=(--output DP-3-1 --mode 1920x1080 --pos 0x0 --primary)
ARGS+=(--output eDP-1 --off)
}
xrandr ${ARGS[@]}
xset dpms 0 0 0 && xset s noblank && xset s off \
&& notify-send 'DPMS' 'disabled screen blank'
(pkill compton; sleep 0.5; compton;) &
$DOTWRYN/bin/set-background random
$DOTWRYN/bin/play-sound gamedock

View File

@ -1,20 +1,17 @@
#!/bin/zsh
source ${0:a:h}/xorg.zsh
ARGS=($(ALL_OTHER_DISPLAYS_OFF eDP-1))
xrandr \
xrandr ${ARGS[@]} \
--output eDP-1 \
--primary \
--auto \
--mode 960x600 \
--rotate normal \
--rate 60 \
--pos 0x0 \
--rotate normal \
;
pkill compton
xset dpms 0 0 0 && xset s noblank && xset s off \
&& notify-send 'DPMS' 'disabled screen blank'
$DOTWRYN/bin/set-background random
$DOTWRYN/bin/play-sound gamedock
scwrypts desktop/screen-blank -- disable
scwrypts desktop/i3/set-background -- link-vs-gdizz.jpg
scwrypts desktop/play-sound -- gamedock

View File

@ -1,23 +1,17 @@
#!/bin/zsh
source ${0:a:h}/xorg.zsh
ARGS=($(ALL_OTHER_DISPLAYS_OFF eDP-1))
xrandr \
xrandr ${ARGS[@]} \
--output eDP-1 \
--primary \
--auto \
--mode 1920x1200 \
--rotate normal \
--pos 0x0 \
--output DP-3-1 \
--off \
--output DP-3 \
--off \
--rotate normal \
;
xset +dpms && xset s blank && xset s on \
&& notify-send 'DPMS' 'enabled screen blank'
(pkill compton; sleep 0.5; compton;) &
$DOTWRYN/bin/set-background random
$DOTWRYN/bin/play-sound gamedock
scwrypts desktop/screen-blank -- enable
scwrypts desktop/i3/set-background -- random
scwrypts desktop/play-sound -- gamedock

View File

@ -1,3 +1,10 @@
#!/bin/zsh
source $HOME/.config/wryn/env.zsh
[ ! $DISPLAY ] && export DISPLAY=:0
ALL_OTHER_DISPLAYS_OFF() {
for OUTPUT in $(xrandr | grep connect | grep -v $1 | awk '{print $1;}')
do
echo --output $OUTPUT --off
done
}