mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-25 10:41:16 +02:00
adding togglemonitor script
This commit is contained in:
@@ -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
|
||||||
|
|||||||
7
.local/bin/tools/togglemonitor
Executable file
7
.local/bin/tools/togglemonitor
Executable file
@@ -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
|
||||||
Reference in New Issue
Block a user