mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-09 19:11:15 +02:00
togglemonitor: automatically change re-set the background
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# toggle external monitor
|
||||
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
||||
|
||||
intern=LVDS1
|
||||
extern=HDMI2
|
||||
(xrandr | grep "$extern disconnected")
|
||||
(xrandr --listactivemonitors | grep $extern) || ((xrandr --output $extern --right-of $intern --auto && setbg) & exit)
|
||||
(xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off
|
Reference in New Issue
Block a user