From 88b0c2ed6199471d5f3bd601a6e257475606d772 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Tue, 28 Feb 2023 14:12:30 -0800 Subject: i3: re-organize config file --- dot_config/i3/config | 127 +++++++++++++++++++++++---------------------------- 1 file changed, 57 insertions(+), 70 deletions(-) (limited to 'dot_config/i3/config') 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" { bindsym $mod+r mode "resize" bindsym $mod+space [floating] resize set 1280 800 +# change focus between tiling / floating windows +#bindsym $mod+space focus mode_toggle + ###################################### # keybindings for different actions: # ###################################### @@ -177,6 +180,12 @@ bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to update i3) bindsym $mod+Shift+r restart +# Make the currently focused window a scratchpad +bindsym $mod+Shift+m move scratchpad + +# Show the first scratchpad window +bindsym $mod+m scratchpad show + # list keybinding in fancy rofi (automated): # bindsym F1 exec ~/.config/i3/scripts/keyhint-2 # alternative @@ -225,60 +234,46 @@ bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle -# change focus between tiling / floating windows -#bindsym $mod+space focus mode_toggle - # focus the parent container bindsym $mod+a focus parent # open new empty workspace #bindsym $mod+Shift+n exec --no-startup-id ~/.config/i3/scripts/empty_workspace -# Multimedia Keys +# App shortcuts +bindsym $mod+w exec /usr/bin/firefox +bindsym $mod+n exec env GDK_SCALE=2 /usr/bin/thunar + +# Screenshot +bindsym Print exec --no-startup-id flameshot gui +bindsym $mod+Print exec --no-startup-id flameshot full + +# Power Profiles menu switcher (rofi) +bindsym $mod+Shift+p exec --no-startup-id ~/.config/i3/scripts/power-profiles -# volume +# Multimedia Keys +## volume bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 5%- && pkill -RTMIN+1 i3blocks - -# gradular volume control +## gradular volume control bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 1%+ && pkill -RTMIN+1 i3blocks bindsym $mod+XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 1%- && pkill -RTMIN+1 i3blocks - -# mute +## mute bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle && killall -USR1 i3blocks - -# audio control +## audio control bindsym XF86AudioPlay exec --no-startup-id playerctl play bindsym XF86AudioPause exec --no-startup-id playerctl pause bindsym XF86AudioNext exec --no-startup-id playerctl next bindsym XF86AudioPrev exec --no-startup-id playerctl previous - -# Redirect sound to headphones +## Redirect sound to headphones #bindsym $mod+p exec /usr/local/bin/switch-audio-port -# App shortcuts -bindsym $mod+w exec /usr/bin/firefox -bindsym $mod+n exec env GDK_SCALE=2 /usr/bin/thunar - -# Screenshot -bindsym Print exec --no-startup-id flameshot gui -bindsym $mod+Print exec --no-startup-id flameshot full - -# Power Profiles menu switcher (rofi) -bindsym $mod+Shift+p exec --no-startup-id ~/.config/i3/scripts/power-profiles - ########################################## # configuration for workspace behaviour: # ########################################## # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. -#set $ws1 "1:" -#set $ws2 "2:" -#set $ws3 "3:" -#set $ws4 "4:" -#set $ws5 "5:" - set $ws1 "1" set $ws2 "2" set $ws3 "3" @@ -310,6 +305,36 @@ for_window [class="Microsoft Teams - Preview"] focus #for_window [class="^.*"] border pixel 1 for_window [class="Xfce4-terminal"] border pixel 1 for_window [class="firefox"] border pixel 1 +for_window [class="urxvt"] border pixel 1 + +# set position of floating window +for_window [class=".*"] move position center + +################## +# floating rules # +################## + +# set floating (nontiling) for apps needing it +for_window [class="Yad" instance="yad"] floating enable +for_window [class="Galculator" instance="galculator"] floating enable +for_window [class="Blueberry.py" instance="blueberry.py"] floating enable + +# set floating (nontiling) for special apps +for_window [class="Xsane" instance="xsane"] floating enable +for_window [class="Pavucontrol" instance="pavucontrol"] floating enable +for_window [class="qt5ct" instance="qt5ct"] floating enable +for_window [class="Blueberry.py" instance="blueberry.py"] floating enable +for_window [class="Bluetooth-sendto" instance="bluetooth-sendto"] floating enable +for_window [class="Pamac-manager"] floating enable +for_window [class="copyq"] floating enable resize set 800 800 +for_window [class="Nm-connection-editor"] floating enable +for_window [class="flameshot"] floating enable +for_window [class="FLTK"] floating enable resize 700 700 +for_window [class="1Password"] floating enable resize 800 800 +for_window [class="TelegramDesktop"] floating enable resize set 1300 1200 +for_window [class="eudic"] floating enable resize set 800 800 +for_window [class="Nitrogen"] floating enable resize set 800 800 +for_window [window_role="About"] floating enable ############## # compositor # @@ -392,48 +417,8 @@ exec --no-startup-id dunst --config ~/.config/dunst/dunstrc exec --no-startup-id xmodmap ~/.Xmodmap - #exec --no-startup-id /opt/1Password/1password -################## -# floating rules # -################## - -# set floating (nontiling) for apps needing it -for_window [class="Yad" instance="yad"] floating enable -for_window [class="Galculator" instance="galculator"] floating enable -for_window [class="Blueberry.py" instance="blueberry.py"] floating enable - -# set floating (nontiling) for special apps -for_window [class="Xsane" instance="xsane"] floating enable -for_window [class="Pavucontrol" instance="pavucontrol"] floating enable -for_window [class="qt5ct" instance="qt5ct"] floating enable -for_window [class="Blueberry.py" instance="blueberry.py"] floating enable -for_window [class="Bluetooth-sendto" instance="bluetooth-sendto"] floating enable -for_window [class="Pamac-manager"] floating enable -for_window [window_role="About"] floating enable -for_window [class="copyq"] floating enable resize set 800 800 -for_window [class="Nm-connection-editor"] floating enable -for_window [class="flameshot"] floating enable -for_window [class="FLTK"] floating enable resize 700 700 -for_window [class="1Password"] floating enable resize 800 800 -for_window [class="TelegramDesktop"] floating enable resize set 1300 1200 -for_window [class="eudic"] floating enable resize set 800 800 -for_window [class="Nitrogen"] floating enable resize set 800 800 - - -# Make the currently focused window a scratchpad -bindsym $mod+Shift+m move scratchpad - -# Show the first scratchpad window -bindsym $mod+m scratchpad show - -# set border of floating window -for_window [class="urxvt"] border pixel 1 - -# set position of floating window -for_window [class=".*"] move position center - ###################################### # color settings for bar and windows # ###################################### @@ -471,10 +456,12 @@ bar { position top output eDP-1 + output DP-1 output DP-3 output DP-4 tray_output eDP-1 + tray_output DP-1 tray_output DP-3 tray_output DP-4 tray_padding 2 -- cgit v1.2.3