adding togglemonitor script

master
tiynger 5 years ago
parent 1100e2801d
commit 5da8c7ec9d

@ -45,6 +45,8 @@ super + x
xournalpp xournalpp
#super + shift + z taken by i3 #super + shift + z taken by i3
super + F4
togglemonitor
super + F5 super + F5
toggletouchpad toggletouchpad
super + F6 super + F6

@ -0,0 +1,7 @@
#!/bin/sh
# toggle external monitor
intern=LVDS-1
extern=HDMI-1
(xrandr | grep "$extern disconnected") && exit
(xrandr --listactivemonitors | grep $extern) || (xrandr --output $extern --right-of $intern --auto & exit)
(xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off
Loading…
Cancel
Save