diff options
Diffstat (limited to '.config/i3/config##c.desktop,h.Lowe')
| -rw-r--r-- | .config/i3/config##c.desktop,h.Lowe | 255 |
1 files changed, 255 insertions, 0 deletions
diff --git a/.config/i3/config##c.desktop,h.Lowe b/.config/i3/config##c.desktop,h.Lowe new file mode 100644 index 0000000..30692e1 --- /dev/null +++ b/.config/i3/config##c.desktop,h.Lowe | |||
| @@ -0,0 +1,255 @@ | |||
| 1 | # i3 config file (v4) | ||
| 2 | # Please see https://i3wm.org/docs/userguide.html for a complete reference! | ||
| 3 | |||
| 4 | # set modifiers | ||
| 5 | set $mod Mod4 | ||
| 6 | set $alt Mod1 | ||
| 7 | |||
| 8 | # launch polybar | ||
| 9 | exec --no-startup-id $HOME/.config/polybar/launch.sh & | ||
| 10 | |||
| 11 | # start the screensaver, '' at the end is not a typo | ||
| 12 | exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer normal 300 'betterlockscreen -l dimblur -t "Welcome Back"' '' | ||
| 13 | |||
| 14 | # flash the active window | ||
| 15 | exec_always--no-startup-id flashfocus | ||
| 16 | |||
| 17 | # Font for window titles | ||
| 18 | font pango:Lato 11 | ||
| 19 | |||
| 20 | # Use Mouse+$mod to drag floating windows to their wanted position | ||
| 21 | floating_modifier $alt | ||
| 22 | |||
| 23 | gaps inner 5 | ||
| 24 | gaps outer 0 | ||
| 25 | |||
| 26 | ############## | ||
| 27 | # bindings # | ||
| 28 | ############## | ||
| 29 | |||
| 30 | # i switched back to firefox can you tell | ||
| 31 | bindsym Ctrl+q exec --no-startup-id true | ||
| 32 | |||
| 33 | # get the mouse out of the way | ||
| 34 | bindsym $mod+o exec --no-startup-id xdotool mousemove 1920 1080 | ||
| 35 | |||
| 36 | # bookmark from clipboard | ||
| 37 | bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c | ||
| 38 | |||
| 39 | # add taskwarrior/gtd calendar item | ||
| 40 | bindsym $mod+Shift+t exec --no-startup-id ~/bin/td | ||
| 41 | |||
| 42 | # add taskwarrior/gtd inbox item | ||
| 43 | bindsym $mod+Shift+i exec --no-startup-id ~/bin/in | ||
| 44 | |||
| 45 | # swap caps lock and escape, set keyboard layout, 35 is ]/ü (layout agnostic) | ||
| 46 | bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,us,tr -variant ,colemak, -option grp:alt_shift_toggle,caps:backspace" | ||
| 47 | |||
| 48 | # use flameshot with print screen | ||
| 49 | bindsym Print exec flameshot gui | ||
| 50 | |||
| 51 | # media keys | ||
| 52 | bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" | ||
| 53 | bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" | ||
| 54 | bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1); fi" | ||
| 55 | bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause | ||
| 56 | bindsym XF86AudioPrev exec --no-startup-id playerctl previous | ||
| 57 | bindsym XF86AudioNext exec --no-startup-id playerctl next | ||
| 58 | |||
| 59 | # Make the currently focused window a scratchpad | ||
| 60 | bindsym $mod+Shift+minus move scratchpad | ||
| 61 | |||
| 62 | # Show the first scratchpad window | ||
| 63 | bindsym $mod+minus scratchpad show | ||
| 64 | |||
| 65 | # shortcuts for frequent programs | ||
| 66 | bindsym $mod+Shift+z exec zotero | ||
| 67 | bindsym $mod+Shift+f exec pcmanfm | ||
| 68 | |||
| 69 | # start a terminal | ||
| 70 | bindsym $mod+Return exec kitty | ||
| 71 | |||
| 72 | # kill focused window | ||
| 73 | bindsym $mod+Shift+q kill | ||
| 74 | bindsym --whole-window $mod+button2 kill | ||
| 75 | |||
| 76 | # start rofi (a program launcher) | ||
| 77 | bindsym $mod+d exec rofi -show combi | ||
| 78 | |||
| 79 | # change focus | ||
| 80 | bindsym $mod+h focus left | ||
| 81 | bindsym $mod+j focus down | ||
| 82 | bindsym $mod+k focus up | ||
| 83 | bindsym $mod+l focus right | ||
| 84 | |||
| 85 | # move focused window | ||
| 86 | bindsym $mod+Shift+h move left | ||
| 87 | bindsym $mod+Shift+j move down | ||
| 88 | bindsym $mod+Shift+k move up | ||
| 89 | bindsym $mod+Shift+l move right | ||
| 90 | |||
| 91 | # split in horizontal orientation | ||
| 92 | bindsym $mod+b split h | ||
| 93 | |||
| 94 | # split in vertical orientation | ||
| 95 | bindsym $mod+v split v | ||
| 96 | |||
| 97 | # enter fullscreen mode for the focused container | ||
| 98 | bindsym $mod+f fullscreen toggle | ||
| 99 | |||
| 100 | # change container layout (stacked, tabbed, toggle split) | ||
| 101 | bindsym $mod+s layout stacking | ||
| 102 | bindsym $mod+w layout tabbed | ||
| 103 | bindsym $mod+e layout toggle split | ||
| 104 | |||
| 105 | # toggle tiling / floating | ||
| 106 | bindsym $mod+Shift+space floating toggle | ||
| 107 | |||
| 108 | # change focus between tiling / floating windows | ||
| 109 | bindsym $mod+space focus mode_toggle | ||
| 110 | |||
| 111 | # focus the parent container | ||
| 112 | bindsym $mod+a focus parent | ||
| 113 | |||
| 114 | # Define names for default workspaces for which we configure key bindings later on. | ||
| 115 | # We use variables to avoid repeating the names in multiple places. | ||
| 116 | set $ws1 "1" | ||
| 117 | set $ws2 "2" | ||
| 118 | set $ws3 "3" | ||
| 119 | set $ws4 "4" | ||
| 120 | set $ws5 "5" | ||
| 121 | set $ws6 "6" | ||
| 122 | set $ws7 "7" | ||
| 123 | set $ws8 "8" | ||
| 124 | set $ws9 "9" | ||
| 125 | set $ws10 "10" | ||
| 126 | |||
| 127 | # switch to workspace | ||
| 128 | bindsym $mod+1 workspace $ws1 | ||
| 129 | bindsym $mod+2 workspace $ws2 | ||
| 130 | bindsym $mod+3 workspace $ws3 | ||
| 131 | bindsym $mod+4 workspace $ws4 | ||
| 132 | bindsym $mod+5 workspace $ws5 | ||
| 133 | bindsym $mod+6 workspace $ws6 | ||
| 134 | bindsym $mod+7 workspace $ws7 | ||
| 135 | bindsym $mod+8 workspace $ws8 | ||
| 136 | bindsym $mod+9 workspace $ws9 | ||
| 137 | bindsym $mod+0 workspace $ws10 | ||
| 138 | |||
| 139 | # move focused container to workspace | ||
| 140 | bindsym $mod+Shift+1 move container to workspace $ws1 | ||
| 141 | bindsym $mod+Shift+2 move container to workspace $ws2 | ||
| 142 | bindsym $mod+Shift+3 move container to workspace $ws3 | ||
| 143 | bindsym $mod+Shift+4 move container to workspace $ws4 | ||
| 144 | bindsym $mod+Shift+5 move container to workspace $ws5 | ||
| 145 | bindsym $mod+Shift+6 move container to workspace $ws6 | ||
| 146 | bindsym $mod+Shift+7 move container to workspace $ws7 | ||
| 147 | bindsym $mod+Shift+8 move container to workspace $ws8 | ||
| 148 | bindsym $mod+Shift+9 move container to workspace $ws9 | ||
| 149 | bindsym $mod+Shift+0 move container to workspace $ws10 | ||
| 150 | |||
| 151 | # reload the configuration file | ||
| 152 | bindsym $mod+Shift+c reload | ||
| 153 | # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | ||
| 154 | bindsym $mod+Shift+r restart | ||
| 155 | |||
| 156 | # resize window (you can also use the mouse for that) | ||
| 157 | mode "resize" { | ||
| 158 | # These bindings trigger as soon as you enter the resize mode | ||
| 159 | |||
| 160 | # Pressing left will shrink the window’s width. | ||
| 161 | # Pressing right will grow the window’s width. | ||
| 162 | # Pressing up will shrink the window’s height. | ||
| 163 | # Pressing down will grow the window’s height. | ||
| 164 | bindsym h resize shrink width 10 px or 10 ppt | ||
| 165 | bindsym j resize grow height 10 px or 10 ppt | ||
| 166 | bindsym k resize shrink height 10 px or 10 ppt | ||
| 167 | bindsym l resize grow width 10 px or 10 ppt | ||
| 168 | |||
| 169 | # back to normal: Enter or Escape or $mod+r | ||
| 170 | bindsym Return mode "default" | ||
| 171 | bindsym Escape mode "default" | ||
| 172 | bindsym $mod+r mode "default" | ||
| 173 | } | ||
| 174 | bindsym $mod+r mode "resize" | ||
| 175 | |||
| 176 | # session | ||
| 177 | mode " (L)ock (S)ignout (R)eboot (P)oweroff" { | ||
| 178 | bindsym $mod+l exec betterlockscreen -l dimblur -t "Welcome back" | ||
| 179 | bindsym $mod+r exec systemctl reboot | ||
| 180 | bindsym $mod+p exec systemctl poweroff | ||
| 181 | bindsym $mod+s exit | ||
| 182 | bindcode 66 mode "default" | ||
| 183 | } | ||
| 184 | bindsym $mod+Shift+e mode " (L)ock (S)ignout (R)eboot (P)oweroff" | ||
| 185 | |||
| 186 | bindsym $mod+Shift+Escape exec --no-startup-id ~/bin/power.sh | ||
| 187 | |||
| 188 | set $mode_gaps Gaps: (o)uter, (i)nner | ||
| 189 | #, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft | ||
| 190 | set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
| 191 | set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
| 192 | # set $mode_gaps_horiz Horizontal Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
| 193 | # set $mode_gaps_verti Vertical Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
| 194 | # set $mode_gaps_top Top Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
| 195 | # set $mode_gaps_right Right Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
| 196 | # set $mode_gaps_bottom Bottom Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
| 197 | # set $mode_gaps_left Left Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
| 198 | bindsym $mod+Shift+g mode "$mode_gaps" | ||
| 199 | |||
| 200 | mode "$mode_gaps" { | ||
| 201 | bindsym o mode "$mode_gaps_outer" | ||
| 202 | bindsym i mode "$mode_gaps_inner" | ||
| 203 | # bindsym h mode "$mode_gaps_horiz" | ||
| 204 | # bindsym v mode "$mode_gaps_verti" | ||
| 205 | # bindsym t mode "$mode_gaps_top" | ||
| 206 | # bindsym r mode "$mode_gaps_right" | ||
| 207 | # bindsym b mode "$mode_gaps_bottom" | ||
| 208 | # bindsym l mode "$mode_gaps_left" | ||
| 209 | # bindsym Return mode "$mode_gaps" | ||
| 210 | bindsym Escape mode "default" | ||
| 211 | } | ||
| 212 | |||
| 213 | mode "$mode_gaps_outer" { | ||
| 214 | bindsym plus gaps outer current plus 5 | ||
| 215 | bindsym minus gaps outer current minus 5 | ||
| 216 | bindsym 0 gaps outer current set 0 | ||
| 217 | |||
| 218 | bindsym Shift+plus gaps outer all plus 5 | ||
| 219 | bindsym Shift+minus gaps outer all minus 5 | ||
| 220 | bindsym Shift+0 gaps outer all set 0 | ||
| 221 | |||
| 222 | bindsym Return mode "$mode_gaps" | ||
| 223 | bindsym Escape mode "default" | ||
| 224 | } | ||
| 225 | mode "$mode_gaps_inner" { | ||
| 226 | bindsym plus gaps inner current plus 5 | ||
| 227 | bindsym minus gaps inner current minus 5 | ||
| 228 | bindsym 0 gaps inner current set 0 | ||
| 229 | |||
| 230 | bindsym Shift+plus gaps inner all plus 5 | ||
| 231 | bindsym Shift+minus gaps inner all minus 5 | ||
| 232 | bindsym Shift+0 gaps inner all set 0 | ||
| 233 | |||
| 234 | bindsym Return mode "$mode_gaps" | ||
| 235 | bindsym Escape mode "default" | ||
| 236 | } | ||
| 237 | |||
| 238 | for_window [class=".*"] border pixel 0 | ||
| 239 | for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable | ||
| 240 | for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable | ||
| 241 | assign [class="^Thunderbird$"] 8 | ||
| 242 | |||
| 243 | # class border backgr. text indicator child_border | ||
| 244 | client.focused #458588 #285577 #ffffff #458588 #285577 | ||
| 245 | client.focused_inactive #b16286 #5f676a #ffffff #484e50 #5f676a | ||
| 246 | client.unfocused #927374 #222222 #888888 #292d2e #222222 | ||
| 247 | client.urgent #2f343a #900000 #ffffff #900000 #900000 | ||
| 248 | client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c | ||
| 249 | |||
| 250 | client.background #ffffff | ||
| 251 | |||
| 252 | # config | ||
| 253 | hide_edge_borders smart | ||
| 254 | workspace_auto_back_and_forth yes | ||
| 255 | focus_follows_mouse no | ||
