mirror of https://github.com/tiyn/dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
375 B
12 lines
375 B
5 years ago
|
#!/bin/sh
|
||
5 years ago
|
|
||
5 years ago
|
# toggle external monitor
|
||
5 years ago
|
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
||
|
|
||
4 years ago
|
intern=LVDS1
|
||
|
extern=HDMI2
|
||
5 years ago
|
(xrandr | grep "$extern disconnected")
|
||
5 years ago
|
(xrandr --listactivemonitors | grep $extern) || ((xrandr --output $extern --right-of $intern --auto && setbg) & exit)
|
||
5 years ago
|
(xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off
|
||
9 months ago
|
background_set
|