| 1 | # This file has been auto-generated by i3-config-wizard(1). |
| 2 | # It will not be overwritten, so edit it as you like. |
| 3 | # |
| 4 | # Should you change your keyboard layout some time, delete |
| 5 | # this file and re-run i3-config-wizard(1). |
| 6 | # |
| 7 | |
| 8 | ########################### |
| 9 | # xbindkeys -k # |
| 10 | # xprop | grep -i 'class' # |
| 11 | ########################### |
| 12 | |
| 13 | # i3 config file (v4) |
| 14 | # |
| 15 | # Please see http://i3wm.org/docs/userguide.html for a complete reference! |
| 16 | |
| 17 | # set modifiers |
| 18 | ## |
| 19 | ## Win to be used to issue commands application related, like launching programs |
| 20 | ## Alt to be used to issue commands desktop related, like modifying layout of windows |
| 21 | ## Ctrl in combination with the other two, to issue special commands. |
| 22 | set $win Mod4 |
| 23 | set $alt Mod1 |
| 24 | set $ctrl Ctrl |
| 25 | |
| 26 | # title alignment |
| 27 | #title_align center |
| 28 | |
| 29 | #set $rofi "rofi -show run -font 'Droid Sans Mono 10' -theme Monokai -width 40 -location 2 -lines 7 -bw 2 -yoffset -2" |
| 30 | #set $rofissh "rofi -show ssh -font 'Droid Sans Mono 10' -theme Monokai" |
| 31 | |
| 32 | # Workspace names |
| 33 | # # to display names or symbols instead of plain workspace numbers you can use |
| 34 | # # something like: set $ws1 1:mail |
| 35 | # # set $ws2 2:x |
| 36 | # |
| 37 | set $ws1 "1:web" |
| 38 | set $ws2 "2:editor" |
| 39 | set $ws3 "3:console" |
| 40 | set $ws4 "4:ssh" |
| 41 | set $ws5 "5:graphic" |
| 42 | set $ws6 "6:editor2" |
| 43 | set $ws7 "7:chat" |
| 44 | set $ws8 "8:music" |
| 45 | |
| 46 | # per workspace gaps |
| 47 | workspace $ws1 gaps inner 0 |
| 48 | workspace $ws1 gaps outer 0 |
| 49 | workspace $ws2 gaps inner 0 |
| 50 | workspace $ws2 gaps outer 0 |
| 51 | |
| 52 | |
| 53 | # Font for window titles. Will also be used by the bar unless a different font |
| 54 | # is used in the bar {} block below. |
| 55 | font pango:"Droid Sans 10" |
| 56 | |
| 57 | # Use Mouse+$win to drag floating windows to their wanted position |
| 58 | floating_modifier $win |
| 59 | |
| 60 | # start a terminal |
| 61 | bindsym $alt+Return exec urxvt |
| 62 | |
| 63 | # custom binding |
| 64 | bindsym Shift+$ctrl+l exec --no-startup-id xclip -o | qrencode -o - | feh -Z - |
| 65 | bindsym Print exec --no-startup-id blackpearl-scrotmenu.sh |
| 66 | bindsym $alt+Menu exec --no-startup-id blackpearl-utilsmenu.sh |
| 67 | bindsym $alt+Escape --release exec xkill |
| 68 | bindsym $win+e exec pcmanfm-qt |
| 69 | #bindsym $win+x exec --no-startup-id i3-exit |
| 70 | bindsym $win+s exec --no-startup-id wol d4:c9:ef:f1:c9:24 |
| 71 | bindsym $win+l exec --no-startup-id i3lock-fancy |
| 72 | bindsym $win+t exec flatpak run io.typora.Typora |
| 73 | bindsym $win+w exec vivaldi |
| 74 | bindsym XF86Calculator exec kcalc |
| 75 | bindsym XF86Sleep exec i3suspend |
| 76 | bindsym $win+Shift+w exec "vivaldi --incognito" |
| 77 | bindsym $win+h exec --no-startup-id blackpearl-sshmenu.sh |
| 78 | bindsym $win+r exec atom |
| 79 | bindsym XF86HomePage exec --no-startup-id blackpearl-appsmenu.sh |
| 80 | bindsym $win+p exec uxterm -T "spt" -geometry 90x30+800+30 -e spt |
| 81 | bindsym $win+Shift+t exec flatpak run org.telegram.desktop |
| 82 | |
| 83 | # window switching bindings |
| 84 | bindsym $alt+Tab exec --no-startup-id "blackpearl-window.sh desktop" |
| 85 | bindsym $alt+Ctrl+Tab exec --no-startup-id "blackpearl-window.sh all" |
| 86 | |
| 87 | # volume binding |
| 88 | bindsym XF86AudioMute exec --no-startup-id pamixer -t |
| 89 | bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 5 |
| 90 | bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 5 |
| 91 | |
| 92 | # kill focused window |
| 93 | #bindsym $ctrl+Shift+q kill |
| 94 | |
| 95 | # start dmenu (a program launcher) |
| 96 | bindsym $alt+F2 exec --no-startup-id blackpearl-runner.sh |
| 97 | |
| 98 | # change focus |
| 99 | bindsym $alt+j focus left |
| 100 | bindsym $alt+k focus down |
| 101 | bindsym $alt+l focus up |
| 102 | bindsym $alt+ograve focus right |
| 103 | |
| 104 | # alternatively, you can use the cursor keys: |
| 105 | bindsym $alt+Left focus left |
| 106 | bindsym $alt+Down focus down |
| 107 | bindsym $alt+Up focus up |
| 108 | bindsym $alt+Right focus right |
| 109 | |
| 110 | # move focused window |
| 111 | bindsym $alt+Shift+j move left |
| 112 | bindsym $alt+Shift+k move down |
| 113 | bindsym $alt+Shift+l move up |
| 114 | bindsym $alt+Shift+ograve move right |
| 115 | |
| 116 | # alternatively, you can use the cursor keys: |
| 117 | bindsym $alt+Shift+Left move left |
| 118 | bindsym $alt+Shift+Down move down |
| 119 | bindsym $alt+Shift+Up move up |
| 120 | bindsym $alt+Shift+Right move right |
| 121 | |
| 122 | # split in horizontal orientation |
| 123 | bindsym $alt+h split h;exec notify-send 'split horizontally' |
| 124 | # split in vertical orientation |
| 125 | bindsym $alt+v split v;exec notify-send 'split vertically' |
| 126 | |
| 127 | # enter fullscreen mode for the focused container |
| 128 | bindsym $alt+f fullscreen toggle |
| 129 | |
| 130 | # change container layout (stacked, tabbed, toggle split) |
| 131 | bindsym $alt+s layout stacking;exec notify-send 'layout stacking' |
| 132 | bindsym $alt+w layout tabbed;exec notify-send 'layout tabbed' |
| 133 | bindsym $alt+e layout toggle split;exec notify-send 'layout split' |
| 134 | |
| 135 | # toggle tiling / floating |
| 136 | bindsym $alt+Shift+space floating toggle |
| 137 | |
| 138 | # change focus between tiling / floating windows |
| 139 | bindsym $alt+space focus mode_toggle |
| 140 | |
| 141 | # focus the parent container |
| 142 | bindsym $alt+a focus parent |
| 143 | |
| 144 | # focus the child container |
| 145 | #bindsym $win+d focus child |
| 146 | |
| 147 | # switch to workspace |
| 148 | bindsym Ctrl+F1 workspace $ws1 |
| 149 | bindsym Ctrl+F2 workspace $ws2 |
| 150 | bindsym Ctrl+F3 workspace $ws3 |
| 151 | bindsym Ctrl+F4 workspace $ws4 |
| 152 | bindsym Ctrl+F5 workspace $ws5 |
| 153 | bindsym Ctrl+F6 workspace $ws6 |
| 154 | bindsym Ctrl+F7 workspace $ws7 |
| 155 | bindsym Ctrl+F8 workspace $ws8 |
| 156 | |
| 157 | # move focused container to workspace |
| 158 | bindsym $win+Shift+1 move container to workspace $ws1 |
| 159 | bindsym $win+Shift+2 move container to workspace $ws2 |
| 160 | bindsym $win+Shift+3 move container to workspace $ws3 |
| 161 | bindsym $win+Shift+4 move container to workspace $ws4 |
| 162 | bindsym $win+Shift+5 move container to workspace $ws5 |
| 163 | bindsym $win+Shift+6 move container to workspace $ws6 |
| 164 | bindsym $win+Shift+7 move container to workspace $ws7 |
| 165 | bindsym $win+Shift+8 move container to workspace $ws8 |
| 166 | |
| 167 | # navigate workspaces |
| 168 | #bindsym $win+Home workspace $ws1 |
| 169 | #bindsym $win+End workspace $ws8 |
| 170 | bindsym $win+Prior workspace prev |
| 171 | bindsym $win+Next workspace next |
| 172 | |
| 173 | # navigate workspaces next / previous |
| 174 | #bindsym $win+Ctrl+j workspace prev |
| 175 | #bindsym $win+Ctrl+ograve workspace next |
| 176 | #bindsym $win+Ctrl+Right workspace next |
| 177 | #bindsym $win+Ctrl+Left workspace prev |
| 178 | |
| 179 | # assign programs to specific workspaces |
| 180 | assign [title="ssh"] $ws4 |
| 181 | assign [class="URxvt"] $ws3 |
| 182 | assign [class="Atom"] $ws2 |
| 183 | assign [class="Typora"] $ws6 |
| 184 | assign [class="Vivaldi-stable"] $ws1 |
| 185 | assign [class="Telegram"] $ws7 |
| 186 | assign [class="gimp-2.10"] $ws5 |
| 187 | assign [title="^spt$"] $ws8 |
| 188 | |
| 189 | # open specific apps in floating mode |
| 190 | for_window [class="kcalc"] floating enable border pixel 1 |
| 191 | for_window [class="lxsudo"] floating enable border pixel 1 |
| 192 | for_window [title="^spt$"] floating enable border pixel 1 |
| 193 | |
| 194 | # switch to workspace with urgent window automatically |
| 195 | for_window [urgent=latest] focus |
| 196 | |
| 197 | client.focused #349f86 #349f85 #000088 #00C1FF |
| 198 | client.focused_inactive #2C2C2C #2C2C2C #ffffff #2C2C2C |
| 199 | client.unfocused #2C2C2C #2C2C2C #ffffff #2C2C2C |
| 200 | client.urgent #00C1FF #00C1FF #000088 #00C1FF |
| 201 | |
| 202 | # window borders |
| 203 | hide_edge_borders both |
| 204 | for_window [class="^.*"] border pixel 0 |
| 205 | |
| 206 | gaps outer 0 |
| 207 | gaps inner 10 |
| 208 | workspace $ws1 gaps inner 0 |
| 209 | workspace $ws2 gaps inner 0 |
| 210 | workspace $ws5 gaps inner 0 |
| 211 | |
| 212 | # reload the configuration file |
| 213 | bindsym $alt+Shift+c reload |
| 214 | |
| 215 | # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) |
| 216 | bindsym $alt+Shift+r restart |
| 217 | |
| 218 | # exit i3 (logs you out of your X session) |
| 219 | #bindsym $win+Shift+e exec "i3-nagbar -t warning -m 'Exit i3? This will end your session.' -b 'Yes, exit i3' 'i3-msg exit'" |
| 220 | |
| 221 | # Set shut down, restart and locking features |
| 222 | bindsym $win+x exec --no-startup-id blackpearl-powermenu.sh |
| 223 | |
| 224 | # resize window (you can also use the mouse for that) |
| 225 | mode "resize" { |
| 226 | # These bindings trigger as soon as you enter the resize mode |
| 227 | |
| 228 | bindsym j resize shrink width 10 px or 10 ppt |
| 229 | bindsym k resize grow height 10 px or 10 ppt |
| 230 | bindsym l resize shrink height 10 px or 10 ppt |
| 231 | bindsym ograve resize grow width 10 px or 10 ppt |
| 232 | |
| 233 | # same bindings, but for the arrow keys |
| 234 | bindsym Left resize shrink width 10 px or 10 ppt |
| 235 | bindsym Down resize grow height 10 px or 10 ppt |
| 236 | bindsym Up resize shrink height 10 px or 10 ppt |
| 237 | bindsym Right resize grow width 10 px or 10 ppt |
| 238 | |
| 239 | # back to normal: Enter or Escape |
| 240 | bindsym Return mode "default" |
| 241 | bindsym Escape mode "default" |
| 242 | } |
| 243 | |
| 244 | bindsym $win+Ctrl+r mode "resize" |
| 245 | |
| 246 | set $wine_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) |
| 247 | set $wine_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) |
| 248 | bindsym $win+Shift+g mode "$wine_gaps" |
| 249 | |
| 250 | mode "$wine_gaps" { |
| 251 | bindsym o mode "$wine_gaps_outer" |
| 252 | bindsym i mode "$wine_gaps_inner" |
| 253 | bindsym Return mode "$wine_gaps" |
| 254 | bindsym Escape mode "default" |
| 255 | } |
| 256 | |
| 257 | |
| 258 | mode "$wine_gaps_outer" { |
| 259 | bindsym plus gaps outer current plus 5 |
| 260 | bindsym minus gaps outer current minus 5 |
| 261 | bindsym 0 gaps outer current set 0 |
| 262 | |
| 263 | bindsym Shift+plus gaps outer all plus 5 |
| 264 | bindsym Shift+minus gaps outer all minus 5 |
| 265 | bindsym Shift+0 gaps outer all set 0 |
| 266 | |
| 267 | bindsym Return mode "$wine_gaps" |
| 268 | bindsym Escape mode "default" |
| 269 | } |
| 270 | mode "$wine_gaps_inner" { |
| 271 | bindsym plus gaps inner current plus 5 |
| 272 | bindsym minus gaps inner current minus 5 |
| 273 | bindsym 0 gaps inner current set 0 |
| 274 | |
| 275 | bindsym Shift+plus gaps inner all plus 5 |
| 276 | bindsym Shift+minus gaps inner all minus 5 |
| 277 | bindsym Shift+0 gaps inner all set 0 |
| 278 | |
| 279 | bindsym Return mode "$wine_gaps" |
| 280 | bindsym Escape mode "default" |
| 281 | } |
| 282 | |
| 283 | |
| 284 | # start kdeconnect |
| 285 | exec --no-startup-id kdeconnect-indicator |
| 286 | |
| 287 | # start tint2 i3status |
| 288 | exec --no-startup-id tint2 -c ~/.config/tint2/i3status.tint2rc |
| 289 | |
| 290 | # start tint2 bar |
| 291 | exec --no-startup-id tint2 -c ~/.config/tint2/minima.tint2rc |
| 292 | |
| 293 | # start pulseaudio daemon |
| 294 | exec --no-startup-id start-pulseaudio-x11 |
| 295 | |
| 296 | # start networkmanager applet |
| 297 | exec --no-startup-id nm-applet |
| 298 | |
| 299 | # start lxqt-notificationd |
| 300 | exec --no-startup-id lxqt-notificationd |
| 301 | #exec --no-startup-id dunst |
| 302 | |
| 303 | # start keepassxc |
| 304 | #exec --no-startup-id keepassxc |
| 305 | # start qtpass |
| 306 | exec --no-startup-id qtpass |
| 307 | |
| 308 | # start audio icon |
| 309 | exec --no-startup-id pnmixer |