dotfile changes
This commit is contained in:
58
i3
58
i3
@@ -1,7 +1,6 @@
|
||||
set $mod Mod4
|
||||
gaps inner 10
|
||||
gaps outer 0
|
||||
# smart_gaps on
|
||||
smart_borders on
|
||||
|
||||
for_window [class="^.*"] border pixel 0
|
||||
@@ -82,7 +81,7 @@ bindsym $mod+Shift+space floating toggle
|
||||
bindsym $mod+Ctrl+space focus mode_toggle
|
||||
|
||||
# focus the parent container
|
||||
bindsym $mod+a focus parent
|
||||
bindsym $mod+p focus parent
|
||||
|
||||
# focus the child container
|
||||
bindsym $mod+c focus child
|
||||
@@ -131,69 +130,16 @@ bindsym $mod+Shift+c restart
|
||||
# exit i3 (logs you out of your X session)
|
||||
bindsym $mod+Shift+period 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 2 px or 2 ppt
|
||||
bindsym k resize grow height 2 px or 2 ppt
|
||||
bindsym j resize shrink height 2 px or 2 ppt
|
||||
bindsym l resize grow width 2 px or 2 ppt
|
||||
|
||||
# same bindings, but for the arrow keys
|
||||
bindsym Left resize shrink width 2 px or 2 ppt
|
||||
bindsym Down resize grow height 2 px or 2 ppt
|
||||
bindsym Up resize shrink height 2 px or 2 ppt
|
||||
bindsym Right resize grow width 2 px or 2 ppt
|
||||
|
||||
# back to normal: Enter or Escape or $mod+r
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym $mod+p mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+p mode "resize"
|
||||
|
||||
# gaps shortcuts
|
||||
set $mode_gaps Gaps: (o) outer, (i) inner
|
||||
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||
bindsym $mod+Shift+g mode "$mode_gaps"
|
||||
|
||||
mode "$mode_gaps" {
|
||||
bindsym o mode "$mode_gaps_outer"
|
||||
bindsym i mode "$mode_gaps_inner"
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
mode "$mode_gaps_inner" {
|
||||
bindsym plus gaps inner current plus 5
|
||||
bindsym minus gaps inner current minus 5
|
||||
bindsym 0 gaps inner current set 0
|
||||
|
||||
bindsym Shift+plus gaps inner all plus 5
|
||||
bindsym Shift+minus gaps inner all minus 5
|
||||
bindsym Shift+0 gaps inner all set 0
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
mode "$mode_gaps_outer" {
|
||||
bindsym plus gaps outer current plus 5
|
||||
bindsym minus gaps outer current minus 5
|
||||
bindsym 0 gaps outer current set 0
|
||||
|
||||
bindsym Shift+plus gaps outer all plus 5
|
||||
bindsym Shift+minus gaps outer all minus 5
|
||||
bindsym Shift+0 gaps outer all set 0
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
# exec --no-startup-id xautolock -time 10 -locker 'i3lock-pixeled'
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
Reference in New Issue
Block a user