# $(#) i3 configuration # vim: ft=i3 # -- Settings default_orientation horizontal workspace_layout default title_align center font xft:console 11 # gaps gaps outer 0 gaps inner 20 #smart_gaps on workspace 2 gaps inner 0 # border smart_borders no_gaps default_border pixel 1 default_floating_border pixel 1 # workspaces set $ws1 "1:1" set $ws2 "2:2" set $ws3 "3:3" set $ws4 "4:4" set $ws5 "5:5" set $ws6 "6:6" set $ws7 "7:7" set $ws8 "8:8" set $ws9 "9:9" set $ws10 "10:0" # steps set $step 40px set $bigstep 150px # --- Rules # floating for_window [workspace=$ws8] floating enable for_window [workspace=$ws9] floating enable for_window [title="^Anomaly"] floating enable for_window [instance="^alsaplayer$"] floating enable for_window [instance="^audacious$"] floating enable for_window [instance="^Browser$"] floating enable for_window [title="^calc$"] floating enable for_window [title="^crawl$"] floating enable for_window [title="^crawl@home$"] floating enable for_window [instance="^deadbeef$"] floating enable for_window [instance="^dia"] floating enable for_window [title="^Event Tester$"] floating enable for_window [instance="^factorio$"] floating enable for_window [instance="^gimp$"] floating enable for_window [instance="^gnucash$"] floating enable for_window [title="^Hand of Fate$"] floating enable for_window [title="^Kingdom Rush$"] floating enable for_window [instance="^Mindustry$"] floating enable for_window [class="^MPlayer$"] floating enable for_window [class="^mpv$"] floating enable for_window [title="^Nekro$"] floating enable for_window [title="^Orborun$"] floating enable for_window [instance="^qsynth$"] floating enable for_window [title="^RaceTheSun$"] floating enable for_window [title="^Ravensword2$"] floating enable for_window [instance="^rox$" title="^Options$"] floating enable for_window [title="^Shadowrun$"] floating enable for_window [title="^Space Hulk$"] floating enable for_window [title="^Splice$"] floating enable for_window [instance="^Steam Marines$"] floating enable move position 320 20 for_window [title="^StepMania$"] floating enable for_window [title="^Surgeon Simulator"] floating enable for_window [title="^EXAPUNKS$"] floating enable for_window [title="^SyderArcadeV13$"] floating enable for_window [instance="^vkeybd.tcl$"] floating enable for_window [instance="^vlc$"] floating enable for_window [class="^Vmpk$"] floating enable for_window [instance="^xcalc$"] floating enable move position 50 70 for_window [class="^XClock$"] floating enable move position 10 32 for_window [class="^XEyes$"] floating enable move position 10 32 for_window [instance="^wesnoth"] floating enable for_window [title="^Xnest$"] floating enable for_window [title="^Xonotic$"] floating enable for_window [instance="^xsane$"] floating enable # workspace assign [instance="^Browser$"] $ws2 assign [title="^chat$"] $ws1 assign [instance="^dia"] $ws8 assign [instance="^mscore"] $ws6 assign [instance="^musescore"] $ws6 assign [instance="^Navigator$"] $ws2 assign [instance="^Opera$"] $ws2 assign [instance="^gimp$"] $ws8 assign [instance="^gnucash$"] $ws8 assign [class="^thunderbird$"] $ws5 # --- Bindings set $mod Mod1 floating_modifier $mod bindsym Control+$mod+Return exec xterminal bindsym $mod+Shift+Return exec ~/conf/i3/abc-terminals bindsym $mod+b exec --no-startup-id polybar-msg cmd toggle bindsym $mod+Shift+b exec --no-startup-id polybar-msg cmd restart bindsym $mod+p exec xrun bindsym $mod+Tab exec xwindow bindsym $mod+Shift+c kill bindsym $mod+Shift+r restart bindsym $mod+Shift+q exit bindsym $mod+h focus left bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l focus right bindsym $mod+Shift+h move left bindsym $mod+Shift+j move down bindsym $mod+Shift+k move up bindsym $mod+Shift+l move right bindsym $mod+z split h bindsym $mod+v split v bindsym $mod+a layout default bindsym $mod+t layout tabbed bindsym $mod+s layout stacking bindsym $mod+e layout toggle split bindsym Control+$mod+space floating toggle bindsym $mod+button2 --whole-window --border floating toggle #bindsym --border button1 nop bindsym $mod+space focus mode_toggle bindsym $mod+y sticky toggle bindsym $mod+u focus parent bindsym $mod+d focus child bindsym $mod+g gaps inner current toggle 20 bindsym $mod+m fullscreen toggle bindcode $mod+82 move scratchpad bindcode $mod+86 scratchpad show, floating disable bindsym $mod+ampersand workspace $ws1 bindsym $mod+eacute workspace $ws2 bindsym $mod+quotedbl workspace $ws3 bindsym $mod+apostrophe workspace $ws4 bindsym $mod+parenleft workspace $ws5 bindsym $mod+minus workspace $ws6 bindsym $mod+egrave workspace $ws7 bindsym $mod+underscore workspace $ws8 bindsym $mod+ccedilla workspace $ws9 bindsym $mod+agrave workspace $ws10 bindsym $mod+Shift+ampersand move container to workspace $ws1 bindsym $mod+Shift+eacute move container to workspace $ws2 bindsym $mod+Shift+quotedbl move container to workspace $ws3 bindsym $mod+Shift+apostrophe move container to workspace $ws4 bindsym $mod+Shift+5 move container to workspace $ws5 bindsym $mod+Shift+minus move container to workspace $ws6 bindsym $mod+Shift+egrave move container to workspace $ws7 bindsym $mod+Shift+underscore move container to workspace $ws8 bindsym $mod+Shift+ccedilla move container to workspace $ws9 bindsym $mod+Shift+agrave move container to workspace $ws10 bindsym $mod+Left workspace prev_on_output bindsym $mod+Right workspace next_on_output bindsym $mod+Shift+Left move container to workspace prev_on_output bindsym $mod+Shift+Right move container to workspace next_on_output bindsym --whole-window --border button6 workspace prev_on_output bindsym --whole-window --border button7 workspace next_on_output bindsym --whole-window --border Shift+button6 move container to workspace prev_on_output bindsym --whole-window --border Shift+button7 move container to workspace next_on_output #bindsym $mod+r mode "resize" bindsym $mod+r mode "" #mode "resize" { mode "" { bindsym h resize shrink width $step bindsym j resize grow height $step bindsym k resize shrink height $step bindsym l resize grow width $step bindsym Shift+h resize shrink width $bigstep bindsym Shift+j resize grow height $bigstep bindsym Shift+k resize shrink height $bigstep bindsym Shift+l resize grow width $bigstep bindsym $mod+r mode "default" bindsym $mod+o mode "" bindsym Return mode "default" bindsym Escape mode "default" } #bindsym $mod+o mode "move" bindsym $mod+o mode "" #mode "move" { mode "" { bindsym h move left $step bindsym j move down $step bindsym k move up $step bindsym l move right $step bindsym Shift+h move left $bigstep bindsym Shift+j move down $bigstep bindsym Shift+k move up $bigstep bindsym Shift+l move right $bigstep bindsym $mod+o mode "default" bindsym $mod+r mode "" bindsym Return mode "default" bindsym Escape mode "default" } # --- Colors # class border background text indicator child_border client.focused #4c7899 #285577 #ffffff #60aeef #60aeef client.focused_inactive #333333 #5f676a #cccccc #484e50 #5f676a client.unfocused #333333 #333333 #cccccc #292d2e #222222 client.urgent #2f343a #e5505f #ffffff #e5505f #e5505f client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c client.background #ffffff # --- Startup exec --no-startup-id polybar top exec --no-startup-id polybar bottom