From 07540040f0a58243388c2d1689efd137951a65b7 Mon Sep 17 00:00:00 2001 From: Michel Date: Fri, 27 Dec 2024 11:32:05 +0100 Subject: [PATCH] Update i3 & add zoxide --- .bashrc | 3 +++ .config/i3/config | 1 + .config/i3/config.d/keybinds | 4 ++-- .config/i3/config.d/visuals | 11 ++++++++--- .config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml | 8 ++++---- .config/yadm/bootstrap | 3 ++- 6 files changed, 20 insertions(+), 10 deletions(-) diff --git a/.bashrc b/.bashrc index 8dcc962..a708fdf 100644 --- a/.bashrc +++ b/.bashrc @@ -14,3 +14,6 @@ alias vim='nvim' alias note='(cd ~/Notes/ && NVIM_APPNAME=nvim-notes nvim ~/Notes/)' alias diary='(cd ~/Notes/ && NVIM_APPNAME=nvim-notes nvim ~/Notes/Diary.md)' PS1='[\u@\h \W]\$ ' + +eval "$(zoxide init bash --cmd cd)" +eval "$(fzf --bash)" diff --git a/.config/i3/config b/.config/i3/config index 2588c52..a25e363 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -6,6 +6,7 @@ set $wsTerminal "" set $wsDiscord "" set $ws4 "" set $ws5 "5" +set $wsMusic "" set $ws6 "6" set $ws7 "7" set $ws8 "8" diff --git a/.config/i3/config.d/keybinds b/.config/i3/config.d/keybinds index f4471a4..0432626 100644 --- a/.config/i3/config.d/keybinds +++ b/.config/i3/config.d/keybinds @@ -64,7 +64,7 @@ bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split # toggle tiling / floating -bindsym $mod+Shift+space floating toggle +bindsym $mod+Shift+space floating toggle, sticky toggle # focus the parent container bindsym $mod+a focus parent @@ -82,6 +82,7 @@ bindsym $mod+6 workspace $ws6 bindsym $mod+7 workspace $ws7 bindsym $mod+8 workspace $ws8 bindsym $mod+9 workspace $ws9 +bindsym $mod+m workspace $wsMusic # move focused container to workspace bindsym $mod+Shift+4 move container to workspace number $ws4 @@ -93,7 +94,6 @@ bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod+d move scratchpad bindsym $mod+Shift+d scratchpad show -bindsym $mod+Mod1+d scratchpad show, floating toggle # reload the configuration file bindsym $mod+Shift+c reload diff --git a/.config/i3/config.d/visuals b/.config/i3/config.d/visuals index 8425af0..ae3f3f6 100644 --- a/.config/i3/config.d/visuals +++ b/.config/i3/config.d/visuals @@ -39,8 +39,8 @@ floating_maximum_size 3430 x 1400 workspace $wsBrowser output DisplayPort-1 workspace $wsDiscord output DisplayPort-1 -for_window [class="Xfce4-terminal"] move window to workspace $wsTerminal, focus workspace, layout splith -for_window [class="zen-alpha"] move window to workspace $wsBrowser, focus workspace, layout splith +for_window [class="kitty"] move window to workspace $wsTerminal, focus workspace, layout splith +for_window [class="zen-beta"] move window to workspace $wsBrowser, focus workspace, layout splith for_window [class="vesktop"] move window to workspace $wsDiscord, focus workspace, layout splith for_window [class="home-nativefier-e35d0d"] floating enable, resize set 500 1000, move position mouse, sticky enable @@ -48,6 +48,11 @@ for_window [class="home-nativefier-e35d0d"] floating enable, resize set 500 1000 for_window [class="heroic"] move window to workspace $ws4, focus workspace for_window [class="steam"] move window to workspace $ws4, focus workspace -for_window [class="Ente_auth"] floating enable, resize set 500 1000, move position mouse +for_window [class="Io.ente.auth"] floating enable, resize set 500 1000, move position mouse for_window [class="Beeper"] move window to workspace $wsDiscord +for_window [class="Blueberry.py"] floating enable, resize set 500 600, move position mouse + +for_window [class="YouTube Music"] move window to workspace $wsMusic +for_window [class="feishin"] move window to workspace $wsMusic +for_window [class="PureRef"] floating enable, resize set 1200 800, move position center, sticky enable diff --git a/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml b/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml index b4c0b74..b859599 100644 --- a/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml +++ b/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml @@ -3,16 +3,16 @@ - + - - + + - + diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index ee9ca04..5abe22b 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -17,7 +17,8 @@ yay -S betterlockscreen \ pulseaudio-control \ nitrogen \ kitty \ - btop + btop \ + zoxide fzf # Terminal setup if [ $XDG_SESSION_DESKTOP = "i3" ]; then echo -e "${CYAN}# Installing dependencies (for i3)${NC}"