rework: more TUIs! (#62)

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-09-28 20:18:12 +02:00
committed by GitHub
parent 1a3f23f248
commit 07a60e91d2
98 changed files with 1280 additions and 1093 deletions
+45
View File
@@ -0,0 +1,45 @@
# Kew is a TUI audio player
{
pkgs,
lib,
config,
...
}: let
kewLauncher = pkgs.writeShellScript "kew-launcher" ''
if [ -n "$1" ]; then
exec ${pkgs.kew}/bin/kew play "$1"
else
exec ${pkgs.kew}/bin/kew
fi
'';
in {
home.packages = with pkgs; [
kew
];
home.persistence."/persist" = lib.mkIf (config.var.impermanenceEnabled or false) {
directories = [
".config/kew"
];
};
xdg.desktopEntries.kew = {
name = "Music Player";
exec = "${pkgs.ghostty}/bin/ghostty --window-padding-x=0 --window-padding-y=0 -e ${kewLauncher} %f";
comment = "Play music from the terminal";
categories = ["Audio" "Music"];
terminal = false;
mimeType = [
"audio/aac"
"audio/mpeg"
"audio/ogg"
"audio/opus"
"audio/vnd.wave"
"audio/webm"
"audio/x-matroska"
"audio/flac"
"audio/mp4"
];
settings.Keywords = "lofi;player;music;";
};
}