diff options
| author | Max Christian Pohle | 2016-10-16 03:31:37 +0200 |
|---|---|---|
| committer | Max Christian Pohle | 2016-10-16 03:31:37 +0200 |
| commit | 9a6771b513520222e6c967dbadd982021f71235e (patch) | |
| tree | c2542860fc69b058837d577506ccaa80a8d1f3f4 /config | |
| parent | 20f136b814faa2baf5e96b2c1d31b02903540429 (diff) | |
| download | i3-9a6771b513520222e6c967dbadd982021f71235e.tar.bz2 i3-9a6771b513520222e6c967dbadd982021f71235e.zip | |
Cool config with window highlighting
uses compton and a special i3 version, currently i3-gaps to make windows
borderless if they are the only windows on the screen
Diffstat (limited to 'config')
| -rw-r--r-- | config | 102 |
1 files changed, 53 insertions, 49 deletions
| @@ -17,7 +17,8 @@ set $mod Mod4 | |||
| 17 | 17 | ||
| 18 | # This font is widely installed, provides lots of unicode glyphs, right-to-left | 18 | # This font is widely installed, provides lots of unicode glyphs, right-to-left |
| 19 | # text rendering and scalability on retina/hidpi displays (thanks to pango). | 19 | # text rendering and scalability on retina/hidpi displays (thanks to pango). |
| 20 | font pango:Neris SemiBold 11 | 20 | # font pango:Neris SemiBold 10 |
| 21 | font pango:Source Code Pro Bold 11 | ||
| 21 | # font pango:DejaVu Sans Mono 12 | 22 | # font pango:DejaVu Sans Mono 12 |
| 22 | 23 | ||
| 23 | # Before i3 v4.8, we used to recommend this one as the default: | 24 | # Before i3 v4.8, we used to recommend this one as the default: |
| @@ -32,7 +33,8 @@ floating_modifier $mod | |||
| 32 | 33 | ||
| 33 | # start a terminal | 34 | # start a terminal |
| 34 | # bindsym $mod+Return exec i3-sensible-terminal | 35 | # bindsym $mod+Return exec i3-sensible-terminal |
| 35 | bindsym $mod+Return exec xfce4-terminal | 36 | bindsym $mod+Return exec xfce4-appfinder |
| 37 | bindsym Mod1+F2 exec --no-startup-id rofi -show run -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff | ||
| 36 | bindsym $mod+t exec xfce4-terminal | 38 | bindsym $mod+t exec xfce4-terminal |
| 37 | bindsym $mod+e exec thunar | 39 | bindsym $mod+e exec thunar |
| 38 | 40 | ||
| @@ -47,22 +49,22 @@ bindsym Mod1+F4 kill | |||
| 47 | # installed. | 49 | # installed. |
| 48 | # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop | 50 | # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop |
| 49 | bindsym $mod+d exec --no-startup-id j4-dmenu-desktop | 51 | bindsym $mod+d exec --no-startup-id j4-dmenu-desktop |
| 50 | bindsym Mod1+F2 exec --no-startup-id j4-dmenu-desktop | ||
| 51 | 52 | ||
| 52 | 53 | ||
| 53 | 54 | ||
| 54 | # alternatively, you can use the cursor keys: | 55 | # alternatively, you can use the cursor keys: |
| 55 | bindsym $mod+Left focus left | 56 | bindsym $mod+Left focus left ; exec pkill -SIGRTMIN+11 i3blocks |
| 56 | bindsym $mod+Down focus down | 57 | bindsym $mod+Down focus down ; exec pkill -SIGRTMIN+11 i3blocks |
| 57 | bindsym $mod+Up focus up | 58 | bindsym $mod+Up focus up ; exec pkill -SIGRTMIN+11 i3blocks |
| 58 | bindsym $mod+Right focus right | 59 | bindsym $mod+Right focus right ; exec pkill -SIGRTMIN+11 i3blocks |
| 60 | |||
| 59 | 61 | ||
| 60 | 62 | ||
| 61 | # alternatively, you can use the cursor keys: | 63 | # alternatively, you can use the cursor keys: |
| 62 | bindsym $mod+Shift+Left move left | 64 | bindsym $mod+Shift+Left move left ; exec pkill -SIGRTMIN+11 i3blocks |
| 63 | bindsym $mod+Shift+Down move down | 65 | bindsym $mod+Shift+Down move down ; exec pkill -SIGRTMIN+11 i3blocks |
| 64 | bindsym $mod+Shift+Up move up | 66 | bindsym $mod+Shift+Up move up ; exec pkill -SIGRTMIN+11 i3blocks |
| 65 | bindsym $mod+Shift+Right move right | 67 | bindsym $mod+Shift+Right move right ; exec pkill -SIGRTMIN+11 i3blocks |
| 66 | 68 | ||
| 67 | # split in horizontal orientation | 69 | # split in horizontal orientation |
| 68 | # bindsym $mod+h split h | 70 | # bindsym $mod+h split h |
| @@ -91,6 +93,7 @@ bindsym $mod+a focus parent | |||
| 91 | #bindsym $mod+d focus child | 93 | #bindsym $mod+d focus child |
| 92 | 94 | ||
| 93 | workspace 1 output VGA1 | 95 | workspace 1 output VGA1 |
| 96 | workspace_layout tabbed | ||
| 94 | 97 | ||
| 95 | # switch to workspace | 98 | # switch to workspace |
| 96 | bindsym $mod+1 workspace 1 | 99 | bindsym $mod+1 workspace 1 |
| @@ -127,34 +130,19 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu | |||
| 127 | bindsym $mod+m move scratchpad | 130 | bindsym $mod+m move scratchpad |
| 128 | bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center | 131 | bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center |
| 129 | 132 | ||
| 130 | for_window [class="^.*"] border pixel 8 | 133 | for_window [class="^.*"] border normal 4 |
| 131 | # smart_borders on | 134 | for_window [title="^.*Thunderbird"] border pixel 0 |
| 132 | # gaps inner 8 | 135 | for_window [title="^HexChat.*"] border pixel 0 |
| 133 | # gaps outer 8 | 136 | for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks |
| 137 | for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks | ||
| 138 | for_window [title="cairo-dock"] floating enable ; border none | ||
| 139 | for_window[class="Plank"] floating enable,move absolute center | ||
| 140 | |||
| 134 | 141 | ||
| 135 | # resize window (you can also use the mouse for that) | 142 | |
| 136 | # mode "resize" { | 143 | smart_borders on |
| 137 | # # These bindings trigger as soon as you enter the resize mode | 144 | # gaps inner 5 |
| 138 | # | 145 | # gaps outer 5 |
| 139 | # # Pressing left will shrink the window’s width. | ||
| 140 | # # Pressing right will grow the window’s width. | ||
| 141 | # # Pressing up will shrink the window’s height. | ||
| 142 | # # Pressing down will grow the window’s height. | ||
| 143 | # bindsym j resize shrink width 10 px or 10 ppt | ||
| 144 | # bindsym k resize grow height 10 px or 10 ppt | ||
| 145 | # bindsym l resize shrink height 10 px or 10 ppt | ||
| 146 | # bindsym semicolon resize grow width 10 px or 10 ppt | ||
| 147 | # | ||
| 148 | # # same bindings, but for the arrow keys | ||
| 149 | # bindsym Left resize shrink width 10 px or 10 ppt | ||
| 150 | # bindsym Down resize grow height 10 px or 10 ppt | ||
| 151 | # bindsym Up resize shrink height 10 px or 10 ppt | ||
| 152 | # bindsym Right resize grow width 10 px or 10 ppt | ||
| 153 | # | ||
| 154 | # # back to normal: Enter or Escape | ||
| 155 | # bindsym Return mode "default" | ||
| 156 | # bindsym Escape mode "default" | ||
| 157 | # } | ||
| 158 | 146 | ||
| 159 | bindsym $mod+r mode "resize" | 147 | bindsym $mod+r mode "resize" |
| 160 | 148 | ||
| @@ -162,21 +150,32 @@ bindsym $mod+r mode "resize" | |||
| 162 | # finds out, if available) | 150 | # finds out, if available) |
| 163 | bar { | 151 | bar { |
| 164 | status_command i3status --config ~/.config/i3/i3status.conf | 152 | status_command i3status --config ~/.config/i3/i3status.conf |
| 153 | # status_command i3blocks | ||
| 165 | colors { | 154 | colors { |
| 166 | background #061229 | 155 | background #2a3448 |
| 167 | statusline #ffffff | 156 | statusline #ffffff |
| 168 | } | 157 | } |
| 169 | # tray_output VGA1 | 158 | # tray_output VGA1 |
| 170 | tray_padding 4 | 159 | # tray_padding 4 |
| 171 | # font pango:DejaVu Sans Mono 12 | 160 | # font pango:DejaVu Sans Mono 12 |
| 172 | # separator_symbol "┋" | 161 | # separator_symbol "┋" |
| 173 | position top | 162 | position bottom |
| 174 | # output VGA1 | 163 | # output VGA1 |
| 175 | binding_mode_indicator yes | 164 | binding_mode_indicator yes |
| 176 | } | 165 | } |
| 177 | 166 | ||
| 178 | client.focused #ffffff #061229 #ffffff #5299BF #ffffff | 167 | |
| 179 | # client.unfocused #000000 #061229 #000000 #ff0000 #000000 | 168 | # client.focused #ffffff #061229 #ffffff #5299BF #ffffff |
| 169 | # client.unfocused #000000 #061229 #ffffff #ff0000 #000000 | ||
| 170 | #colors: border backgr. text indicator | ||
| 171 | |||
| 172 | client.focused #2a3448 #5299bf #2a3448 #f0a000 | ||
| 173 | client.focused_inactive #061229 #061229 #ffffff #ffffff | ||
| 174 | client.unfocused #061229 #061229 #5299bf #ffffff | ||
| 175 | client.urgent #2a3448 #900000 #5299bf #ffffff | ||
| 176 | client.background #000000 #000000 #000000 #ffffff | ||
| 177 | |||
| 178 | # hide_edge_borders both | ||
| 180 | 179 | ||
| 181 | bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' | 180 | bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' |
| 182 | bindsym Control+Mod1+Left workspace prev_on_output | 181 | bindsym Control+Mod1+Left workspace prev_on_output |
| @@ -195,10 +194,10 @@ bindsym Control+Mod1+Right workspace next_on_output | |||
| 195 | # bindsym $mod+Shift+semicolon move right | 194 | # bindsym $mod+Shift+semicolon move right |
| 196 | 195 | ||
| 197 | # change focus | 196 | # change focus |
| 198 | bindsym $mod+h focus left | 197 | bindsym $mod+h focus left ; exec killall -USR1 i3status |
| 199 | bindsym $mod+j focus down | 198 | bindsym $mod+j focus down ; exec killall -USR1 i3status |
| 200 | bindsym $mod+k focus up | 199 | bindsym $mod+k focus up ; exec killall -USR1 i3status |
| 201 | bindsym $mod+l focus right | 200 | bindsym $mod+l focus right ; exec killall -USR1 i3status |
| 202 | 201 | ||
| 203 | # move focused window | 202 | # move focused window |
| 204 | bindsym $mod+Shift+h move left | 203 | bindsym $mod+Shift+h move left |
| @@ -242,9 +241,14 @@ mode "resize" { | |||
| 242 | 241 | ||
| 243 | 242 | ||
| 244 | 243 | ||
| 244 | |||
| 245 | exec --no-startup-id dbus-launch gnome-settings-daemon | 245 | exec --no-startup-id dbus-launch gnome-settings-daemon |
| 246 | exec --no-startup-id dbus-launch nm-applet | 246 | exec --no-startup-id dbus-launch nm-applet |
| 247 | exec --no-startup-id dbus-launch nextcloud | 247 | exec --no-startup-id dbus-launch nextcloud |
| 248 | exec --no-startup-id nitrogen --restore | 248 | |
| 249 | exec --no-startup-id setxkbmap -option caps:escape | 249 | exec --no-startup-id setxkbmap -option caps:escape |
| 250 | exec xset r rate 330 75 | 250 | exec --no-startup-id xset r rate 330 40 |
| 251 | |||
| 252 | # start compositor... | ||
| 253 | exec --no-startup-id compton -bc | ||
| 254 | exec --no-startup-id nitrogen --restore | ||
