Monitor management
This commit is contained in:
parent
500803aafb
commit
e0838c482e
@ -13,9 +13,10 @@ set $terminal xterm
|
||||
set $mod Mod1
|
||||
set $screenlock ~/.dotfiles/scripts/i3lock_oke
|
||||
|
||||
fake-outputs 1920x1200+0+0,1920x1200+1920+0,1920x1200+3840+0
|
||||
#fake-outputs 1920x1200+0+0,1920x1200+1920+0,1920x1200+3840+0
|
||||
|
||||
|
||||
exec --no-startup-id firefox --new-window https://outlook.office365.com/mail/ --new-window https://teams.microsoft.com
|
||||
exec --no-startup-id dunst
|
||||
exec --no-startup-id ~/.dotfiles/scripts/clear_red
|
||||
exec --no-startup-id xidlehook --detect-sleep --not-when-fullscreen --timer 60 'xbacklight -get > .last_backlight; xbacklight -set 1' 'xbacklight -set $(cat .last_backlight)'
|
||||
|
24
scripts/dis
Executable file
24
scripts/dis
Executable file
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
readarray -t monitors < <(xrandr --listmonitors | tail +2 | awk '{print $2}')
|
||||
declare -a args=()
|
||||
for monitor in "${monitors[@]}"; do
|
||||
args+=(--delmonitor "${monitor}")
|
||||
done
|
||||
|
||||
n_monitors=${1:-3}
|
||||
|
||||
if [ $n_monitors -ge 1 ]; then
|
||||
args+=(--setmonitor default~1 1920/508x1200/317+0+0 default)
|
||||
fi
|
||||
|
||||
if [ $n_monitors -ge 2 ]; then
|
||||
args+=(--setmonitor default~2 1920/508x1200/317+1920+0 none)
|
||||
fi
|
||||
|
||||
if [ $n_monitors -ge 3 ]; then
|
||||
args+=(--setmonitor default~3 1920/508x1200/317+3840+0 none)
|
||||
fi
|
||||
|
||||
echo xrandr "${args[@]}"
|
||||
xrandr "${args[@]}"
|
Loading…
x
Reference in New Issue
Block a user