diff options
| -rw-r--r-- | config | 551 |
1 files changed, 281 insertions, 270 deletions
| @@ -1,18 +1,22 @@ | |||
| 1 | # i3 config file (v4) | 1 | # sway configuration file |
| 2 | # | 2 | # man sway(5) |
| 3 | # Please see http://i3wm.org/docs/userguide.html for a complete reference! | ||
| 4 | 3 | ||
| 5 | # load xrdb | 4 | # ================================================================================ |
| 6 | exec xrdb ~/.Xresources ; i3-msg reload | 5 | # output device configuration |
| 6 | # man sway-output(5) | ||
| 7 | # ================================================================================ | ||
| 8 | # force_xinerama yes | ||
| 9 | # fake-outputs 3840x1080+0+0 | ||
| 7 | 10 | ||
| 8 | output DP-1 { | 11 | |
| 12 | output DP-2 { | ||
| 9 | pos 0 0 | 13 | pos 0 0 |
| 10 | res 1920x1080 | 14 | res 1920x1080 |
| 11 | background ~/.local/share/backgrounds/01-0.jpg fill | 15 | background ~/.local/share/backgrounds/01-0.jpg fill |
| 12 | dpms on | 16 | dpms on |
| 13 | } | 17 | } |
| 14 | 18 | ||
| 15 | output DP-2 { | 19 | output DP-1 { |
| 16 | pos 1920 0 | 20 | pos 1920 0 |
| 17 | res 1920x1080 | 21 | res 1920x1080 |
| 18 | background ~/.local/share/backgrounds/01-1.jpg fill | 22 | background ~/.local/share/backgrounds/01-1.jpg fill |
| @@ -20,140 +24,32 @@ output DP-2 { | |||
| 20 | dpms on | 24 | dpms on |
| 21 | } | 25 | } |
| 22 | 26 | ||
| 23 | 27 | # ================================================================================ | |
| 24 | xwayland enable | 28 | # Workspace settings |
| 25 | gaps inner 0 | 29 | # ================================================================================ |
| 26 | gaps outer 0 | ||
| 27 | smart_gaps on | ||
| 28 | smart_borders no_gaps | ||
| 29 | |||
| 30 | # force_xinerama yes | ||
| 31 | # fake-outputs 3840x1080+0+0 | ||
| 32 | |||
| 33 | # we basically want to configure our font with ~/.config/fontconfig/* | ||
| 34 | # font pango:GoMono Nerd Font 9 | ||
| 35 | # font pango:FuraCode Nerd Font Mono 9 | ||
| 36 | # font pango:Code New Roman Nerd Font 9 | ||
| 37 | font pango:monospace 9 | ||
| 38 | |||
| 39 | hide_edge_borders both | ||
| 40 | title_align left | ||
| 41 | # focus_follows_mouse no | ||
| 42 | # mouse_warping none | ||
| 43 | |||
| 44 | set $mod Mod4 | ||
| 45 | |||
| 46 | bindsym $mod+j "mark --toggle a" | ||
| 47 | |||
| 48 | # Use Mouse+$mod to drag floating windows to their wanted position | ||
| 49 | floating_modifier $mod | ||
| 50 | |||
| 51 | # start a terminal | ||
| 52 | # bindsym $mod+Return exec i3-sensible-terminal | ||
| 53 | bindsym $mod+Return exec rofi -show drun -show-icons | ||
| 54 | bindsym Mod1+F2 exec rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5 | ||
| 55 | bindsym $mod+t exec termite | ||
| 56 | # bindsym $mod+t exec termite | ||
| 57 | # bindsym $mod+t exec urxvt | ||
| 58 | bindsym $mod+e exec thunar | ||
| 59 | bindsym $mod+l exec swaylock -f -i "/home/max/.local/share/backgrounds/IMG_5656 - IMG_5684-02.png" | ||
| 60 | |||
| 61 | bindsym $mod+F10 exec pactl set-sink-mute 0 toggle | ||
| 62 | bindsym $mod+F11 exec pactl set-sink-volume 0 -5% | ||
| 63 | bindsym $mod+F12 exec pactl set-sink-volume 0 +5% | ||
| 64 | |||
| 65 | # Pulse Audio controls | ||
| 66 | bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% # increase sound volume | ||
| 67 | bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% # decrease sound volume | ||
| 68 | bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound | ||
| 69 | |||
| 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 | ||
| 75 | |||
| 76 | # kill focused window | ||
| 77 | bindsym $mod+Shift+q kill | ||
| 78 | bindsym Mod1+F4 kill | ||
| 79 | |||
| 80 | # start dmenu (a program launcher) | ||
| 81 | # bindsym $mod+d exec dmenu_run | ||
| 82 | # There also is the (new) i3-dmenu-desktop which only displays applications | ||
| 83 | # shipping a .desktop file. It is a wrapper around dmenu, so you need that | ||
| 84 | # installed. | ||
| 85 | bindsym $mod+d exec --no-startup-id i3-dmenu-desktop | ||
| 86 | # bindsym $mod+d exec --no-startup-id j4-dmenu-desktop | ||
| 87 | |||
| 88 | |||
| 89 | bindsym $mod+Prior focus parent | ||
| 90 | bindsym $mod+Next focus child | ||
| 91 | bindsym $mod+Left focus left | ||
| 92 | bindsym $mod+Right focus right | ||
| 93 | bindsym $mod+Down focus down | ||
| 94 | bindsym $mod+Up focus up | ||
| 95 | bindsym $mod+Tab focus output right | ||
| 96 | bindsym $mod+Shift+Tab focus output left | ||
| 97 | bindsym mod1+Tab focus right | ||
| 98 | bindsym mod1+Shift+Tab focus left | ||
| 99 | |||
| 100 | # alternatively, you can use the cursor keys: | ||
| 101 | bindsym $mod+Shift+Left move left ; exec pkill -SIGRTMIN+11 i3blocks | ||
| 102 | bindsym $mod+Shift+Down move down ; exec pkill -SIGRTMIN+11 i3blocks | ||
| 103 | bindsym $mod+Shift+Up move up ; exec pkill -SIGRTMIN+11 i3blocks | ||
| 104 | bindsym $mod+Shift+Right move right ; exec pkill -SIGRTMIN+11 i3blocks | ||
| 105 | |||
| 106 | # split in horizontal orientation | ||
| 107 | # bindsym $mod+h split h | ||
| 108 | |||
| 109 | # split in vertical orientation | ||
| 110 | # bindsym $mod+v split v | ||
| 111 | |||
| 112 | # enter fullscreen mode for the focused container | ||
| 113 | bindsym $mod+f fullscreen toggle | ||
| 114 | bindsym $mod+g fullscreen toggle global | ||
| 115 | |||
| 116 | # change container layout (stacked, tabbed, toggle split) | ||
| 117 | bindsym $mod+s layout stacking | ||
| 118 | bindsym $mod+w layout tabbed | ||
| 119 | bindsym $mod+q layout toggle split | ||
| 120 | bindsym $mod+x layout toggle all | ||
| 121 | |||
| 122 | # toggle tiling / floating | ||
| 123 | bindsym $mod+Shift+space floating toggle | ||
| 124 | |||
| 125 | # change focus between tiling / floating windows | ||
| 126 | # bindsym $mod+space focus mode_toggle | ||
| 127 | |||
| 128 | # focus the parent container | ||
| 129 | bindsym $mod+a focus parent | ||
| 130 | |||
| 131 | # focus the child container | ||
| 132 | #bindsym $mod+d focus child | ||
| 133 | |||
| 134 | workspace 1 output VGA1 | 30 | workspace 1 output VGA1 |
| 135 | workspace_layout tabbed | 31 | workspace_layout tabbed |
| 136 | 32 | ||
| 137 | # customize workspace names | 33 | # customize workspace names |
| 138 | set $WS1 1:1⃣ | 34 | set $WS0 0:🄌 |
| 139 | set $WS2 2:2⃣ | 35 | set $WS1 1:➊ |
| 140 | set $WS3 3:3⃣ | 36 | set $WS2 2:➋ |
| 141 | set $WS4 4:4⃣ | 37 | set $WS3 3:➌ |
| 142 | set $WS5 5:5⃣ | 38 | set $WS4 4:➍ |
| 143 | set $WS6 6:6⃣ | 39 | set $WS5 5:➎ |
| 144 | set $WS7 7:7⃣ | 40 | set $WS6 6:➏ |
| 145 | set $WS8 8:8⃣ | 41 | set $WS7 7:➐ |
| 146 | set $WS9 9:9⃣ | 42 | set $WS8 8:➑ |
| 147 | set $WS10 10:0⃣ | 43 | set $WS9 9:➒ |
| 148 | 44 | ||
| 149 | assign [class="^Thunderbird$"] → $WS10 | 45 | workspace $WS0 output XWAYLAND1 HDMI-1 DP-1 VGA-1 |
| 150 | assign [class="^Pidgin"] → $WS10 | 46 | workspace $WS1 output primary |
| 151 | assign [class="^Hexchat"] → $WS10 | 47 | workspace $WS9 output XWAYLAND1 HDMI-1 DP-1 VGA-1 |
| 152 | assign [class="(?i)pidgin"] → $WS10 | ||
| 153 | 48 | ||
| 154 | bindsym Mod4+BackSpace exec i3-msg move workspace to output right | 49 | bindsym Mod4+BackSpace exec i3-msg move workspace to output right |
| 155 | 50 | ||
| 156 | # switch to workspace | 51 | # switch to workspace |
| 52 | bindsym Mod4+0 workspace $WS0 | ||
| 157 | bindsym Mod4+1 workspace $WS1 | 53 | bindsym Mod4+1 workspace $WS1 |
| 158 | bindsym Mod4+2 workspace $WS2 | 54 | bindsym Mod4+2 workspace $WS2 |
| 159 | bindsym Mod4+3 workspace $WS3 | 55 | bindsym Mod4+3 workspace $WS3 |
| @@ -163,9 +59,9 @@ bindsym Mod4+6 workspace $WS6 | |||
| 163 | bindsym Mod4+7 workspace $WS7 | 59 | bindsym Mod4+7 workspace $WS7 |
| 164 | bindsym Mod4+8 workspace $WS8 | 60 | bindsym Mod4+8 workspace $WS8 |
| 165 | bindsym Mod4+9 workspace $WS9 | 61 | bindsym Mod4+9 workspace $WS9 |
| 166 | bindsym Mod4+0 workspace $WS10 | ||
| 167 | 62 | ||
| 168 | # move focused container to workspace | 63 | # move focused container to workspace |
| 64 | bindsym Mod4+Shift+0 move container to workspace $WS0 | ||
| 169 | bindsym Mod4+Shift+1 move container to workspace $WS1 | 65 | bindsym Mod4+Shift+1 move container to workspace $WS1 |
| 170 | bindsym Mod4+Shift+2 move container to workspace $WS2 | 66 | bindsym Mod4+Shift+2 move container to workspace $WS2 |
| 171 | bindsym Mod4+Shift+3 move container to workspace $WS3 | 67 | bindsym Mod4+Shift+3 move container to workspace $WS3 |
| @@ -175,132 +71,36 @@ bindsym Mod4+Shift+6 move container to workspace $WS6 | |||
| 175 | bindsym Mod4+Shift+7 move container to workspace $WS7 | 71 | bindsym Mod4+Shift+7 move container to workspace $WS7 |
| 176 | bindsym Mod4+Shift+8 move container to workspace $WS8 | 72 | bindsym Mod4+Shift+8 move container to workspace $WS8 |
| 177 | bindsym Mod4+Shift+9 move container to workspace $WS9 | 73 | bindsym Mod4+Shift+9 move container to workspace $WS9 |
| 178 | bindsym Mod4+Shift+0 move container to workspace $WS10 | ||
| 179 | |||
| 180 | # workspace 1 output DP-1 | ||
| 181 | # workspace 2 output DP-1 | ||
| 182 | # workspace 3 output DP-1 | ||
| 183 | # workspace 4 output DP-1 | ||
| 184 | # workspace 5 output HDMI-1 | ||
| 185 | # workspace 6 output HDMI-1 | ||
| 186 | # workspace 7 output HDMI-1 | ||
| 187 | # workspace 8 output HDMI-1 | ||
| 188 | # workspace "music" output HDMI-1 | ||
| 189 | # workspace "background" output HDMI-1 | ||
| 190 | |||
| 191 | # reload the configuration file | ||
| 192 | bindsym $mod+Shift+c reload | ||
| 193 | # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | ||
| 194 | bindsym $mod+Shift+r restart | ||
| 195 | # exit i3 (logs you out of your X session) | ||
| 196 | bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" | ||
| 197 | |||
| 198 | |||
| 199 | bindsym $mod+m move scratchpad | ||
| 200 | bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center | ||
| 201 | |||
| 202 | |||
| 203 | |||
| 204 | bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' | ||
| 205 | bindsym Control+Mod1+Left workspace prev_on_output | ||
| 206 | bindsym Control+Mod1+Right workspace next_on_output | ||
| 207 | |||
| 208 | # move focused window | ||
| 209 | bindsym $mod+Shift+h move left | ||
| 210 | bindsym $mod+Shift+j move down | ||
| 211 | bindsym $mod+Shift+k move up | ||
| 212 | bindsym $mod+Shift+l move right | ||
| 213 | |||
| 214 | # split in horizontal orientation | ||
| 215 | # bindsym $mod+Shift+v split h | ||
| 216 | |||
| 217 | # split in vertical orientation | ||
| 218 | # bindsym $mod+v split v | ||
| 219 | bindsym $mod+v split toggle | ||
| 220 | bindsym $mod+space split toggle | ||
| 221 | |||
| 222 | |||
| 223 | |||
| 224 | bindsym $mod+r mode "resize" | ||
| 225 | # resize window (you can also use the mouse for that) | ||
| 226 | mode "resize" { | ||
| 227 | # These bindings trigger as soon as you enter the resize mode | ||
| 228 | |||
| 229 | # Pressing left will shrink the window’s width. | ||
| 230 | # Pressing right will grow the window’s width. | ||
| 231 | # Pressing up will shrink the window’s height. | ||
| 232 | # Pressing down will grow the window’s height. | ||
| 233 | bindsym $mod+h resize shrink width 4 px or 4 ppt | ||
| 234 | bindsym $mod+j resize grow height 4 px or 4 ppt | ||
| 235 | bindsym $mod+k resize shrink height 4 px or 4 ppt | ||
| 236 | bindsym $mod+l resize grow width 4 px or 4 ppt | ||
| 237 | |||
| 238 | # same bindings, but for the arrow keys | ||
| 239 | bindsym Left resize shrink width 4 px or 4 ppt | ||
| 240 | bindsym Up resize grow height 4 px or 4 ppt | ||
| 241 | bindsym Down resize shrink height 4 px or 4 ppt | ||
| 242 | bindsym Right resize grow width 4 px or 4 ppt | ||
| 243 | |||
| 244 | # back to normal: Enter or Escape | ||
| 245 | bindsym Return mode "default" | ||
| 246 | bindsym Escape mode "default" | ||
| 247 | } | ||
| 248 | |||
| 249 | |||
| 250 | set $mode_brightness "display brightness 🔅 🔆" | ||
| 251 | bindsym $mod+b mode $mode_brightness | ||
| 252 | mode $mode_brightness { | ||
| 253 | bindsym Up exec xrandr-brightness .1 | ||
| 254 | bindsym Down exec xrandr-brightness -.1 | ||
| 255 | bindsym Return mode "default" | ||
| 256 | bindsym Escape mode "default" | ||
| 257 | } | ||
| 258 | |||
| 259 | |||
| 260 | |||
| 261 | |||
| 262 | |||
| 263 | #! exec: execute when starting | ||
| 264 | #! exec_always: execute when starting or restarting | ||
| 265 | |||
| 266 | # exec xrandr --output HDMI-1 --right-of DP-1 | ||
| 267 | # exec xrandr --output HDMI-1 --right-of VGA-1 | ||
| 268 | # exec /usr/bin/xrandr-reset.sh | ||
| 269 | exec xset r rate 330 40 | ||
| 270 | exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1 | ||
| 271 | # exec setsid xautolock -locker swaylock | ||
| 272 | |||
| 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' | ||
| 274 | |||
| 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 | ||
| 285 | |||
| 286 | 74 | ||
| 287 | 75 | # ================================================================================ | |
| 288 | |||
| 289 | |||
| 290 | exec setsid hexchat -e --minimize=2 | ||
| 291 | |||
| 292 | |||
| 293 | # ============================================== | ||
| 294 | # base16 Xressource depenend color configuration | 76 | # base16 Xressource depenend color configuration |
| 295 | # with default values from base16-tomorrow-night | 77 | # with default values from base16-tomorrow-night |
| 296 | # ============================================== | 78 | # ================================================================================ |
| 79 | xwayland enable | ||
| 80 | hide_edge_borders both | ||
| 81 | title_align left | ||
| 82 | # gaps inner 6 | ||
| 83 | # smart_gaps on | ||
| 84 | # smart_borders no_gaps | ||
| 85 | # focus_follows_mouse no | ||
| 86 | # mouse_warping none | ||
| 87 | |||
| 88 | # we basically want to configure our font with ~/.config/fontconfig/* and can | ||
| 89 | # configure what is called monospace that way. It is more portable that way. | ||
| 90 | font pango:monospace 9 | ||
| 91 | # font pango:GoMono Nerd Font 9 | ||
| 92 | # font pango:FuraCode Nerd Font Mono 9 | ||
| 93 | # font pango:Code New Roman Nerd Font 9 | ||
| 94 | |||
| 95 | # load xrdb | ||
| 96 | exec xrdb ~/.Xresources ; swaymsg reload | ||
| 297 | 97 | ||
| 298 | include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config | 98 | include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config |
| 299 | # main variables ssource default | 99 | # main variables ssource default |
| 300 | # d variable default | 100 | # d variable default |
| 301 | set $background $base01 | 101 | set $background $base01 |
| 302 | set $foreground $base05 | 102 | set $foreground $base05 |
| 303 | set $cursorColor #00ff00 | 103 | set $cursorColor $foreground |
| 304 | 104 | ||
| 305 | # set_from_resource $foreground base16.cursor $cursorColor | 105 | # set_from_resource $foreground base16.cursor $cursorColor |
| 306 | # set_from_resource $foreground base16.cursor $base05 | 106 | # set_from_resource $foreground base16.cursor $base05 |
| @@ -342,24 +142,36 @@ client.placeholder $base00 $base00 $base05 $base00 $base00 | |||
| 342 | client.background $background | 142 | client.background $background |
| 343 | 143 | ||
| 344 | 144 | ||
| 345 | # for_window [class="^.*"] border normal 3 | 145 | |
| 346 | # for_window [title="^.*Thunderbird"] border pixel 0 | 146 | |
| 347 | # for_window [title="^.*Chromium"] border pixel 0 | 147 | # ================================================================================ |
| 348 | # for_window [class="Gvim"] border pixel 0 | 148 | # windows assignments and special treatment, e.g. icons |
| 349 | for_window [class="(?i)evolution"] title_format "📧 %title" | 149 | # ================================================================================ |
| 350 | for_window [class="(?i)thunderbird"] title_format " %title" | 150 | assign [class="^Pidgin"] $WS0 |
| 351 | for_window [class="(?i)firefox"] title_format " %title" | 151 | assign [class="^Hexchat"] $WS0 |
| 352 | for_window [class="(?i)chromium"] title_format " %title" | 152 | assign [class="(?i)pidgin"] $WS0 |
| 353 | for_window [class="(?i)hexchat"] title_format " %title" | 153 | assign [class="^Thunderbird$"] $WS0 |
| 354 | for_window [class="(?i)pidgin"] title_format "👥 %title" | 154 | assign [title="(?i)weechat"] $WS0 |
| 355 | for_window [class="(?i)thunar"] title_format "🗄️ %title" | 155 | # for_window [class="^.*"] border normal 3 |
| 356 | for_window [class="(?i)keepassx?"] title_format "🔑 %title" | 156 | # for_window [title="^.*Thunderbird"] border pixel 0 |
| 357 | for_window [class="(?i).*terminal?"] title_format " %title" | 157 | # for_window [title="^.*Chromium"] border pixel 0 |
| 358 | for_window [class="(?i).*termite?"] title_format " %title" | 158 | # for_window [class="Gvim"] border pixel 0 |
| 359 | for_window [class="(?i)xfce4-appfinder"] title_format " %title" | 159 | for_window [title="(?i)Evolution"] title_format "📧 %title" |
| 360 | for_window [title="YouTube"] title_format " %title" | 160 | for_window [class="(?i)firefox"] title_format " %title" |
| 361 | for_window [title=""] title_format "%title" | 161 | for_window [class="(?i)chromium"] title_format " %title" |
| 362 | for_window [title=" "] title_format "%title" | 162 | for_window [class="(?i)hexchat"] title_format " %title" |
| 163 | for_window [class="(?i)pidgin"] title_format "👥 %title" | ||
| 164 | for_window [class="(?i)thunar"] title_format "🗄️ %title" | ||
| 165 | for_window [class="(?i)keepassx?"] title_format "🔑 %title" | ||
| 166 | for_window [class="(?i).*terminal?"] title_format " %title" | ||
| 167 | for_window [class="(?i).*termite?"] title_format " %title" | ||
| 168 | for_window [class="(?i)xfce4-appfinder"] title_format " %title" | ||
| 169 | for_window [class="(?i)thunderbird"] title_format " %title" | ||
| 170 | for_window [title="(?i)weechat"] title_format " %title" | ||
| 171 | for_window [title="YouTube"] title_format " %title" | ||
| 172 | for_window [title=""] title_format "%title" | ||
| 173 | for_window [title=" "] title_format "%title" | ||
| 174 | |||
| 363 | # for_window [class="(?i)xfce4-terminal"] border pixel 0 | 175 | # for_window [class="(?i)xfce4-terminal"] border pixel 0 |
| 364 | # for_window [class="(?i)xfce4-appfinder"] border pixel 0 | 176 | # for_window [class="(?i)xfce4-appfinder"] border pixel 0 |
| 365 | # for_window [title="^.*\|"] border pixel 4 | 177 | # for_window [title="^.*\|"] border pixel 4 |
| @@ -371,6 +183,144 @@ for_window [title=" "] title_format "%title" | |||
| 371 | # for_window [class=".*"] title_format "┋ %title" | 183 | # for_window [class=".*"] title_format "┋ %title" |
| 372 | # for_window [con_id="__focused__"] title_format "<u>%title</u>" | 184 | # for_window [con_id="__focused__"] title_format "<u>%title</u>" |
| 373 | 185 | ||
| 186 | |||
| 187 | |||
| 188 | # ================================================================================ | ||
| 189 | # Keyboard mappings | ||
| 190 | # Mod1 ctrl | ||
| 191 | # Mod4 windows key | ||
| 192 | # ================================================================================ | ||
| 193 | |||
| 194 | set $mod Mod4 | ||
| 195 | bindsym $mod+j "mark --toggle a" | ||
| 196 | |||
| 197 | # Use Mouse+$mod to drag floating windows to their wanted position | ||
| 198 | floating_modifier $mod | ||
| 199 | |||
| 200 | # restart sway or reload config | ||
| 201 | bindsym $mod+Shift+c reload | ||
| 202 | bindsym $mod+Shift+r restart | ||
| 203 | |||
| 204 | # kill focused window | ||
| 205 | bindsym $mod+Shift+q kill | ||
| 206 | bindsym Mod1+F4 kill | ||
| 207 | |||
| 208 | bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' | ||
| 209 | bindsym Control+Mod1+Left workspace prev_on_output | ||
| 210 | bindsym Control+Mod1+Right workspace next_on_output | ||
| 211 | |||
| 212 | # move focused window | ||
| 213 | bindsym $mod+Shift+h move left | ||
| 214 | bindsym $mod+Shift+j move down | ||
| 215 | bindsym $mod+Shift+k move up | ||
| 216 | bindsym $mod+Shift+l move right | ||
| 217 | |||
| 218 | |||
| 219 | bindsym $mod+Tab focus output right | ||
| 220 | bindsym $mod+Shift+Tab focus output left | ||
| 221 | bindsym mod1+Tab focus right | ||
| 222 | bindsym mod1+Shift+Tab focus left | ||
| 223 | bindsym $mod+Next focus child | ||
| 224 | bindsym $mod+Left focus left | ||
| 225 | bindsym $mod+Right focus right | ||
| 226 | bindsym $mod+Down focus down | ||
| 227 | bindsym $mod+Up focus up | ||
| 228 | bindsym $mod+Prior focus parent | ||
| 229 | bindsym $mod+a focus parent | ||
| 230 | |||
| 231 | # alternatively, you can use the cursor keys: | ||
| 232 | bindsym $mod+Shift+Left move left ; exec pkill -SIGRTMIN+11 i3blocks | ||
| 233 | bindsym $mod+Shift+Down move down ; exec pkill -SIGRTMIN+11 i3blocks | ||
| 234 | bindsym $mod+Shift+Up move up ; exec pkill -SIGRTMIN+11 i3blocks | ||
| 235 | bindsym $mod+Shift+Right move right ; exec pkill -SIGRTMIN+11 i3blocks | ||
| 236 | |||
| 237 | |||
| 238 | # change container layout (stacked, tabbed, toggle split) | ||
| 239 | bindsym $mod+s layout stacking | ||
| 240 | bindsym $mod+w layout tabbed | ||
| 241 | bindsym $mod+q layout toggle split | ||
| 242 | bindsym $mod+x layout toggle all | ||
| 243 | |||
| 244 | bindsym $mod+v split toggle | ||
| 245 | bindsym $mod+space split toggle | ||
| 246 | |||
| 247 | # enter fullscreen mode for the focused container | ||
| 248 | bindsym $mod+f fullscreen toggle | ||
| 249 | bindsym $mod+g fullscreen toggle global | ||
| 250 | |||
| 251 | # toggle tiling / floating | ||
| 252 | bindsym $mod+Shift+space floating toggle | ||
| 253 | bindsym $mod+m move scratchpad | ||
| 254 | bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center | ||
| 255 | |||
| 256 | # start a terminal | ||
| 257 | # bindsym $mod+Return exec i3-sensible-terminal | ||
| 258 | bindsym $mod+Return exec "killall rofi ; rofi -show drun -show-icons" | ||
| 259 | bindsym Mod1+F2 exec "killall rofi ; rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5" | ||
| 260 | bindsym $mod+t exec alacritty | ||
| 261 | bindsym $mod+e exec thunar | ||
| 262 | bindsym $mod+l exec swaylock -K -f -F -c "#000000" --text-color '#ffffff' --indicator-radius 200 --indicator-thickness 10 | ||
| 263 | bindsym $mod+d exec i3-dmenu-desktop | ||
| 264 | # Pulse Audio controls | ||
| 265 | bindsym $mod+F10 exec pactl set-sink-mute @DEFAULT_SINK@ toggle | ||
| 266 | bindsym $mod+F11 exec pactl set-sink-volume @DEFAULT_SINK@ -5% | ||
| 267 | bindsym $mod+F12 exec pactl set-sink-volume @DEFAULT_SINK@ +5% | ||
| 268 | bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% | ||
| 269 | bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% | ||
| 270 | bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle | ||
| 271 | |||
| 272 | |||
| 273 | |||
| 274 | # change focus between tiling / floating windows | ||
| 275 | # bindsym $mod+space focus mode_toggle | ||
| 276 | |||
| 277 | # focus the child container | ||
| 278 | #bindsym $mod+d focus child | ||
| 279 | |||
| 280 | # exit i3 (logs you out of your X session) | ||
| 281 | # bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" | ||
| 282 | # split in horizontal orientation | ||
| 283 | # bindsym $mod+h split h | ||
| 284 | |||
| 285 | # split in vertical orientation | ||
| 286 | # bindsym $mod+v split v | ||
| 287 | |||
| 288 | # resize window (you can also use the mouse for that) | ||
| 289 | bindsym $mod+r mode "resize" | ||
| 290 | mode "resize" { | ||
| 291 | # These bindings trigger as soon as you enter the resize mode | ||
| 292 | |||
| 293 | # Pressing left will shrink the window’s width. | ||
| 294 | # Pressing right will grow the window’s width. | ||
| 295 | # Pressing up will shrink the window’s height. | ||
| 296 | # Pressing down will grow the window’s height. | ||
| 297 | bindsym $mod+h resize shrink width 4 px or 4 ppt | ||
| 298 | bindsym $mod+j resize grow height 4 px or 4 ppt | ||
| 299 | bindsym $mod+k resize shrink height 4 px or 4 ppt | ||
| 300 | bindsym $mod+l resize grow width 4 px or 4 ppt | ||
| 301 | |||
| 302 | # same bindings, but for the arrow keys | ||
| 303 | bindsym Left resize shrink width 4 px or 4 ppt | ||
| 304 | bindsym Up resize grow height 4 px or 4 ppt | ||
| 305 | bindsym Down resize shrink height 4 px or 4 ppt | ||
| 306 | bindsym Right resize grow width 4 px or 4 ppt | ||
| 307 | |||
| 308 | # back to normal: Enter or Escape | ||
| 309 | bindsym Return mode "default" | ||
| 310 | bindsym Escape mode "default" | ||
| 311 | } | ||
| 312 | |||
| 313 | |||
| 314 | set $mode_brightness "display brightness 🔅 🔆" | ||
| 315 | bindsym $mod+b mode $mode_brightness | ||
| 316 | mode $mode_brightness { | ||
| 317 | bindsym Up exec xrandr-brightness .1 | ||
| 318 | bindsym Down exec xrandr-brightness -.1 | ||
| 319 | bindsym Return mode "default" | ||
| 320 | bindsym Escape mode "default" | ||
| 321 | } | ||
| 322 | |||
| 323 | |||
| 374 | # Press $mod+o followed by either f, t, Escape or Return to launch firefox, | 324 | # Press $mod+o followed by either f, t, Escape or Return to launch firefox, |
| 375 | # thunderbird or return to the default mode, respectively. | 325 | # thunderbird or return to the default mode, respectively. |
| 376 | set $mode_launcher Launch: [f]irefox [t]hunderbird | 326 | set $mode_launcher Launch: [f]irefox [t]hunderbird |
| @@ -383,6 +333,67 @@ mode "$mode_launcher" { | |||
| 383 | bindsym Escape mode "default" | 333 | bindsym Escape mode "default" |
| 384 | bindsym Return mode "default" | 334 | bindsym Return mode "default" |
| 385 | } | 335 | } |
| 336 | # bindsym $mod+d exec --no-startup-id j4-dmenu-desktop | ||
| 337 | # exec xrandr --dpi 95.48 --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800 | ||
| 338 | # bindcode 156 | ||
| 339 | # exec xrandr --output DP-1 --rotate left --pos 1920x-420 | ||
| 340 | # exec xrandr --output DP1 --rotate left --right-of HDMI1 | ||
| 341 | # exec xrandr --output DP1 --rotate left --pos 1920x-420 | ||
| 342 | |||
| 343 | |||
| 344 | |||
| 345 | |||
| 346 | |||
| 347 | |||
| 348 | # ================================================================================ | ||
| 349 | # Execute (autostart) further applications | ||
| 350 | |||
| 351 | #! exec: execute when starting | ||
| 352 | #! exec_always: execute when starting or restarting | ||
| 353 | # ================================================================================ | ||
| 354 | |||
| 355 | |||
| 356 | # exec xrandr --output HDMI-1 --right-of DP-1 | ||
| 357 | # exec xrandr --output HDMI-1 --right-of VGA-1 | ||
| 358 | # exec /usr/bin/xrandr-reset.sh | ||
| 359 | # exec setsid xautolock -locker swaylock | ||
| 360 | |||
| 361 | exec swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000' | ||
| 362 | |||
| 363 | # exec gnome-keyring-daemon --start --components=secrets | ||
| 364 | # start compositor... | ||
| 365 | # exec compton -b --config ~/.config/i3/compton.conf | ||
| 366 | # exec nitrogen --restore | ||
| 367 | exec mako | ||
| 368 | bindsym ctrl+space exec makoctl dismiss -a | ||
| 369 | |||
| 370 | exec nm-applet | ||
| 371 | # exec pidgin | ||
| 372 | 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' | ||
| 373 | |||
| 374 | # exec setxkbmap de,us -device evdev -model pc105 -option "" -option keypad:pointerkeys,grp_led:caps,grp:caps_toggle,terminate:ctrl_alt_bksp -v 1 -print | ||
| 375 | # exec xset r rate 330 40 | ||
| 376 | # exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1 | ||
| 377 | # exec setxkbmap -option caps:escape | ||
| 378 | |||
| 379 | |||
| 380 | |||
| 381 | # input 16700:8467:Dell_KB216_Wired_Keyboard_Consumer_Control { | ||
| 382 | # xkb_layout "us" | ||
| 383 | # xkb_variant "altgr-intl,nodeadkeys" | ||
| 384 | # xkb_options "keypad:pointerkeys,grp_led:caps,grp:caps_toggle,terminate:ctrl_alt_bksp" | ||
| 385 | # xkb_model "pc105" | ||
| 386 | # xkb_numlock "enable" | ||
| 387 | # repeat_delay 100 | ||
| 388 | # repeat_rate 330 | ||
| 389 | # } | ||
| 390 | |||
| 391 | |||
| 392 | |||
| 393 | |||
| 394 | |||
| 395 | # exec setsid hexchat -e --minimize=2 | ||
| 396 | exec termite -e /home/max/.local/bin/weechat | ||
| 386 | 397 | ||
| 387 | 398 | ||
| 388 | # vim: iskeyword+=\$,\-,\# nospell ft=tcl | 399 | # vim: iskeyword+=\$,\-,\#,(,) nospell ft=tcl |
