daily configuration optimization

Fix
- airplay: systemd wantedBy target
- fcitx5: remove redundant systemd service

Remove
- move scripts into configuration

Style
- ghostty: add more transparency to background

Add
- zellij
This commit is contained in:
danny 2025-08-27 22:38:40 +08:00
parent 44c152fdc9
commit 9c9acc3494
24 changed files with 941 additions and 856 deletions

View file

@ -1,9 +1,31 @@
{ pkgs, config, ... }:
let
getIconScript = pkgs.writeShellScript "get-icon" (
builtins.readFile ../../home/config/scripts/getIcons.sh
);
getIconScript = pkgs.writeShellScript "get-icon" ''
get_icons() {
local session_name="$1"
local result=""
local panes=($(tmux list-panes -t "$session_name" -F '#{pane_current_command}'))
for i in "''\${panes[@]}"; do
case "$i" in
nvim) result+=" " ;;
zsh | *) result+=" " ;;
esac
done
echo "$result"
}
if (($# != 1)); then
echo "Usage: $0 <session-name>"
exit 1
fi
get_icons "$1"
'';
prefixKey = "C-Space";
tmuxConfigPath = "/etc/tmux.conf";
in