diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config | 104 |
1 files changed, 73 insertions, 31 deletions
| @@ -18,7 +18,8 @@ set $mod Mod4 | |||
| 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 10 | 20 | # font pango:Neris SemiBold 10 |
| 21 | font pango:Source Code Pro Bold 11 | 21 | font pango:Source Code Pro SemiBold 11 |
| 22 | # font pango:Liberation Sans Mono Bold 11 | ||
| 22 | # font pango:DejaVu Sans Mono 12 | 23 | # font pango:DejaVu Sans Mono 12 |
| 23 | 24 | ||
| 24 | # Before i3 v4.8, we used to recommend this one as the default: | 25 | # Before i3 v4.8, we used to recommend this one as the default: |
| @@ -36,6 +37,8 @@ floating_modifier $mod | |||
| 36 | bindsym $mod+Return exec xfce4-appfinder | 37 | 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 | 38 | bindsym Mod1+F2 exec --no-startup-id rofi -show run -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff |
| 38 | bindsym $mod+t exec xfce4-terminal | 39 | bindsym $mod+t exec xfce4-terminal |
| 40 | # bindsym $mod+t exec termite | ||
| 41 | # bindsym $mod+t exec urxvt | ||
| 39 | bindsym $mod+e exec thunar | 42 | bindsym $mod+e exec thunar |
| 40 | 43 | ||
| 41 | # kill focused window | 44 | # kill focused window |
| @@ -58,6 +61,8 @@ bindsym $mod+Down focus down ; exec pkill -SIGRTMIN+11 i3blocks | |||
| 58 | bindsym $mod+Up focus up ; exec pkill -SIGRTMIN+11 i3blocks | 61 | bindsym $mod+Up focus up ; exec pkill -SIGRTMIN+11 i3blocks |
| 59 | bindsym $mod+Right focus right ; exec pkill -SIGRTMIN+11 i3blocks | 62 | bindsym $mod+Right focus right ; exec pkill -SIGRTMIN+11 i3blocks |
| 60 | 63 | ||
| 64 | bindsym Mod1+Tab focus right | ||
| 65 | bindsym Mod1+Shift+Tab focus left | ||
| 61 | 66 | ||
| 62 | 67 | ||
| 63 | # alternatively, you can use the cursor keys: | 68 | # alternatively, you can use the cursor keys: |
| @@ -104,8 +109,8 @@ bindsym $mod+5 workspace 5 | |||
| 104 | bindsym $mod+6 workspace 6 | 109 | bindsym $mod+6 workspace 6 |
| 105 | bindsym $mod+7 workspace 7 | 110 | bindsym $mod+7 workspace 7 |
| 106 | bindsym $mod+8 workspace 8 | 111 | bindsym $mod+8 workspace 8 |
| 107 | bindsym $mod+9 workspace 9 | 112 | bindsym $mod+9 workspace music |
| 108 | bindsym $mod+0 workspace 10 | 113 | bindsym $mod+0 workspace background |
| 109 | 114 | ||
| 110 | # move focused container to workspace | 115 | # move focused container to workspace |
| 111 | bindsym $mod+Shift+1 move container to workspace 1 | 116 | bindsym $mod+Shift+1 move container to workspace 1 |
| @@ -116,8 +121,20 @@ bindsym $mod+Shift+5 move container to workspace 5 | |||
| 116 | bindsym $mod+Shift+6 move container to workspace 6 | 121 | bindsym $mod+Shift+6 move container to workspace 6 |
| 117 | bindsym $mod+Shift+7 move container to workspace 7 | 122 | bindsym $mod+Shift+7 move container to workspace 7 |
| 118 | bindsym $mod+Shift+8 move container to workspace 8 | 123 | bindsym $mod+Shift+8 move container to workspace 8 |
| 119 | bindsym $mod+Shift+9 move container to workspace 9 | 124 | bindsym $mod+Shift+9 move container to workspace music |
| 120 | bindsym $mod+Shift+0 move container to workspace 10 | 125 | bindsym $mod+Shift+0 move container to workspace background |
| 126 | |||
| 127 | workspace 1 output VGA1 | ||
| 128 | workspace 2 output VGA1 | ||
| 129 | workspace 3 output VGA1 | ||
| 130 | workspace 4 output VGA1 | ||
| 131 | workspace 5 output VGA1 | ||
| 132 | workspace 6 output HDMI1 | ||
| 133 | workspace 7 output HDMI1 | ||
| 134 | workspace 8 output HDMI1 | ||
| 135 | workspace "music" output HDMI1 | ||
| 136 | workspace "background" output HDMI1 | ||
| 137 | |||
| 121 | 138 | ||
| 122 | # reload the configuration file | 139 | # reload the configuration file |
| 123 | bindsym $mod+Shift+c reload | 140 | bindsym $mod+Shift+c reload |
| @@ -130,17 +147,20 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu | |||
| 130 | bindsym $mod+m move scratchpad | 147 | bindsym $mod+m move scratchpad |
| 131 | bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center | 148 | bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center |
| 132 | 149 | ||
| 133 | for_window [class="^.*"] border normal 4 | 150 | for_window [class="^.*"] border normal 2 |
| 134 | for_window [title="^.*Thunderbird"] border pixel 0 | 151 | for_window [title="^.*Thunderbird"] border pixel 0 |
| 152 | for_window [title="^.*Chromium"] border pixel 0 | ||
| 153 | # for_window [title="^.*\|"] border pixel 4 | ||
| 135 | for_window [title="^HexChat.*"] border pixel 0 | 154 | for_window [title="^HexChat.*"] border pixel 0 |
| 136 | for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks | 155 | for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks |
| 137 | for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks | 156 | for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks |
| 138 | for_window [title="cairo-dock"] floating enable ; border none | 157 | for_window [title="cairo-dock"] floating enable ; border none |
| 139 | for_window[class="Plank"] floating enable,move absolute center | 158 | for_window[class="Plank"] floating enable,move absolute center |
| 140 | 159 | ||
| 141 | 160 | for_window [class=".*"] title_format "┋ %title" | |
| 142 | 161 | # for_window [con_id="__focused__"] title_format "<u>%title</u>" | |
| 143 | smart_borders on | 162 | # hide_edge_borders both |
| 163 | # smart_borders on | ||
| 144 | # gaps inner 5 | 164 | # gaps inner 5 |
| 145 | # gaps outer 5 | 165 | # gaps outer 5 |
| 146 | 166 | ||
| @@ -152,16 +172,30 @@ bar { | |||
| 152 | status_command i3status --config ~/.config/i3/i3status.conf | 172 | status_command i3status --config ~/.config/i3/i3status.conf |
| 153 | # status_command i3blocks | 173 | # status_command i3blocks |
| 154 | colors { | 174 | colors { |
| 155 | background #2a3448 | 175 | # background #2a3448 |
| 156 | statusline #ffffff | 176 | # statusline #ffffff |
| 177 | background #ffffff | ||
| 178 | statusline #000000 | ||
| 179 | focused_workspace #ffffff #ffffff #000000 | ||
| 180 | active_workspace #ffffff #ffffff #888888 | ||
| 181 | inactive_workspace #ffffff #ffffff #888888 | ||
| 182 | urgent_workspace #2f343a #900000 #ffffff | ||
| 183 | binding_mode #2f343a #900000 #ffffff | ||
| 157 | } | 184 | } |
| 158 | # tray_output VGA1 | 185 | # tray_output VGA1 |
| 159 | # tray_padding 4 | 186 | # output HDMI1 |
| 160 | # font pango:DejaVu Sans Mono 12 | 187 | # tray_output HDMI1 |
| 161 | # separator_symbol "┋" | 188 | tray_padding 2 |
| 189 | #font pango:DejaVu Sans Mono 11 | ||
| 190 | #font pango:DejaVu Sans Mono 11 | ||
| 191 | #font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 | ||
| 192 | # font pango:DejaVu Sans Mono, Icons 8 | ||
| 193 | # font pango:DejaVu Sans Mono, Awesome 8 | ||
| 194 | separator_symbol "┋" | ||
| 162 | position bottom | 195 | position bottom |
| 163 | # output VGA1 | 196 | # output VGA1 |
| 164 | binding_mode_indicator yes | 197 | binding_mode_indicator yes |
| 198 | # strip_workspace_numbers yes | ||
| 165 | } | 199 | } |
| 166 | 200 | ||
| 167 | 201 | ||
| @@ -169,13 +203,12 @@ bar { | |||
| 169 | # client.unfocused #000000 #061229 #ffffff #ff0000 #000000 | 203 | # client.unfocused #000000 #061229 #ffffff #ff0000 #000000 |
| 170 | #colors: border backgr. text indicator | 204 | #colors: border backgr. text indicator |
| 171 | 205 | ||
| 172 | client.focused #2a3448 #5299bf #2a3448 #f0a000 | 206 | client.focused #ffffff #ffffff #000000 #000000 |
| 173 | client.focused_inactive #061229 #061229 #ffffff #ffffff | 207 | client.focused_inactive #ffffff #ffffff #888888 #ffffff |
| 174 | client.unfocused #061229 #061229 #5299bf #ffffff | 208 | client.unfocused #ffffff #ffffff #888888 #ffffff |
| 175 | client.urgent #2a3448 #900000 #5299bf #ffffff | 209 | client.urgent #2a3448 #900000 #5299bf #ffffff |
| 176 | client.background #000000 #000000 #000000 #ffffff | 210 | client.background #000000 #000000 #000000 #ffffff |
| 177 | 211 | ||
| 178 | # hide_edge_borders both | ||
| 179 | 212 | ||
| 180 | bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' | 213 | bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' |
| 181 | bindsym Control+Mod1+Left workspace prev_on_output | 214 | bindsym Control+Mod1+Left workspace prev_on_output |
| @@ -222,16 +255,16 @@ mode "resize" { | |||
| 222 | # Pressing right will grow the window’s width. | 255 | # Pressing right will grow the window’s width. |
| 223 | # Pressing up will shrink the window’s height. | 256 | # Pressing up will shrink the window’s height. |
| 224 | # Pressing down will grow the window’s height. | 257 | # Pressing down will grow the window’s height. |
| 225 | bindsym $mod+h resize shrink width 10 px or 10 ppt | 258 | bindsym $mod+h resize shrink width 1 px or 1 ppt |
| 226 | bindsym $mod+j resize grow height 10 px or 10 ppt | 259 | bindsym $mod+j resize grow height 4 px or 4 ppt |
| 227 | bindsym $mod+k resize shrink height 10 px or 10 ppt | 260 | bindsym $mod+k resize shrink height 4 px or 4 ppt |
| 228 | bindsym $mod+l resize grow width 10 px or 10 ppt | 261 | bindsym $mod+l resize grow width 1 px or 1 ppt |
| 229 | 262 | ||
| 230 | # same bindings, but for the arrow keys | 263 | # same bindings, but for the arrow keys |
| 231 | bindsym Left resize shrink width 10 px or 10 ppt | 264 | bindsym Left resize shrink width 1 px or 1 ppt |
| 232 | bindsym Down resize grow height 10 px or 10 ppt | 265 | bindsym Up resize grow height 4 px or 4 ppt |
| 233 | bindsym Up resize shrink height 10 px or 10 ppt | 266 | bindsym Down resize shrink height 4 px or 4 ppt |
| 234 | bindsym Right resize grow width 10 px or 10 ppt | 267 | bindsym Right resize grow width 1 px or 1 ppt |
| 235 | 268 | ||
| 236 | # back to normal: Enter or Escape | 269 | # back to normal: Enter or Escape |
| 237 | bindsym Return mode "default" | 270 | bindsym Return mode "default" |
| @@ -242,13 +275,22 @@ mode "resize" { | |||
| 242 | 275 | ||
| 243 | 276 | ||
| 244 | 277 | ||
| 245 | exec --no-startup-id dbus-launch gnome-settings-daemon | 278 | assign [class="^Thunderbird$"] → background |
| 246 | exec --no-startup-id dbus-launch nm-applet | ||
| 247 | exec --no-startup-id dbus-launch nextcloud | ||
| 248 | 279 | ||
| 249 | exec --no-startup-id setxkbmap -option caps:escape | 280 | exec --no-startup-id setxkbmap -option caps:escape |
| 250 | exec --no-startup-id xset r rate 330 40 | 281 | exec --no-startup-id xset r rate 330 40 |
| 251 | 282 | ||
| 283 | exec --no-startup-id dbus-launch gnome-settings-daemon | ||
| 284 | exec --no-startup-id dbus-launch nm-applet | ||
| 285 | |||
| 286 | # exec xrandr --output HDMI1 --fb 3270x1080 --scale 1.05468x1.05468 | ||
| 287 | # exec xrandr --output HDMI1 --fb 3270x1080 --right-of VGA1 --panning 1350x1080+1920+0 --scale 1.05468x1.05468 | ||
| 288 | exec /usr/bin/xrandr-reset.sh | ||
| 289 | |||
| 252 | # start compositor... | 290 | # start compositor... |
| 253 | exec --no-startup-id compton -bc | 291 | exec --no-startup-id dbus-launch nitrogen --restore |
| 254 | exec --no-startup-id nitrogen --restore | 292 | exec --no-startup-id dbus-launch compton -b --config /home/max/.config/i3/compton.conf |
| 293 | exec --no-startup-id dbus-launch setsid udiskie -2 -s | ||
| 294 | exec --no-startup-id dbus-launch nextcloud | ||
| 295 | |||
| 296 | |||
