diff --git a/i3wm/.config/i3/config b/i3wm/.config/i3/config index 75731cf..11c82b6 100644 --- a/i3wm/.config/i3/config +++ b/i3wm/.config/i3/config @@ -170,6 +170,19 @@ mode "resize" { bindsym Mod4+r mode "resize" + +# Screen display +set $mode_display Display (b) Bureau, (s) single +mode "$mode_display" { + bindsym b exec xrandr --output DP2-1 --auto --right-of eDP1 --output DP1-2 --auto --right-of DP2-1 + bindsym s exec xrandr --output DP2-1 --off --output DP1-2 --off + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym Mod4+F8 mode "$mode_display" + ## Media keys # volume control bindsym XF86AudioLowerVolume exec /usr/bin/pactl set-sink-volume @DEFAULT_SINK@ '-5%'