snapshot pre-cleanup-2026-05-23T19-39-41Z

This commit is contained in:
2026-05-23 23:32:28 +02:00
parent c8ee6d85fe
commit 30e8029a6b
35 changed files with 353 additions and 229 deletions
@@ -0,0 +1,34 @@
{ ... }: {
perSystem = { pkgs, ... }: {
# fzf librewolf profile selector
packages.custom-librewolfprofiles = pkgs.writeShellApplication {
name = "custom-librewolfprofiles";
runtimeInputs = with pkgs; [
zsh
fzf
];
text = ''
# List of profiles
profiles=("work" "other" "private window")
# 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
if [[ "$selected" == "private window" ]]; then
setsid librewolf --private-window --no-remote >/dev/null 2>&1 &
pkill -f "kitty.*Select LibreWolf profile"
else
setsid librewolf -P "$selected" --no-remote >/dev/null 2>&1 &
pkill -f "kitty.*Select LibreWolf profile"
fi
# Exit the kitty terminal after selection
exit
'';
};
};
}