scwrypts v3 refactor
This commit is contained in:
1
bin/umbreon/default
Symbolic link
1
bin/umbreon/default
Symbolic link
@ -0,0 +1 @@
|
||||
undock
|
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user