diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config | 200 |
1 files changed, 104 insertions, 96 deletions
| @@ -2,57 +2,76 @@ | |||
| 2 | # | 2 | # |
| 3 | # Please see http://i3wm.org/docs/userguide.html for a complete reference! | 3 | # Please see http://i3wm.org/docs/userguide.html for a complete reference! |
| 4 | 4 | ||
| 5 | # load xrdb | ||
| 6 | exec xrdb ~/.Xresources ; i3-msg reload | ||
| 5 | 7 | ||
| 6 | output DP-1 { | 8 | output DP-1 { |
| 7 | pos 0 0 | 9 | pos 0 0 |
| 8 | res 1920x1080 | 10 | res 1920x1080 |
| 9 | background ~/.local/share/backgrounds/01-0.jpg center | 11 | background ~/.local/share/backgrounds/01-0.jpg fill |
| 12 | dpms on | ||
| 10 | } | 13 | } |
| 11 | 14 | ||
| 12 | output DP-2 { | 15 | output DP-2 { |
| 13 | pos 1920 0 | 16 | pos 1920 0 |
| 14 | res 1920x1080 | 17 | res 1920x1080 |
| 15 | background ~/.local/share/backgrounds/01-1.jpg center | 18 | background ~/.local/share/backgrounds/01-1.jpg fill |
| 19 | # transform 270 | ||
| 20 | dpms on | ||
| 16 | } | 21 | } |
| 17 | 22 | ||
| 18 | # load xrdb | 23 | |
| 19 | exec xrdb ~/.Xresources ; i3-msg reload | 24 | xwayland enable |
| 25 | gaps inner 0 | ||
| 26 | gaps outer 0 | ||
| 27 | smart_gaps on | ||
| 28 | smart_borders no_gaps | ||
| 20 | 29 | ||
| 21 | # force_xinerama yes | 30 | # force_xinerama yes |
| 22 | # fake-outputs 3840x1080+0+0 | 31 | # fake-outputs 3840x1080+0+0 |
| 23 | 32 | ||
| 24 | # we basically want to configure our font with ~/.config/fontconfig/* | 33 | # we basically want to configure our font with ~/.config/fontconfig/* |
| 25 | # font pango:FuraCode Nerd Font Mono Retina 9 | 34 | # font pango:GoMono Nerd Font 9 |
| 26 | font pango:Monospace 9 | 35 | # font pango:FuraCode Nerd Font Mono 9 |
| 27 | # font pango:Code New Roman Nerd Font 9 | 36 | # font pango:Code New Roman Nerd Font 9 |
| 37 | font pango:monospace 9 | ||
| 28 | 38 | ||
| 29 | hide_edge_borders both | 39 | hide_edge_borders both |
| 40 | title_align left | ||
| 41 | # focus_follows_mouse no | ||
| 42 | # mouse_warping none | ||
| 30 | 43 | ||
| 31 | set $mod Mod4 | 44 | set $mod Mod4 |
| 32 | 45 | ||
| 46 | bindsym $mod+j "mark --toggle a" | ||
| 47 | |||
| 33 | # Use Mouse+$mod to drag floating windows to their wanted position | 48 | # Use Mouse+$mod to drag floating windows to their wanted position |
| 34 | floating_modifier $mod | 49 | floating_modifier $mod |
| 35 | 50 | ||
| 36 | # start a terminal | 51 | # start a terminal |
| 37 | # bindsym $mod+Return exec i3-sensible-terminal | 52 | # bindsym $mod+Return exec i3-sensible-terminal |
| 38 | bindsym $mod+Return exec --no-startup-id xfce4-appfinder | 53 | bindsym $mod+Return exec rofi -show drun -show-icons |
| 39 | bindsym Mod1+F2 exec --no-startup-id rofi -show run -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff | 54 | bindsym Mod1+F2 exec rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5 |
| 40 | bindsym $mod+t exec --no-startup-id xfce4-terminal | 55 | bindsym $mod+t exec termite |
| 41 | # bindsym $mod+t exec termite | 56 | # bindsym $mod+t exec termite |
| 42 | # bindsym $mod+t exec urxvt | 57 | # bindsym $mod+t exec urxvt |
| 43 | bindsym $mod+e exec --no-startup-id thunar | 58 | bindsym $mod+e exec thunar |
| 44 | bindsym $mod+l exec --no-startup-id ~/.local/bin/i3lock -f -i "/home/max/.local/share/backgrounds/IMG_5656 - IMG_5684-02.png" | 59 | bindsym $mod+l exec swaylock -f -i "/home/max/.local/share/backgrounds/IMG_5656 - IMG_5684-02.png" |
| 45 | 60 | ||
| 46 | bindsym Print exec pactl set-sink-mute 0 toggle | 61 | bindsym $mod+F10 exec pactl set-sink-mute 0 toggle |
| 47 | bindsym Scroll_Lock exec pactl set-sink-volume 0 -5% | 62 | bindsym $mod+F11 exec pactl set-sink-volume 0 -5% |
| 48 | bindsym Pause exec pactl set-sink-volume 0 +5% | 63 | bindsym $mod+F12 exec pactl set-sink-volume 0 +5% |
| 49 | 64 | ||
| 50 | # Pulse Audio controls | 65 | # Pulse Audio controls |
| 51 | bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% # increase sound volume | 66 | bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% # increase sound volume |
| 52 | bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% # decrease sound volume | 67 | bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% # decrease sound volume |
| 53 | bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound | 68 | bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound |
| 54 | 69 | ||
| 55 | bindcode 156 exec xrandr --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800 | 70 | # exec xrandr --dpi 95.48 --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800 |
| 71 | # bindcode 156 | ||
| 72 | # exec xrandr --output DP-1 --rotate left --pos 1920x-420 | ||
| 73 | # exec xrandr --output DP1 --rotate left --right-of HDMI1 | ||
| 74 | # exec xrandr --output DP1 --rotate left --pos 1920x-420 | ||
| 56 | 75 | ||
| 57 | # kill focused window | 76 | # kill focused window |
| 58 | bindsym $mod+Shift+q kill | 77 | bindsym $mod+Shift+q kill |
| @@ -69,10 +88,10 @@ bindsym $mod+d exec --no-startup-id i3-dmenu-desktop | |||
| 69 | 88 | ||
| 70 | bindsym $mod+Prior focus parent | 89 | bindsym $mod+Prior focus parent |
| 71 | bindsym $mod+Next focus child | 90 | bindsym $mod+Next focus child |
| 72 | bindsym $mod+Left [workspace="__focused__"] focus left | 91 | bindsym $mod+Left focus left |
| 73 | bindsym $mod+Right [workspace="__focused__"] focus right | 92 | bindsym $mod+Right focus right |
| 74 | bindsym $mod+Down [workspace="__focused__"] focus down | 93 | bindsym $mod+Down focus down |
| 75 | bindsym $mod+Up [workspace="__focused__"] focus up | 94 | bindsym $mod+Up focus up |
| 76 | bindsym $mod+Tab focus output right | 95 | bindsym $mod+Tab focus output right |
| 77 | bindsym $mod+Shift+Tab focus output left | 96 | bindsym $mod+Shift+Tab focus output left |
| 78 | bindsym mod1+Tab focus right | 97 | bindsym mod1+Tab focus right |
| @@ -116,20 +135,23 @@ workspace 1 output VGA1 | |||
| 116 | workspace_layout tabbed | 135 | workspace_layout tabbed |
| 117 | 136 | ||
| 118 | # customize workspace names | 137 | # customize workspace names |
| 119 | set $WS1 1:1⃣ | 138 | set $WS1 1:1⃣ |
| 120 | set $WS2 2:2⃣ | 139 | set $WS2 2:2⃣ |
| 121 | set $WS3 3:3⃣ | 140 | set $WS3 3:3⃣ |
| 122 | set $WS4 4:4⃣ | 141 | set $WS4 4:4⃣ |
| 123 | set $WS5 5:5⃣ | 142 | set $WS5 5:5⃣ |
| 124 | set $WS6 6:6⃣ | 143 | set $WS6 6:6⃣ |
| 125 | set $WS7 7:7⃣ | 144 | set $WS7 7:7⃣ |
| 126 | set $WS8 8:8⃣ | 145 | set $WS8 8:8⃣ |
| 127 | set $WS9 9:9⃣ | 146 | set $WS9 9:9⃣ |
| 128 | set $WS10 10:0⃣ | 147 | set $WS10 10:0⃣ |
| 129 | 148 | ||
| 130 | assign [class="^Thunderbird$"] → $WS10 | 149 | assign [class="^Thunderbird$"] → $WS10 |
| 131 | assign [class="^evolution"] → output right | 150 | assign [class="^Pidgin"] → $WS10 |
| 132 | assign [class="(?i)pidgin"] → output right | 151 | assign [class="^Hexchat"] → $WS10 |
| 152 | assign [class="(?i)pidgin"] → $WS10 | ||
| 153 | |||
| 154 | bindsym Mod4+BackSpace exec i3-msg move workspace to output right | ||
| 133 | 155 | ||
| 134 | # switch to workspace | 156 | # switch to workspace |
| 135 | bindsym Mod4+1 workspace $WS1 | 157 | bindsym Mod4+1 workspace $WS1 |
| @@ -155,16 +177,16 @@ bindsym Mod4+Shift+8 move container to workspace $WS8 | |||
| 155 | bindsym Mod4+Shift+9 move container to workspace $WS9 | 177 | bindsym Mod4+Shift+9 move container to workspace $WS9 |
| 156 | bindsym Mod4+Shift+0 move container to workspace $WS10 | 178 | bindsym Mod4+Shift+0 move container to workspace $WS10 |
| 157 | 179 | ||
| 158 | workspace 1 output DP-1 | 180 | # workspace 1 output DP-1 |
| 159 | workspace 2 output DP-1 | 181 | # workspace 2 output DP-1 |
| 160 | workspace 3 output DP-1 | 182 | # workspace 3 output DP-1 |
| 161 | workspace 4 output DP-1 | 183 | # workspace 4 output DP-1 |
| 162 | workspace 5 output HDMI-1 | 184 | # workspace 5 output HDMI-1 |
| 163 | workspace 6 output HDMI-1 | 185 | # workspace 6 output HDMI-1 |
| 164 | workspace 7 output HDMI-1 | 186 | # workspace 7 output HDMI-1 |
| 165 | workspace 8 output HDMI-1 | 187 | # workspace 8 output HDMI-1 |
| 166 | workspace "music" output HDMI-1 | 188 | # workspace "music" output HDMI-1 |
| 167 | workspace "background" output HDMI-1 | 189 | # workspace "background" output HDMI-1 |
| 168 | 190 | ||
| 169 | # reload the configuration file | 191 | # reload the configuration file |
| 170 | bindsym $mod+Shift+c reload | 192 | bindsym $mod+Shift+c reload |
| @@ -241,25 +263,25 @@ mode $mode_brightness { | |||
| 241 | #! exec: execute when starting | 263 | #! exec: execute when starting |
| 242 | #! exec_always: execute when starting or restarting | 264 | #! exec_always: execute when starting or restarting |
| 243 | 265 | ||
| 244 | |||
| 245 | |||
| 246 | # exec xrandr --output HDMI-1 --right-of DP-1 | 266 | # exec xrandr --output HDMI-1 --right-of DP-1 |
| 247 | # exec xrandr --output HDMI-1 --right-of VGA-1 | 267 | # exec xrandr --output HDMI-1 --right-of VGA-1 |
| 248 | # exec /usr/bin/xrandr-reset.sh | 268 | # exec /usr/bin/xrandr-reset.sh |
| 249 | # exec setxkbmap -option caps:escape | ||
| 250 | exec xset r rate 330 40 | 269 | exec xset r rate 330 40 |
| 251 | exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1 | 270 | exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1 |
| 252 | exec setsid xautolock -locker i3lock | 271 | # exec setsid xautolock -locker swaylock |
| 253 | 272 | ||
| 254 | exec --no-startup-id /usr/lib/gnome-settings-daemon/gsd-xsettings | 273 | exec swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000' |
| 255 | exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 | ||
| 256 | exec --no-startup-id gnome-keyring-daemon --start --components=secrets | ||
| 257 | # start compositor... | ||
| 258 | exec --no-startup-id compton -b --config ~/.config/i3/compton.conf | ||
| 259 | exec --no-startup-id nitrogen --restore | ||
| 260 | exec --no-startup-id nm-applet | ||
| 261 | 274 | ||
| 262 | exec --no-startup-id ln -sf /dev/shm/recently-used.xbel $HOME/.local/share/recently-used.xbel | 275 | # exec gnome-keyring-daemon --start --components=secrets |
| 276 | # start compositor... | ||
| 277 | # exec compton -b --config ~/.config/i3/compton.conf | ||
| 278 | # exec nitrogen --restore | ||
| 279 | exec setsid mako | ||
| 280 | exec nm-applet | ||
| 281 | exec pidgin | ||
| 282 | exec bash -c 'for d in ~/.config/autostart/*.desktop; do awk -e 'match($0,"Exec=(.*)",q){ gsub(/ %.+/, "", q[1]); system("setsid -f " q[1])};' $d; done' | ||
| 283 | exec_always setxkbmap de,us -device evdev -model pc105 -option "" -option keypad:pointerkeys,grp_led:caps,grp:caps_toggle,terminate:ctrl_alt_bksp -v 1 -print | ||
| 284 | # exec setxkbmap -option caps:escape | ||
| 263 | 285 | ||
| 264 | 286 | ||
| 265 | 287 | ||
| @@ -273,39 +295,28 @@ exec setsid hexchat -e --minimize=2 | |||
| 273 | # with default values from base16-tomorrow-night | 295 | # with default values from base16-tomorrow-night |
| 274 | # ============================================== | 296 | # ============================================== |
| 275 | 297 | ||
| 276 | set $base00 #1d1f21 | 298 | include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config |
| 277 | set $base01 #282a2e | 299 | # main variables ssource default |
| 278 | set $base02 #373b41 | 300 | # d variable default |
| 279 | set $base03 #969896 | 301 | set $background $base01 |
| 280 | set $base04 #b4b7b4 | 302 | set $foreground $base05 |
| 281 | set $base05 #c5c8c6 | 303 | set $cursorColor #00ff00 |
| 282 | set $base06 #e0e0e0 | 304 | |
| 283 | set $base07 #ffffff | 305 | # set_from_resource $foreground base16.cursor $cursorColor |
| 284 | set $base08 #cc6666 | 306 | # set_from_resource $foreground base16.cursor $base05 |
| 285 | set $base09 #de935f | ||
| 286 | set $base0A #f0c674 | ||
| 287 | set $base0B #b5bd68 | ||
| 288 | set $base0C #8abeb7 | ||
| 289 | set $base0D #81a2be | ||
| 290 | set $base0E #b294bb | ||
| 291 | set $base0F #a3685a | ||
| 292 | # d variable default | ||
| 293 | set $cursorColor $base05 | ||
| 294 | set $background $base00 | ||
| 295 | set $foreground $base05 | ||
| 296 | set $foreground $base05 | ||
| 297 | # | ||
| 298 | 307 | ||
| 299 | # Basic bar configuration using the Base16 variables. | 308 | # Basic bar configuration using the Base16 variables. |
| 300 | bar { | 309 | bar { |
| 301 | # status_command i3status --config ~/.config/i3/i3status.conf | 310 | # status_command i3status --config ~/.config/i3/i3status.conf |
| 311 | font pango:monospace 9 | ||
| 302 | status_command i3status --config ~/.config/i3/i3status.conf | 312 | status_command i3status --config ~/.config/i3/i3status.conf |
| 303 | # status_command /home/max/src/i3status/i3status --config ~/.config/i3/i3status.conf | 313 | # swaybar_command swaybar |
| 304 | 314 | ||
| 305 | tray_padding 2 | 315 | tray_padding 2 |
| 316 | tray_output DP-1 | ||
| 306 | mode dock | 317 | mode dock |
| 307 | strip_workspace_numbers yes | 318 | strip_workspace_numbers yes |
| 308 | # separator_symbol "│" | 319 | # separator_symbol "|" |
| 309 | separator_symbol " " | 320 | separator_symbol " " |
| 310 | 321 | ||
| 311 | colors { | 322 | colors { |
| @@ -318,7 +329,7 @@ bar { | |||
| 318 | inactive_workspace $background $background $base03 | 329 | inactive_workspace $background $background $base03 |
| 319 | urgent_workspace $background $background $base08 | 330 | urgent_workspace $background $background $base08 |
| 320 | binding_mode $background $background $foreground | 331 | binding_mode $background $background $foreground |
| 321 | } | 332 | } |
| 322 | } | 333 | } |
| 323 | 334 | ||
| 324 | # Basic color configuration using the Base16 variables for windows and borders. | 335 | # Basic color configuration using the Base16 variables for windows and borders. |
| @@ -331,30 +342,27 @@ client.placeholder $base00 $base00 $base05 $base00 $base00 | |||
| 331 | client.background $background | 342 | client.background $background |
| 332 | 343 | ||
| 333 | 344 | ||
| 334 | for_window [class="(?i)evolution"] title_format "📧 %title" | ||
| 335 | for_window [class="(?i)thunderbird"] title_format "📧 %title" | ||
| 336 | for_window [class="(?i)firefox"] title_format " %title" | ||
| 337 | for_window [class="(?i)chromium"] title_format " %title" | ||
| 338 | for_window [class="(?i)hexchat"] title_format " %title" | ||
| 339 | for_window [class="(?i)pidgin"] title_format "👥 %title" | ||
| 340 | for_window [class="(?i)thunar"] title_format "🗄️ %title" | ||
| 341 | for_window [class="(?i)keepassx?"] title_format "🔑 %title" | ||
| 342 | for_window [class="(?i).*terminal?"] title_format " %title" | ||
| 343 | for_window [class="(?i)xfce4-appfinder"] title_format " %title" | ||
| 344 | for_window [title="YouTube"] title_format " %title" | ||
| 345 | for_window [title="SoundCloud"] title_format " %title" | ||
| 346 | for_window [title=""] title_format "%title" | ||
| 347 | for_window [title=" "] title_format "%title" | ||
| 348 | |||
| 349 | |||
| 350 | # for_window [class="^.*"] border normal 3 | 345 | # for_window [class="^.*"] border normal 3 |
| 351 | # for_window [title="^.*Thunderbird"] border pixel 0 | 346 | # for_window [title="^.*Thunderbird"] border pixel 0 |
| 352 | # for_window [title="^.*Chromium"] border pixel 0 | 347 | # for_window [title="^.*Chromium"] border pixel 0 |
| 353 | # for_window [class="Gvim"] border pixel 0 | 348 | # for_window [class="Gvim"] border pixel 0 |
| 349 | for_window [class="(?i)evolution"] title_format "📧 %title" | ||
| 350 | for_window [class="(?i)thunderbird"] title_format " %title" | ||
| 351 | for_window [class="(?i)firefox"] title_format " %title" | ||
| 352 | for_window [class="(?i)chromium"] title_format " %title" | ||
| 353 | for_window [class="(?i)hexchat"] title_format " %title" | ||
| 354 | for_window [class="(?i)pidgin"] title_format "👥 %title" | ||
| 355 | for_window [class="(?i)thunar"] title_format "🗄️ %title" | ||
| 356 | for_window [class="(?i)keepassx?"] title_format "🔑 %title" | ||
| 357 | for_window [class="(?i).*terminal?"] title_format " %title" | ||
| 358 | for_window [class="(?i).*termite?"] title_format " %title" | ||
| 359 | for_window [class="(?i)xfce4-appfinder"] title_format " %title" | ||
| 360 | for_window [title="YouTube"] title_format " %title" | ||
| 361 | for_window [title=""] title_format "%title" | ||
| 362 | for_window [title=" "] title_format "%title" | ||
| 354 | # for_window [class="(?i)xfce4-terminal"] border pixel 0 | 363 | # for_window [class="(?i)xfce4-terminal"] border pixel 0 |
| 355 | # for_window [class="(?i)xfce4-appfinder"] border pixel 0 | 364 | # for_window [class="(?i)xfce4-appfinder"] border pixel 0 |
| 356 | # # for_window [title="^.*\|"] border pixel 4 | 365 | # for_window [title="^.*\|"] border pixel 4 |
| 357 | |||
| 358 | # for_window [title="^HexChat.*"] border pixel 0 | 366 | # for_window [title="^HexChat.*"] border pixel 0 |
| 359 | # for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks | 367 | # for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks |
| 360 | # for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks | 368 | # for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks |
