aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-28 14:12:30 -0800
committerclarkzjw <[email protected]>2023-02-28 14:12:30 -0800
commit88b0c2ed6199471d5f3bd601a6e257475606d772 (patch)
treea3fadbb12822afb1a5264dd5ae0bc62f5f3a03b3
parent58525fb905dafd2632c28b6c0e8ca19c16e4c9fb (diff)
downloaddotfiles-88b0c2ed6199471d5f3bd601a6e257475606d772.tar.gz
i3: re-organize config file
-rw-r--r--dot_config/i3/config127
1 files changed, 57 insertions, 70 deletions
diff --git a/dot_config/i3/config b/dot_config/i3/config
index 341cd04..d5f9328 100644
--- a/dot_config/i3/config
+++ b/dot_config/i3/config
@@ -148,6 +148,9 @@ mode "resize" {
148bindsym $mod+r mode "resize" 148bindsym $mod+r mode "resize"
149bindsym $mod+space [floating] resize set 1280 800 149bindsym $mod+space [floating] resize set 1280 800
150 150
151# change focus between tiling / floating windows
152#bindsym $mod+space focus mode_toggle
153
151###################################### 154######################################
152# keybindings for different actions: # 155# keybindings for different actions: #
153###################################### 156######################################
@@ -177,6 +180,12 @@ bindsym $mod+Shift+c reload
177# restart i3 inplace (preserves your layout/session, can be used to update i3) 180# restart i3 inplace (preserves your layout/session, can be used to update i3)
178bindsym $mod+Shift+r restart 181bindsym $mod+Shift+r restart
179 182
183# Make the currently focused window a scratchpad
184bindsym $mod+Shift+m move scratchpad
185
186# Show the first scratchpad window
187bindsym $mod+m scratchpad show
188
180# list keybinding in fancy rofi (automated): 189# list keybinding in fancy rofi (automated):
181# bindsym F1 exec ~/.config/i3/scripts/keyhint-2 190# bindsym F1 exec ~/.config/i3/scripts/keyhint-2
182# alternative 191# alternative
@@ -225,60 +234,46 @@ bindsym $mod+e layout toggle split
225# toggle tiling / floating 234# toggle tiling / floating
226bindsym $mod+Shift+space floating toggle 235bindsym $mod+Shift+space floating toggle
227 236
228# change focus between tiling / floating windows
229#bindsym $mod+space focus mode_toggle
230
231# focus the parent container 237# focus the parent container
232bindsym $mod+a focus parent 238bindsym $mod+a focus parent
233 239
234# open new empty workspace 240# open new empty workspace
235#bindsym $mod+Shift+n exec --no-startup-id ~/.config/i3/scripts/empty_workspace 241#bindsym $mod+Shift+n exec --no-startup-id ~/.config/i3/scripts/empty_workspace
236 242
237# Multimedia Keys 243# App shortcuts
244bindsym $mod+w exec /usr/bin/firefox
245bindsym $mod+n exec env GDK_SCALE=2 /usr/bin/thunar
246
247# Screenshot
248bindsym Print exec --no-startup-id flameshot gui
249bindsym $mod+Print exec --no-startup-id flameshot full
250
251# Power Profiles menu switcher (rofi)
252bindsym $mod+Shift+p exec --no-startup-id ~/.config/i3/scripts/power-profiles
238 253
239# volume 254# Multimedia Keys
255## volume
240bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks 256bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks
241bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 5%- && pkill -RTMIN+1 i3blocks 257bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 5%- && pkill -RTMIN+1 i3blocks
242 258## gradular volume control
243# gradular volume control
244bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 1%+ && pkill -RTMIN+1 i3blocks 259bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 1%+ && pkill -RTMIN+1 i3blocks
245bindsym $mod+XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 1%- && pkill -RTMIN+1 i3blocks 260bindsym $mod+XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 1%- && pkill -RTMIN+1 i3blocks
246 261## mute
247# mute
248bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle && killall -USR1 i3blocks 262bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle && killall -USR1 i3blocks
249 263## audio control
250# audio control
251bindsym XF86AudioPlay exec --no-startup-id playerctl play 264bindsym XF86AudioPlay exec --no-startup-id playerctl play
252bindsym XF86AudioPause exec --no-startup-id playerctl pause 265bindsym XF86AudioPause exec --no-startup-id playerctl pause
253bindsym XF86AudioNext exec --no-startup-id playerctl next 266bindsym XF86AudioNext exec --no-startup-id playerctl next
254bindsym XF86AudioPrev exec --no-startup-id playerctl previous 267bindsym XF86AudioPrev exec --no-startup-id playerctl previous
255 268## Redirect sound to headphones
256# Redirect sound to headphones
257#bindsym $mod+p exec /usr/local/bin/switch-audio-port 269#bindsym $mod+p exec /usr/local/bin/switch-audio-port
258 270
259# App shortcuts
260bindsym $mod+w exec /usr/bin/firefox
261bindsym $mod+n exec env GDK_SCALE=2 /usr/bin/thunar
262
263# Screenshot
264bindsym Print exec --no-startup-id flameshot gui
265bindsym $mod+Print exec --no-startup-id flameshot full
266
267# Power Profiles menu switcher (rofi)
268bindsym $mod+Shift+p exec --no-startup-id ~/.config/i3/scripts/power-profiles
269
270########################################## 271##########################################
271# configuration for workspace behaviour: # 272# configuration for workspace behaviour: #
272########################################## 273##########################################
273 274
274# Define names for default workspaces for which we configure key bindings later on. 275# Define names for default workspaces for which we configure key bindings later on.
275# We use variables to avoid repeating the names in multiple places. 276# We use variables to avoid repeating the names in multiple places.
276#set $ws1 "1:"
277#set $ws2 "2:"
278#set $ws3 "3:"
279#set $ws4 "4:"
280#set $ws5 "5:"
281
282set $ws1 "1" 277set $ws1 "1"
283set $ws2 "2" 278set $ws2 "2"
284set $ws3 "3" 279set $ws3 "3"
@@ -310,6 +305,36 @@ for_window [class="Microsoft Teams - Preview"] focus
310#for_window [class="^.*"] border pixel 1 305#for_window [class="^.*"] border pixel 1
311for_window [class="Xfce4-terminal"] border pixel 1 306for_window [class="Xfce4-terminal"] border pixel 1
312for_window [class="firefox"] border pixel 1 307for_window [class="firefox"] border pixel 1
308for_window [class="urxvt"] border pixel 1
309
310# set position of floating window
311for_window [class=".*"] move position center
312
313##################
314# floating rules #
315##################
316
317# set floating (nontiling) for apps needing it
318for_window [class="Yad" instance="yad"] floating enable
319for_window [class="Galculator" instance="galculator"] floating enable
320for_window [class="Blueberry.py" instance="blueberry.py"] floating enable
321
322# set floating (nontiling) for special apps
323for_window [class="Xsane" instance="xsane"] floating enable
324for_window [class="Pavucontrol" instance="pavucontrol"] floating enable
325for_window [class="qt5ct" instance="qt5ct"] floating enable
326for_window [class="Blueberry.py" instance="blueberry.py"] floating enable
327for_window [class="Bluetooth-sendto" instance="bluetooth-sendto"] floating enable
328for_window [class="Pamac-manager"] floating enable
329for_window [class="copyq"] floating enable resize set 800 800
330for_window [class="Nm-connection-editor"] floating enable
331for_window [class="flameshot"] floating enable
332for_window [class="FLTK"] floating enable resize 700 700
333for_window [class="1Password"] floating enable resize 800 800
334for_window [class="TelegramDesktop"] floating enable resize set 1300 1200
335for_window [class="eudic"] floating enable resize set 800 800
336for_window [class="Nitrogen"] floating enable resize set 800 800
337for_window [window_role="About"] floating enable
313 338
314############## 339##############
315# compositor # 340# compositor #
@@ -392,48 +417,8 @@ exec --no-startup-id dunst --config ~/.config/dunst/dunstrc
392 417
393exec --no-startup-id xmodmap ~/.Xmodmap 418exec --no-startup-id xmodmap ~/.Xmodmap
394 419
395
396#exec --no-startup-id /opt/1Password/1password 420#exec --no-startup-id /opt/1Password/1password
397 421
398##################
399# floating rules #
400##################
401
402# set floating (nontiling) for apps needing it
403for_window [class="Yad" instance="yad"] floating enable
404for_window [class="Galculator" instance="galculator"] floating enable
405for_window [class="Blueberry.py" instance="blueberry.py"] floating enable
406
407# set floating (nontiling) for special apps
408for_window [class="Xsane" instance="xsane"] floating enable
409for_window [class="Pavucontrol" instance="pavucontrol"] floating enable
410for_window [class="qt5ct" instance="qt5ct"] floating enable
411for_window [class="Blueberry.py" instance="blueberry.py"] floating enable
412for_window [class="Bluetooth-sendto" instance="bluetooth-sendto"] floating enable
413for_window [class="Pamac-manager"] floating enable
414for_window [window_role="About"] floating enable
415for_window [class="copyq"] floating enable resize set 800 800
416for_window [class="Nm-connection-editor"] floating enable
417for_window [class="flameshot"] floating enable
418for_window [class="FLTK"] floating enable resize 700 700
419for_window [class="1Password"] floating enable resize 800 800
420for_window [class="TelegramDesktop"] floating enable resize set 1300 1200
421for_window [class="eudic"] floating enable resize set 800 800
422for_window [class="Nitrogen"] floating enable resize set 800 800
423
424
425# Make the currently focused window a scratchpad
426bindsym $mod+Shift+m move scratchpad
427
428# Show the first scratchpad window
429bindsym $mod+m scratchpad show
430
431# set border of floating window
432for_window [class="urxvt"] border pixel 1
433
434# set position of floating window
435for_window [class=".*"] move position center
436
437###################################### 422######################################
438# color settings for bar and windows # 423# color settings for bar and windows #
439###################################### 424######################################
@@ -471,10 +456,12 @@ bar {
471 position top 456 position top
472 457
473 output eDP-1 458 output eDP-1
459 output DP-1
474 output DP-3 460 output DP-3
475 output DP-4 461 output DP-4
476 462
477 tray_output eDP-1 463 tray_output eDP-1
464 tray_output DP-1
478 tray_output DP-3 465 tray_output DP-3
479 tray_output DP-4 466 tray_output DP-4
480 tray_padding 2 467 tray_padding 2
Powered by cgit v1.2.3 (git 2.41.0)