From fe3df936dd5cfbedc6c11e7d85fa89b48723cdac Mon Sep 17 00:00:00 2001 From: funman300 Date: Wed, 22 Apr 2026 16:32:06 -0700 Subject: [PATCH] Add starship prompt, swaylock theme, thunar archive plugin, starship packages --- fish/config.fish | 3 +++ install.sh | 5 ++++- niri/config.kdl | 4 ++-- packages.txt | 3 +++ starship/starship.toml | 32 ++++++++++++++++++++++++++++++++ swaylock/config | 41 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 85 insertions(+), 3 deletions(-) create mode 100644 fish/config.fish create mode 100644 starship/starship.toml create mode 100644 swaylock/config diff --git a/fish/config.fish b/fish/config.fish new file mode 100644 index 0000000..dc504d7 --- /dev/null +++ b/fish/config.fish @@ -0,0 +1,3 @@ +if status is-interactive + starship init fish | source +end diff --git a/install.sh b/install.sh index cb051db..bfd1d59 100755 --- a/install.sh +++ b/install.sh @@ -6,7 +6,7 @@ echo "==> Installing packages" sudo pacman -S --needed - < packages.txt echo "==> Creating config directories" -mkdir -p ~/.config/{niri,waybar,wofi,mako,alacritty,gtk-3.0,gtk-4.0} ~/.config/environment.d ~/.config/xdg-desktop-portal +mkdir -p ~/.config/{niri,waybar,wofi,mako,alacritty,gtk-3.0,gtk-4.0,swaylock,fish} ~/.config/environment.d ~/.config/xdg-desktop-portal echo "==> Linking configs" @@ -16,6 +16,9 @@ ln -sf "$(pwd)/waybar/style.css" ~/.config/waybar/style.css ln -sf "$(pwd)/wofi/config" ~/.config/wofi/config ln -sf "$(pwd)/wofi/style.css" ~/.config/wofi/style.css ln -sf "$(pwd)/mako/config" ~/.config/mako/config +ln -sf "$(pwd)/swaylock/config" ~/.config/swaylock/config +ln -sf "$(pwd)/fish/config.fish" ~/.config/fish/config.fish +ln -sf "$(pwd)/starship/starship.toml" ~/.config/starship.toml ln -sf "$(pwd)/alacritty/alacritty.toml" ~/.config/alacritty/alacritty.toml ln -sf "$(pwd)/gtk-3.0/settings.ini" ~/.config/gtk-3.0/settings.ini ln -sf "$(pwd)/gtk-4.0/settings.ini" ~/.config/gtk-4.0/settings.ini diff --git a/niri/config.kdl b/niri/config.kdl index 80d00a8..86917e3 100644 --- a/niri/config.kdl +++ b/niri/config.kdl @@ -38,7 +38,7 @@ spawn-at-startup "mako" spawn-at-startup "swww-daemon" spawn-at-startup "nm-applet" "--indicator" spawn-at-startup "polkit-gnome-authentication-agent-1" -spawn-at-startup "swayidle" "-w" "timeout" "300" "niri msg action power-off-monitors" "timeout" "600" "swaylock -f -c 000000" "before-sleep" "swaylock -f -c 000000" +spawn-at-startup "swayidle" "-w" "timeout" "300" "niri msg action power-off-monitors" "timeout" "600" "swaylock" "before-sleep" "swaylock" spawn-at-startup "wl-paste" "--watch" "cliphist" "store" spawn-at-startup "blueman-applet" spawn-at-startup "wlsunset" "-l" "49.2" "-L" "-123.1" @@ -63,7 +63,7 @@ binds { Print { spawn-sh "grim -g \"$(slurp)\" ~/Pictures/screenshot-$(date +%s).png"; } - Mod+Shift+E { spawn "swaylock" "-f" "-c" "000000"; } + Mod+Shift+E { spawn "swaylock"; } Mod+Shift+P { spawn "powermenu"; } Mod+Shift+C { spawn "clipboard-picker"; } Mod+Shift+X { quit; } diff --git a/packages.txt b/packages.txt index 8e58b43..ce67999 100644 --- a/packages.txt +++ b/packages.txt @@ -29,4 +29,7 @@ imv mpv zathura zathura-pdf-mupdf +thunar-archive-plugin +file-roller +starship diff --git a/starship/starship.toml b/starship/starship.toml new file mode 100644 index 0000000..72ea24d --- /dev/null +++ b/starship/starship.toml @@ -0,0 +1,32 @@ +# Starship config - Tomorrow Night palette + +format = """ +$directory\ +$git_branch\ +$git_status\ +$cmd_duration\ +$line_break\ +$character""" + +[character] +success_symbol = "[❯](bold #81a2be)" +error_symbol = "[❯](bold #cc6666)" + +[directory] +style = "bold #81a2be" +truncation_length = 3 +truncate_to_repo = true + +[git_branch] +symbol = " " +style = "bold #b5bd68" +format = "[$symbol$branch]($style) " + +[git_status] +style = "#cc6666" +format = '([$all_status$ahead_behind]($style) )' + +[cmd_duration] +min_time = 2000 +style = "#f0c674" +format = "[$duration]($style) " diff --git a/swaylock/config b/swaylock/config new file mode 100644 index 0000000..5e76b38 --- /dev/null +++ b/swaylock/config @@ -0,0 +1,41 @@ +# swaylock config - Tomorrow Night theme + +# Background +color=1d1f21 + +# Indicator +indicator-radius=80 +indicator-thickness=8 +indicator-idle-visible + +# Ring colors +ring-color=373b41 +ring-clear-color=81a2be +ring-ver-color=b5bd68 +ring-wrong-color=cc6666 + +# Inside colors +inside-color=1d1f21cc +inside-clear-color=1d1f21cc +inside-ver-color=1d1f21cc +inside-wrong-color=1d1f21cc + +# Line (separator between inside and ring) +line-color=00000000 +line-clear-color=00000000 +line-ver-color=00000000 +line-wrong-color=00000000 + +# Text +text-color=c5c8c6 +text-clear-color=81a2be +text-ver-color=b5bd68 +text-wrong-color=cc6666 + +# Key highlight +key-hl-color=81a2be +bs-hl-color=cc6666 + +# Font +font=JetBrainsMono Nerd Font +font-size=14