summaryrefslogtreecommitdiff
path: root/.config/i3/config
diff options
context:
space:
mode:
Diffstat (limited to '.config/i3/config')
-rw-r--r--.config/i3/config89
1 files changed, 43 insertions, 46 deletions
diff --git a/.config/i3/config b/.config/i3/config
index a909ccd..81248e5 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -4,15 +4,6 @@
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
-# Program specific floating
-for_window [class="keepassxc"] floating enable
-
-# Gaps settings
-gaps inner 15
-smart_gaps on
-
-for_window [class=".*"] border pixel 3
-hide_edge_borders both
# i3 config file (v4)
#
@@ -24,6 +15,9 @@ set $mod Mod1
# is used in the bar {} block below.
font pango:monospace 8
+# gaps
+gaps inner 5
+
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
@@ -39,7 +33,8 @@ font pango:monospace 8
floating_modifier $mod
# start a terminal
-bindsym $mod+Shift+t exec i3-sensible-terminal
+bindsym $mod+Return exec i3-sensible-terminal
+bindsym $mod+Shift+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+q kill
@@ -51,18 +46,17 @@ bindsym $mod+d exec dmenu_run
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
-# alternatively, you can use the cursor keys:
-bindsym $mod+Left focus left
-bindsym $mod+Down focus down
-bindsym $mod+Up focus up
-bindsym $mod+Right focus right
-
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
+# alternatively, you can use the cursor keys:
+bindsym $mod+Left focus left
+bindsym $mod+Down focus down
+bindsym $mod+Up focus up
+bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+h move left
@@ -76,11 +70,15 @@ bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
-# split in horizontal orientation
-bindsym $mod+Shift+v split h
-# split in vertical orientation
-bindsym $mod+v split v
+# resizing
+bindsym $mod+Control+h resize grow width 40 px
+bindsym $mod+Control+j resize grow height 40 px
+bindsym $mod+Control+k resize shrink height 40 px
+bindsym $mod+Control+l resize shrink width 40 px
+
+# split toggle
+bindsym $mod+v split toggle
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
@@ -127,6 +125,9 @@ bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
+# switch to last
+bindsym $mod+Tab workspace back_and_forth
+
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
@@ -144,41 +145,37 @@ bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
-bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
+bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
-mode "resizeMove" {
-# These bindings trigger as soon as you enter the resize mode
-# same bindings, but for the arrow keys
- bindsym Left resize shrink width 10 px or 10 ppt
+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 h resize shrink width 40 px
+ bindsym j resize grow height 40 px
+ bindsym k resize shrink height 40 px
+ bindsym l resize grow width 40 px
+
+ # 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
-# 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 h resize shrink width 10 px or 10 ppt
- bindsym j resize grow height 10 px or 10 ppt
- bindsym k resize shrink height 10 px or 10 ppt
- bindsym l resize grow width 10 px or 10 ppt
-
-#MOve
- bindsym Shift+h move left
- bindsym Shift+j move down
- bindsym Shift+k move up
- bindsym Shift+l move right
-
-# back to normal: Enter or Escape or $mod+r
+ # back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
+bindsym $mod+r mode "resize"
-
-bindsym $mod+r mode "resizeMove"
-
-#Auto execute
-exec feh --bg-scale /home/julian/Billeder/wallpaper.png
+# Start i3bar to display a workspace bar (plus the system information i3status
+# finds out, if available)
+bar {
+ status_command i3status
+}