i3: clean up config

This commit is contained in:
Inhji 2021-08-10 08:29:34 +02:00
parent 9ef5da9b83
commit f821e90c56
1 changed files with 30 additions and 59 deletions

View File

@ -4,6 +4,16 @@
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
# Set workspaces names
# to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail
# set $ws2 2:
set $ws1 1:
set $ws2 2:
set $ws3 3:
set $ws4 4:
set $ws5 5:
# set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed>
@ -72,10 +82,10 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# smart resize focused window
bindsym $mod+Ctrl+Up exec ~/.local/bin/i3-smart-resize up
bindsym $mod+Ctrl+Down exec ~/.local/bin/i3-smart-resize down
bindsym $mod+Ctrl+Right exec ~/.local/bin/i3-smart-resize right
bindsym $mod+Ctrl+Left exec ~/.local/bin/i3-smart-resize left
#bindsym $mod+Ctrl+Up exec ~/.local/bin/i3-smart-resize up
#bindsym $mod+Ctrl+Down exec ~/.local/bin/i3-smart-resize down
#bindsym $mod+Ctrl+Right exec ~/.local/bin/i3-smart-resize right
#bindsym $mod+Ctrl+Left exec ~/.local/bin/i3-smart-resize left
# split orientation
bindsym $mod+q split toggle
@ -105,18 +115,15 @@ bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
#navigate workspaces next / previous
#bindsym $mod+Ctrl+Right workspace next
#bindsym $mod+Ctrl+Left workspace prev
bindsym $mod+Ctrl+Right workspace next
bindsym $mod+Ctrl+Left workspace prev
# Workspace names
# to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail
# set $ws2 2:
set $ws1 1
set $ws2 2
set $ws3 3
set $ws4 4
set $ws5 5
# Assign workspaces to Monitors
workspace $ws1 output VGA-1
workspace $ws2 output HDMI-1
workspace $ws3 output HDMI-1
workspace $ws4 output HDMI-1
workspace $ws5 output HDMI-1
# switch to workspace
bindsym $mod+1 workspace $ws1
@ -140,8 +147,9 @@ bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
# Open applications on specific workspaces
# assign [class="firefox"] $ws1
# assign [class="Sublime Text"] $ws2
assign [class="firefox"] $ws2
assign [class="Sublime Text"] $ws3
assign [class="Sublime Merge"] $ws5
# Open specific applications in floating mode
for_window [title="alsamixer"] floating enable border pixel 1
@ -257,7 +265,7 @@ set_from_resource $term_color15 color15
# Theme colors
# class border backgr. text indic. child_border
client.focused #556064 #556064 #80FFF9 #FDF6E3
client.focused #556064 #556064 #80FFF9 #e47464
client.focused_inactive #2F3D44 #2F3D44 #1ABC9C #454948
client.unfocused #2F3D44 #2F3D44 #1ABC9C #454948
client.urgent #CB4B16 #FDF6E3 #1ABC9C #268BD2
@ -270,8 +278,8 @@ set_from_resource $term_color15 color15
#############################
# Set inner/outer gaps
#gaps inner 15
#gaps outer -5
gaps inner 15
gaps outer -5
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
# gaps inner|outer current|all set|plus|minus <px>
@ -279,45 +287,8 @@ set_from_resource $term_color15 color15
# gaps outer all plus 5
# Smart gaps (gaps used if only more than one container on the workspace)
#smart_gaps on
smart_gaps on
# Smart borders (draw borders around container only if it is not the only container on this workspace)
# on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
smart_borders on
# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
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"
}
smart_borders on