From b61bb59da1bd2365ac2e4c6ff18def1b5c150b82 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Tue, 14 Feb 2023 13:59:28 -0800 Subject: i3: update config --- dot_config/i3/config | 82 +++++++++++++++------------------------------------- 1 file changed, 24 insertions(+), 58 deletions(-) (limited to 'dot_config/i3/config') diff --git a/dot_config/i3/config b/dot_config/i3/config index 998a8fd..a643548 100644 --- a/dot_config/i3/config +++ b/dot_config/i3/config @@ -43,8 +43,10 @@ workspace_layout tabbed #border indicator on windows: #new_window pixel 1 +default_border pixel 0 + # thin borders -# hide_edge_borders both +hide_edge_borders both # Set inner/outer gaps #gaps inner 0 @@ -185,8 +187,8 @@ bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to update i3) bindsym $mod+Shift+r restart -# keybinding in fancy rofi (automated): -bindsym F1 exec ~/.config/i3/scripts/keyhint-2 +# list keybinding in fancy rofi (automated): +# bindsym F1 exec ~/.config/i3/scripts/keyhint-2 # alternative # keybinding list in editor: # bindsym $mod+F1 exec xed ~/.config/i3/keybindings @@ -211,10 +213,10 @@ bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+b move up -bindsym $mod+Shift+o move right +#bindsym $mod+Shift+j move left +#bindsym $mod+Shift+k move down +#bindsym $mod+Shift+b move up +#bindsym $mod+Shift+o move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left @@ -246,7 +248,7 @@ bindsym $mod+Shift+space floating toggle bindsym $mod+a focus parent # open new empty workspace -bindsym $mod+Shift+n exec --no-startup-id ~/.config/i3/scripts/empty_workspace +#bindsym $mod+Shift+n exec --no-startup-id ~/.config/i3/scripts/empty_workspace # Multimedia Keys @@ -304,12 +306,10 @@ set $ws8 "8" set $ws9 "9" # bind program to workspace and focus to them on startup: -#assign [class="Xfce4-terminal"] $ws1 assign [class="jetbrains-clion"] $ws1 assign [class="Thunar"] $ws3 assign [class="Logseq"] $ws3 assign [class="thunderbird"] $ws4 -#assign [class="TelegramDesktop"] $ws5 assign [class="discord"] $ws5 assign [class="Microsoft Teams - Preview"] $ws5 assign [class="FLTK"] $ws9 @@ -317,11 +317,14 @@ assign [class="FLTK"] $ws9 # automatic set focus new window if it opens on another workspace then the current: for_window [class=Xfce4-terminal] focus for_window [class=(?i)firefox] focus +for_window [class=Logseq] focus for_window [class=Thunar] focus for_window [class=thunderbird] focus for_window [class=TelegramDesktop] focus for_window [class="Microsoft Teams - Preview"] focus +#for_window [class="^.*"] border pixel 1 + ############## # compositor # ############## @@ -401,9 +404,6 @@ exec --no-startup-id dunst --config ~/.config/dunst/dunstrc # `yay -S autotiling ;) (it is in AUR) #exec_always --no-startup-id autotiling -# Autostart apps as you like -#exec --no-startup-id sleep 5 && thunderbird - exec --no-startup-id xmodmap ~/.Xmodmap ################## @@ -428,10 +428,11 @@ 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 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 [class="org.remmina.Remmina"] floating enable resize set 800 800 + # Make the currently focused window a scratchpad bindsym $mod+Shift+m move scratchpad @@ -477,55 +478,20 @@ client.urgent $urgentred $urgentred $white $yellowbrown # (plus the system information i3status finds out, if available) bar { font pango: Noto Sans Regular 16 - status_command i3blocks -c ~/.config/i3/i3blocks.conf - position bottom - output eDP-1 i3bar_command i3bar - tray_output primary - tray_padding 0 - strip_workspace_numbers no - - colors { - separator $purple - background $darkgrey - statusline $white - focused_workspace $mediumgrey $grey $darkgrey $purple - active_workspace $lightblue $mediumgrey $darkgrey $purple - inactive_workspace $darkgrey $darkgrey $grey $purple - urgent_workspace $urgentred $urgentred $white $purple - } -} - -bar { - font pango: Noto Sans Regular 12 - status_command i3blocks -c ~/.config/i3/i3blocks-extend.conf + status_command i3blocks -c ~/.config/i3/i3blocks.conf position bottom + + output eDP-1 + output DP-3 output DP-4 - i3bar_command i3bar - tray_output primary - tray_padding 0 - strip_workspace_numbers no - colors { - separator $purple - background $darkgrey - statusline $white - focused_workspace $mediumgrey $grey $darkgrey $purple - active_workspace $lightblue $mediumgrey $darkgrey $purple - inactive_workspace $darkgrey $darkgrey $grey $purple - urgent_workspace $urgentred $urgentred $white $purple - } -} + tray_output eDP-1 + tray_output DP-3 + tray_output DP-4 + tray_padding 2 -bar { - font pango: Noto Sans Regular 12 - status_command i3blocks -c ~/.config/i3/i3blocks-extend.conf - position bottom - output DP-3 - i3bar_command i3bar - tray_output primary - tray_padding 0 - strip_workspace_numbers no + strip_workspace_numbers yes colors { separator $purple -- cgit v1.2.3