diff options
Diffstat (limited to '.config/i3/config')
-rw-r--r-- | .config/i3/config | 89 |
1 files changed, 46 insertions, 43 deletions
diff --git a/.config/i3/config b/.config/i3/config index 81248e5..a909ccd 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -4,6 +4,15 @@ # 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) # @@ -15,9 +24,6 @@ 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 @@ -33,8 +39,7 @@ gaps inner 5 floating_modifier $mod # start a terminal -bindsym $mod+Return exec i3-sensible-terminal -bindsym $mod+Shift+Return exec i3-sensible-terminal +bindsym $mod+Shift+t exec i3-sensible-terminal # kill focused window bindsym $mod+Shift+q kill @@ -46,17 +51,18 @@ 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 @@ -70,15 +76,11 @@ 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 -# 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 +# split in vertical orientation +bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle @@ -125,9 +127,6 @@ 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 @@ -145,37 +144,41 @@ 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 "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 +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 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 or $mod+r +# 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 bindsym Return mode "default" bindsym Escape mode "default" bindsym $mod+r mode "default" } -bindsym $mod+r mode "resize" -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) -bar { - status_command i3status -} + +bindsym $mod+r mode "resizeMove" + +#Auto execute +exec feh --bg-scale /home/julian/Billeder/wallpaper.png |