mirror of
https://github.com/lordmathis/dotfiles.git
synced 2025-11-05 17:24:22 +00:00
Add script to switch screens
This commit is contained in:
@@ -157,6 +157,9 @@ exec --no-startup-id $HOME/bin/startconky.sh
|
|||||||
# Redshift
|
# Redshift
|
||||||
exec --no-startup-id redshift || redshift -l 48.15:17.10
|
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
|
# Launch Nemo
|
||||||
bindsym $mod+n exec nemo
|
bindsym $mod+n exec nemo
|
||||||
|
|
||||||
|
|||||||
9
bin/switch_monitors.sh
Executable file
9
bin/switch_monitors.sh
Executable file
@@ -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
|
||||||
Reference in New Issue
Block a user