Commit ee1872ea authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Updated config.simple.

parent 461e8ffc
...@@ -63,7 +63,7 @@ workspace_layout tabbed reverse ...@@ -63,7 +63,7 @@ workspace_layout tabbed reverse
# set my quick tabbed/stacked toggle # set my quick tabbed/stacked toggle
bindsym $mod+e layout toggle tabbed stacked bindsym $mod+e layout toggle tabbed stacked
bindsym $mod+$mod_next+e layout fill_order toggle bindsym $mod+q layout fill_order toggle
# set default window title_align # set default window title_align
title_align center title_align center
...@@ -115,7 +115,8 @@ bindsym $mod+t exec --no-startup-id $picom_start ...@@ -115,7 +115,8 @@ bindsym $mod+t exec --no-startup-id $picom_start
bindsym $mod+ctrl+t exec --no-startup-id "killall picom" bindsym $mod+ctrl+t exec --no-startup-id "killall picom"
# tint2 configuration (needs tint2 package) # tint2 configuration (needs tint2 package)
exec --no-startup-id tint2 exec_always --no-startup-id killall tint2 && sleep 0.5; tint2
for_window [class="(?i)^tint2conf$"] floating disable
# subscribe to urgent event and set _NET_WM_STATE_DEMANDS_ATTENTION (for tint2) # subscribe to urgent event and set _NET_WM_STATE_DEMANDS_ATTENTION (for tint2)
exec_always --no-startup-id i3-msg -t subscribe -m '[ "window" ]' | jq --unbuffered -Mrc '. | select(.change == "urgent" and .container.urgent == true and .container.focused == false) | .container.window' | xargs -I{} xprop -id {} -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_DEMANDS_ATTENTION exec_always --no-startup-id i3-msg -t subscribe -m '[ "window" ]' | jq --unbuffered -Mrc '. | select(.change == "urgent" and .container.urgent == true and .container.focused == false) | .container.window' | xargs -I{} xprop -id {} -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_DEMANDS_ATTENTION
# subscribe to urgent event being selected and set _NET_WM_STATE_FOCUSED (for tint2) # subscribe to urgent event being selected and set _NET_WM_STATE_FOCUSED (for tint2)
...@@ -228,14 +229,10 @@ bindsym $mod+slash exec --no-startup-id $namechildcon ...@@ -228,14 +229,10 @@ bindsym $mod+slash exec --no-startup-id $namechildcon
bindsym $mod+$mod_next+slash focus parent; title_format " %title"; focus child bindsym $mod+$mod_next+slash focus parent; title_format " %title"; focus child
# container layouts # container layouts
bindsym $mod_next+w layout tabbed reverse bindsym $mod_next+w layout tabbed, layout fill_order default
bindsym $mod_next+q layout splith reverse bindsym $mod_next+q layout splith, layout fill_order default
bindsym $mod_next+e layout splitv reverse bindsym $mod_next+e layout splitv, layout fill_order default
bindsym $mod_next+s layout stacking reverse bindsym $mod_next+s layout stacking, layout fill_order default
bindsym $mod_next+Shift+w layout tabbed, layout fill_order default
bindsym $mod_next+Shift+q layout splith, layout fill_order default
bindsym $mod_next+Shift+e layout splitv, layout fill_order default
bindsym $mod_next+Shift+s layout stacking, layout fill_order default
# child container layout bindsyms (creates a child container from currently select window) # child container layout bindsyms (creates a child container from currently select window)
bindsym $mod+c split h, layout splitv, focus parent, $border_no_name, focus child bindsym $mod+c split h, layout splitv, focus parent, $border_no_name, focus child
...@@ -274,8 +271,8 @@ bindsym $mod+$mod_next+i exec --no-startup-id xprop -id $(xdotool getactivewindo ...@@ -274,8 +271,8 @@ bindsym $mod+$mod_next+i exec --no-startup-id xprop -id $(xdotool getactivewindo
bindsym $mod++Shift+i exec --no-startup-id xprop -id $(xdotool getactivewindow) -remove INVERT_FLAG; bindsym $mod++Shift+i exec --no-startup-id xprop -id $(xdotool getactivewindow) -remove INVERT_FLAG;
# focus the parent container # focus the parent container
bindsym $mod+q focus parent bindsym $mod+Escape focus parent
bindsym $mod+Escape focus child bindsym $mod+$mod_next+Escape focus child
# Workspace names # Workspace names
# to display names or symbols instead of plain workspace numbers you can use # to display names or symbols instead of plain workspace numbers you can use
...@@ -332,7 +329,7 @@ bindsym $mod_next+1 exec --no-startup-id i3-input -f $i3inputfont -P "Go to Work ...@@ -332,7 +329,7 @@ bindsym $mod_next+1 exec --no-startup-id i3-input -f $i3inputfont -P "Go to Work
bindsym $mod_next+2 exec --no-startup-id i3-input -f $i3inputfont -P "Go to Workspace (name): " -F 'workspace "%s"' bindsym $mod_next+2 exec --no-startup-id i3-input -f $i3inputfont -P "Go to Workspace (name): " -F 'workspace "%s"'
bindsym $mod_next+Shift+1 exec --no-startup-id i3-input -f $i3inputfont -P "Move to Workspace (number): " -l 2 -F 'move container to workspace number "%s"' bindsym $mod_next+Shift+1 exec --no-startup-id i3-input -f $i3inputfont -P "Move to Workspace (number): " -l 2 -F 'move container to workspace number "%s"'
bindsym $mod_next+Shift+2 exec --no-startup-id i3-input -f $i3inputfont -P "Move to Workspace (name): " -F 'move container to workspace "%s"' bindsym $mod_next+Shift+2 exec --no-startup-id i3-input -f $i3inputfont -P "Move to Workspace (name): " -F 'move container to workspace "%s"'
bindsym $mod_next+3 exec --no-startup-id i3-input -f $i3inputfont -P "Rename Workspace: " -F 'rename workspace to "%s"' bindsym $mod_next+grave exec --no-startup-id i3-input -f $i3inputfont -P "Rename Workspace: " -F 'rename workspace to "%s"'
# iterative workspace operations # iterative workspace operations
set $workspace_dynamic $(($(i3-msg -t get_workspaces | tr , '\n' | grep '\\"num\\":' | cut -d : -f 2 | sort -rn | head -1) + 1)) set $workspace_dynamic $(($(i3-msg -t get_workspaces | tr , '\n' | grep '\\"num\\":' | cut -d : -f 2 | sort -rn | head -1) + 1))
...@@ -436,3 +433,140 @@ bar { ...@@ -436,3 +433,140 @@ bar {
# hide/unhide i3status bar # hide/unhide i3status bar
bindsym $mod+Control+m bar mode toggle bindsym $mod+Control+m bar mode toggle
#############################
### settings for i3-gaps: ###
#############################
# Set inner/outer gaps
gaps outer 8
gaps inner 0
# 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>
# gaps inner all set 10
# gaps outer all plus 5
# Smart gaps (gaps used if only more than one container on the workspace)
smart_gaps off
set $mode_gaps Gaps: (o)uter, (i)nner, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_horiz Horizontal Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_verti Vertical Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_top Top Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_right Right Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_bottom Bottom Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_left Left 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 h mode "$mode_gaps_horiz"
bindsym v mode "$mode_gaps_verti"
bindsym t mode "$mode_gaps_top"
bindsym r mode "$mode_gaps_right"
bindsym b mode "$mode_gaps_bottom"
bindsym l mode "$mode_gaps_left"
bindsym Return mode "$mode_gaps"
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 "$mode_gaps"
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 "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_horiz" {
bindsym plus gaps horizontal current plus 5
bindsym minus gaps horizontal current minus 5
bindsym 0 gaps horizontal current set 0
bindsym Shift+plus gaps horizontal all plus 5
bindsym Shift+minus gaps horizontal all minus 5
bindsym Shift+0 gaps horizontal all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_verti" {
bindsym plus gaps vertical current plus 5
bindsym minus gaps vertical current minus 5
bindsym 0 gaps vertical current set 0
bindsym Shift+plus gaps vertical all plus 5
bindsym Shift+minus gaps vertical all minus 5
bindsym Shift+0 gaps vertical all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_top" {
bindsym plus gaps top current plus 5
bindsym minus gaps top current minus 5
bindsym 0 gaps top current set 0
bindsym Shift+plus gaps top all plus 5
bindsym Shift+minus gaps top all minus 5
bindsym Shift+0 gaps top all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_right" {
bindsym plus gaps right current plus 5
bindsym minus gaps right current minus 5
bindsym 0 gaps right current set 0
bindsym Shift+plus gaps right all plus 5
bindsym Shift+minus gaps right all minus 5
bindsym Shift+0 gaps right all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_bottom" {
bindsym plus gaps bottom current plus 5
bindsym minus gaps bottom current minus 5
bindsym 0 gaps bottom current set 0
bindsym Shift+plus gaps bottom all plus 5
bindsym Shift+minus gaps bottom all minus 5
bindsym Shift+0 gaps bottom all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_left" {
bindsym plus gaps left current plus 5
bindsym minus gaps left current minus 5
bindsym 0 gaps left current set 0
bindsym Shift+plus gaps left all plus 5
bindsym Shift+minus gaps left all minus 5
bindsym Shift+0 gaps left all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment