started working on the librewolf config

This commit is contained in:
Tomas Rivera
2026-03-04 14:19:35 +01:00
parent 246dd40b6f
commit 55d13865e5
6 changed files with 475 additions and 6 deletions
+27
View File
@@ -0,0 +1,27 @@
{ writeShellApplication, zsh, kitty, fzf,... }:
writeShellApplication {
name = "custom-librewolfprofiles";
runtimeInputs = [
zsh
fzf
];
text = ''
# List of profiles
profiles=("work" "other")
# Use fzf to select
selected=$(printf "%s\n" "''${profiles[@]}" | fzf --height 6 --reverse --prompt="Select LibreWolf profile:")
# If user cancels, exit
[[ -z "$selected" ]] && exit 0
# Launch LibreWolf detached, keeping environment
setsid librewolf -P "$selected" --no-remote >/dev/null 2>&1 &
pkill -f "kitty.*Select LibreWolf profile"
# Exit the kitty terminal after selection
exit
'';
}