aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2017-11-22 18:00:58 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2017-11-22 18:00:58 +0100
commit920eec1fa29e9fe11dba5157a5049d79de21deb1 (patch)
tree0baa838dd66b1a2b6554ed9be6f2ba311ed378d3 /config
parentb45ec8ffe20c2fbbcb4d7d52d205081451ff219c (diff)
downloaddotfiles-920eec1fa29e9fe11dba5157a5049d79de21deb1.tar.gz
dotfiles-920eec1fa29e9fe11dba5157a5049d79de21deb1.zip
[i3] add display orientation mode
Diffstat (limited to 'config')
-rw-r--r--config/i3/config62
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 {