From 93324e2d82f51cc71d6faea9af7c3e06147577c2 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 17 Nov 2022 11:59:32 -0800 Subject: + i3: clean i3 config --- dot_config/i3/config | 144 +++++++++------------------------------------------ 1 file changed, 25 insertions(+), 119 deletions(-) (limited to 'dot_config/i3/config') diff --git a/dot_config/i3/config b/dot_config/i3/config index bb07f08..5fa0715 100644 --- a/dot_config/i3/config +++ b/dot_config/i3/config @@ -1,3 +1,6 @@ +# Modified based on https://github.com/endeavouros-team/endeavouros-i3wm-setup +# Jinwei Zhao + # This file is a modified version based on default i3-config-wizard config # source is available here: # https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/master/.config/i3/config @@ -31,17 +34,7 @@ set $mod Mod4 # workspace layout: # ##################### -# default i3 tiling mode: -workspace_layout default - -# i3 stacking layout: -# Each window will be fullscreen and tabbed top to bottom. workspace_layout tabbed -#workspace_layout stacking - -# i3 tabbed layout: -# Each new window will open fullscreen as a tab (left to right) -#workspace_layout tabbed ############################## # extra options for windows: # @@ -149,14 +142,14 @@ mode "resize" { bindsym j resize shrink height 10 px or 10 ppt bindsym l resize grow width 10 px or 10 ppt - # same bindings, but for the arrow keys - bindsym Left resize shrink width 10 px or 10 ppt + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt bindsym Up resize grow height 10 px or 10 ppt bindsym Down resize shrink height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt - # back to normal: Enter or Escape - # bindsym Return mode "default" + # back to normal: Enter or Escape + # bindsym Return mode "default" bindsym Escape mode "default" } @@ -295,15 +288,6 @@ set $ws8 "8" set $ws9 "9" set $ws10 "10" -# use workspaces on different displays: -# where you have to replace VGA-0/HDMI-0 with the names for your displays -# you can get from xrandr command -#workspace $ws1 output VGA-0 -#workspace $ws2 output VGA-0 -#workspace $ws3 output HDMI-0 -#workspace $ws4 output HDMI-0 -#workspace $ws5 output HDMI-0 - # bind program to workspace and focus to them on startup: #assign [class="Xfce4-terminal"] $ws1 assign [class="jetbrains-clion"] $ws1 @@ -371,15 +355,6 @@ exec --no-startup-id env GDK_SCALE=1 ibus-daemon -drxR #exec --no-startup-id dex -a -s /etc/xdg/autostart/:~/.config/autostart/ exec --no-startup-id dex --autostart --environment i3 -# start welcome app -#exec --no-startup-id sh /usr/share/endeavouros/scripts/welcome --startdelay=3 - -# num lock activated -#exec --no-startup-id numlockx on - -# configure multiple keyboard layouts and hotkey to switch (Alt+CAPSLOCK in this example) -#exec --no-startup-id setxkbmap -layout 'us,sk' -variant altgr-intl,qwerty -option 'grp:alt_caps_toggle' - # start conky: #exec_always --no-startup-id conky @@ -388,11 +363,7 @@ exec --no-startup-id dex --autostart --environment i3 exec --no-startup-id ~/.screenlayout/monitor.sh # set wallpaper -exec --no-startup-id sleep 2 && nitrogen --restore -#exec --no-startup-id feh --bg-fill /usr/share/endeavouros/backgrounds/endeavouros_i3.png - -# set powersavings for display: -#exec --no-startup-id xset s 0 dpms 600 600 600 +exec --no-startup-id nitrogen --restore # disable power saving (for example if using xscreensaver) exec --no-startup-id xset -dpms @@ -401,11 +372,6 @@ exec --no-startup-id xset -dpms # https://wiki.archlinux.org/title/Session_lock#xautolock #exec --no-startup-id xautolock -time 60 -locker "systemctl suspend" - -# xscreensaver -# https://www.jwz.org/xscreensaver -#exec --no-startup-id xscreensaver --no-splash - # Desktop notifications exec --no-startup-id dunst --config ~/.config/dunst/dunstrc # alternative if you installed aside with XFCE4: @@ -417,26 +383,8 @@ exec --no-startup-id dunst --config ~/.config/dunst/dunstrc #exec_always --no-startup-id autotiling # Autostart apps as you like -#exec --no-startup-id sleep 2 && xfce4-terminal -#exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/endeavouros-i3wm-setup/blob/main/force-knowledge.md -#exec --no-startup-id sleep 3 && thunar exec --no-startup-id sleep 1 && thunderbird -############### -# system tray # -############### -# if you do not use dex: exec --no-startup-id dex --autostart --environment i3 -# you need to have tray apps started manually one by one: - -# start blueberry app for managing bluetooth devices from tray: -#exec --no-startup-id blueberry-tray - -# networkmanager-applet -#exec --no-startup-id nm-applet - -# clipman-applet -#exec --no-startup-id xfce4-clipman - ################## # floating rules # ################## @@ -469,10 +417,6 @@ bindsym $mod+m scratchpad show # set border of floating window for_window [class="urxvt"] border pixel 1 -# set size of floating window -#for_window [window_role="(?i)GtkFileChooserDialog"] resize set 640 480 #to set size of file choose dialog -#for_window [class=".*"] resize set 1280 680 #to change size of all floating windows - # set position of floating window for_window [class=".*"] move position center @@ -509,16 +453,14 @@ client.urgent $urgentred $urgentred $white $yellowbrown $yellowbrown bar { font pango: Noto Sans Regular 16 status_command i3blocks -c ~/.config/i3/i3blocks.conf - position bottom + position bottom output eDP-1 - i3bar_command i3bar - #i3bar_command i3bar --transparency - #tray_output none + i3bar_command i3bar tray_output primary tray_padding 0 - strip_workspace_numbers no + strip_workspace_numbers no - colors { + colors { separator $purple background $darkgrey statusline $white @@ -526,21 +468,21 @@ bar { active_workspace $lightblue $mediumgrey $darkgrey $purple inactive_workspace $darkgrey $darkgrey $grey $purple urgent_workspace $urgentred $urgentred $white $purple - } + } } bar { font pango: Noto Sans Regular 11 status_command i3blocks -c ~/.config/i3/i3blocks.conf - position bottom - i3bar_command i3bar + position bottom + i3bar_command i3bar output DP-3 - tray_output primary + tray_output primary tray_padding 0 - strip_workspace_numbers no + strip_workspace_numbers no - colors { + colors { separator $purple background $darkgrey statusline $white @@ -548,21 +490,21 @@ bar { active_workspace $lightblue $mediumgrey $darkgrey $purple inactive_workspace $darkgrey $darkgrey $grey $purple urgent_workspace $urgentred $urgentred $white $purple - } + } } bar { font pango: Noto Sans Regular 11 status_command i3blocks -c ~/.config/i3/i3blocks.conf - position bottom - i3bar_command i3bar + position bottom + i3bar_command i3bar output DP-4 - tray_output primary + tray_output primary tray_padding 0 - strip_workspace_numbers no + strip_workspace_numbers no - colors { + colors { separator $purple background $darkgrey statusline $white @@ -570,7 +512,7 @@ bar { active_workspace $lightblue $mediumgrey $darkgrey $purple inactive_workspace $darkgrey $darkgrey $grey $purple urgent_workspace $urgentred $urgentred $white $purple - } + } } # you can add different bars for multidisplay setups on each display: @@ -579,30 +521,6 @@ bar { # https://gist.github.com/lopspower/03fb1cc0ac9f32ef38f4 # #08052be6 --> e6=90% -# bar { -# font pango: Noto Sans Regular 10 -# status_command i3blocks -c ~/.config/i3/i3blocks-2.conf -# i3bar_command i3bar --transparency -# output HDMI-0 -# position bottom -# -# When strip_workspace_numbers is set to yes, -# any workspace that has a name of the form -# “[n][:][NAME]” will display only the name. -#strip_workspace_numbers yes -##strip_workspace_name no -# -# colors { -# separator $purple -# background $darkbluetrans -# statusline $white -# border bg txt indicator -# focused_workspace $lighterblue $lighterblue $darkblue $purple -# active_workspace $lightdblue $lightdblue $darkblue $purple -# inactive_workspace $darkblue $darkblue $lightdblue $purple -# urgent_workspace $urgentred $urgentred $white $purple -# } -#} ##################################### # Application menu handled by rofi: # @@ -613,19 +531,7 @@ bar { bindsym $mod+d exec rofi -modi drun -show drun \ -config ~/.config/rofi/rofidmenu.rasi -#bindsym F9 exec rofi -modi drun -show drun \ -# -config ~/.config/rofi/rofidmenu.rasi - ## rofi bindings for window menu ($mod+t /F10 optional disabled) bindsym $mod+t exec rofi -show window \ -config ~/.config/rofi/rofidmenu.rasi - -#bindsym F10 exec rofi -show window \ -# -config ~/.config/rofi/rofidmenu.rasi - -## rofi bindings to manage clipboard (install rofi-greenclip from the AUR) - -#exec --no-startup-id greenclip daemon>/dev/null -#bindsym $mod+c exec --no-startup-id rofi -modi "clipboard:greenclip print" -show clipboard \ -# -config ~/.config/rofi/rofidmenu.rasi -- cgit v1.2.3