diff options
Diffstat (limited to 'config/i3')
| -rw-r--r-- | config/i3/config | 62 |
1 files changed, 42 insertions, 20 deletions
diff --git a/config/i3/config b/config/i3/config index 0bbd804..885686c 100644 --- a/config/i3/config +++ b/config/i3/config @@ -118,30 +118,52 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu # resize window (you can also use the mouse for that) mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. - bindsym $left resize shrink width 10 px or 10 ppt - bindsym $down resize grow height 10 px or 10 ppt - bindsym $up resize shrink height 10 px or 10 ppt - bindsym $right resize grow width 10 px or 10 ppt - - # same bindings, but for the arrow keys - bindsym Left resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize grow width 10 px or 10 ppt - - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym $left resize shrink width 10 px or 10 ppt + bindsym $down resize grow height 10 px or 10 ppt + bindsym $up resize shrink height 10 px or 10 ppt + bindsym $right resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" } bindsym $mod+r mode "resize" +# Select Display orientation +mode "display-orientation" { + # Default layout + bindsym d exec xrandr --output eDP1 --auto --output HDMI1 --auto --right-of eDP1 + + # Disable eDP1 or HDMI1 + bindsym h exec xrandr --output HDMI1 --off + bindsym e exec xrandr --output eDP1 --off + + # Set HDMI position + bindsym Left exec xrandr --output HDMI1 --auto --left-of eDP1 + bindsym Right exec xrandr --output HDMI1 --auto --right-of eDP1 + bindsym Down exec xrandr --output HDMI1 --auto --below eDP1 + bindsym Up exec xrandr --output HDMI1 --auto --above eDP1 + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym $mod+o mode "display-orientation" + # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { |
