various config options updated; tmux to M-S instead of C-M
This commit is contained in:
@ -19,7 +19,8 @@ DEVICE="$1"
|
||||
COMMAND="$2"
|
||||
|
||||
case $DEVICE in
|
||||
sink | source ) ;;
|
||||
sink ) AMIXER_DEVICE=Master ;;
|
||||
source ) AMIXER_DEVICE=Capture ;;
|
||||
* ) ERROR 1 "Unsupported device '$DEVICE'" ;;
|
||||
esac
|
||||
|
||||
@ -36,7 +37,7 @@ case $COMMAND in
|
||||
mute )
|
||||
pactl set-$DEVICE-mute $DEFAULT_DEVICE toggle
|
||||
$DOTWRYN/bin/play-sound mute
|
||||
notify-send "default $DEVICE" "$(amixer sget Master | grep -q '\[on\]' && echo unmuted || echo muted)"
|
||||
notify-send "default $DEVICE" "$(amixer sget $AMIXER_DEVICE | grep -q '\[on\]' && echo unmuted || echo muted)"
|
||||
;;
|
||||
* ) ERROR "Unsupported command '$COMMAND'" ;;
|
||||
esac
|
||||
|
@ -1,16 +1,18 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/xorg.zsh
|
||||
|
||||
xrandr \
|
||||
--output DP-3-1 \
|
||||
--primary \
|
||||
--auto \
|
||||
--mode 1920x1080 \
|
||||
--rotate normal \
|
||||
--pos 0x0 \
|
||||
--output eDP-1 \
|
||||
--off \
|
||||
;
|
||||
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'
|
||||
|
@ -10,6 +10,8 @@ xrandr \
|
||||
--pos 0x0 \
|
||||
--output DP-3-1 \
|
||||
--off \
|
||||
--output DP-3 \
|
||||
--off \
|
||||
;
|
||||
|
||||
xset +dpms && xset s blank && xset s on \
|
||||
|
Reference in New Issue
Block a user