Add script to switch screens
This commit is contained in:
parent
ed1d1cf189
commit
b2314f6581
|
@ -157,6 +157,9 @@ exec --no-startup-id $HOME/bin/startconky.sh
|
|||
# Redshift
|
||||
exec --no-startup-id redshift || redshift -l 48.15:17.10
|
||||
|
||||
# Switch display output
|
||||
exec --no-startup-id $HOME/bin/switch_monitors.sh
|
||||
|
||||
# Launch Nemo
|
||||
bindsym $mod+n exec nemo
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
intern=eDP-1
|
||||
extern=HDMI-1
|
||||
|
||||
if xrandr | grep "$extern disconnected"; then
|
||||
xrandr --output "$extern" --off --output "$intern" --auto
|
||||
else
|
||||
xrandr --output "$intern" --off --output "$extern" --auto
|
||||
fi
|
Loading…
Reference in New Issue