From 39a4421e840be607ed1d1bacb7c965d9795b5068 Mon Sep 17 00:00:00 2001 From: Nigel Date: Thu, 9 May 2024 20:12:36 +0200 Subject: [PATCH] FEAT: Improved zsh, starship and i3 config Changed colorscheme to fit otter for starship Edited zshrc aliases --- i3/config | 10 +++++++--- starship/starship.toml | 40 ++++++++++++++++++++-------------------- zsh/dot-zshrc | 18 ++++++++++++------ 3 files changed, 39 insertions(+), 29 deletions(-) diff --git a/i3/config b/i3/config index 9a19c3d..38a09a1 100755 --- a/i3/config +++ b/i3/config @@ -16,6 +16,9 @@ set $mod Mod4 font pango:Hack Nerd Font 11 exec --no-startup-id picom -b exec --no-startup-id feh --bg-fill $HOME/Pictures/Wallpapers/430795.jpg +exec_always --no-startup-id autotiling -w 1 3 5 7 9 +exec --no-startup-id "sh ~/.xprofile" + focus_follows_mouse no # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). @@ -30,7 +33,6 @@ focus_follows_mouse no # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod - # start a terminal bindsym $mod+Return exec alacritty @@ -211,5 +213,7 @@ bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightne bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% # raise volume bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% # lower volume bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle # toggle mute for default device -# use i3lock-fancy -bindsym $mod-z exec i3lock-fancy + +for_window [title="virtual Machine Manager"] floating enable +for_window [class="plasmashell" window_type="notification"] floating enable, border none, move right 700px, move down 450px +no_focus [class="plasmashell" window_type="notification"] diff --git a/starship/starship.toml b/starship/starship.toml index 644720a..4790a88 100644 --- a/starship/starship.toml +++ b/starship/starship.toml @@ -1,19 +1,19 @@ format = """ -[░▒▓](#a3aed2)\ -[ \ue712 ](bg:#a3aed2 fg:#090c0c)\ -[](bg:#769ff0 fg:#a3aed2)\ +[░▒▓](#788F48)\ +[ \ue712 ](bg:#648519 fg:#b7b8ba)\ +[](bg:#648519 fg:#648519)\ $directory\ -[](fg:#769ff0 bg:#394260)\ +[](bg:#7D9F3F fg:#648519)\ $git_branch\ $git_status\ -[](fg:#394260 bg:#212736)\ +[](bg:#8D995B fg:#7D9F3F)\ $python\ $rust\ $golang\ $c\ -[](fg:#212736 bg:#1d2230)\ +[](fg:#8D995B bg:#648519)\ $time\ -[ ](fg:#1d2230)\ +[ ](fg:#648519)\ \n$character """ [username] @@ -23,7 +23,7 @@ disabled= false show_always = true [directory] -style = "fg:#e3e5e5 bg:#769ff0" +style = "fg:#e3e5e5 bg:#648519" format = "[ $path ]($style)" truncation_length = 3 truncation_symbol = ".../" @@ -31,35 +31,35 @@ truncation_symbol = ".../" [git_branch] symbol = "" -style = "bg:#394260" -format = '[[ $symbol $branch ](fg:#769ff0 bg:#394260)]($style)' +style = "bg:#7D9F3F" +format = '[[ $symbol $branch ](fg:#b7b8ba bg:#7D9F3F)]($style)' [git_status] -style = "bg:#394260" -format = '[[($all_status$ahead_behind )](fg:#769ff0 bg:#394260)]($style)' +style = "bg:#7D9F3F" +format = '[[($all_status$ahead_behind )](fg:#b7b8ba bg:#7D9F3F)]($style)' [rust] symbol = "" -style = "bg:#212736" -format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)' +style = "bg:#8D995B" +format = '[[ $symbol ($version) ](fg:#b7b8ba bg:#8D995B)]($style)' [c] symbol = "\ue61e" style = "bg:#212736" -format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)' +format = '[[ $symbol ($version) ](fg:#b7b8ba bg:#212736)]($style)' [golang] symbol = "" -style = "bg:#212736" -format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)' +style = "bg:#8D995B" +format = '[[ $symbol ($version) ](fg:#b7b8ba bg:#8D995B)]($style)' [python] -format = '[[ $symbol ($version) (\($virtualenv\)) ](fg:#769ff0 bg:#212736)]($style)' +format = '[[ $symbol ($version) (\($virtualenv\)) ](fg:#b7b8ba bg:#8D995B)]($style)' [time] disabled = false time_format = "%R" # Hour:Minute Format -style = "bg:#1d2230" -format = '[[  $time ](fg:#a0a9cb bg:#1d2230)]($style)' +style = "bg:#648519" +format = '[[  $time ](fg:#b7b8ba bg:#648519)]($style)' diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc index 6ef6865..a04f20f 100644 --- a/zsh/dot-zshrc +++ b/zsh/dot-zshrc @@ -60,14 +60,14 @@ if [[ -n $SSH_CONNECTION ]]; then fi # Personal aliases -alias zshconfig="nvim ~/.zshrc" -alias ohmyzsh="nvim ~/.oh-my-zsh" +alias zshconfig="$EDITOR ~/.zshrc" +alias ohmyzsh="$EDITOR ~/.oh-my-zsh" alias dev="cd /home/nigel/Development" alias dotfiles="cd /home/nigel/.dotfiles" - -# Personal Aliases -alias zshconfig="mate ~/.zshrc" -alias ohmyzsh="mate ~/.oh-my-zsh" +alias gitconfig="$EDITOR $HOME/.gitconfig" +alias sshconfig="$EDITOR $HOME/.ssh/config" +alias sshhome="cd $HOME/.ssh" +alias reload="source $HOME/.zshrc" # Add Autocompletion tools _dotnet_zsh_complete() @@ -82,6 +82,12 @@ source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh # zsh paramater for dotnet cli tab completion compctl -K _dotnet_zsh_complete dotnet +(cat $HOME/.cache/wal/sequences &) +source $HOME/.cache/wal/colors.sh + eval "$(fzf --zsh)" eval "$(starship init zsh)" +eval "$(register-python-argcomplete pipx)" +# Created by `pipx` on 2024-04-10 15:28:48 +export PATH="$PATH:/home/nigel/.local/bin"