diff options
Diffstat (limited to 'config')
-rw-r--r-- | config | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -256,8 +256,21 @@ exec --no-startup-id emacsclient -c # i3lock bindsym Pause exec "sh /home/$USER/.config/i3/scripts/i3lock.sh" -# i3display 2 screen -bindsym $mod+F4 exec "sh /home/$USER/.config/i3/scripts/i3display.sh" +## Manual management of external displays +# Set the shortcuts and what they do +set $mode_display Ext Screen (v) VGA ON, (h) HDMI ON, (x) VGA OFF, (y) HDMI OFF +mode "$mode_display" { + bindsym v exec --no-startup-id xrandr --output VGA1 --auto --right-of LVDS1, mode "default" + bindsym h exec --no-startup-id xrandr --output HDMI1 --auto --right-of LVDS1, mode "default" + bindsym x exec --no-startup-id xrandr --output VGA1 --auto --off, mode "default" + bindsym y exec --no-startup-id xrandr --output HDMI1 --auto --off, mode "default" + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} +# Declare here the shortcut to bring the display selection menu +bindsym $mod+x mode "$mode_display" #open audio player exec --no-startup-id audacious |