3a146f39b7
- Standardized apps/ directory by renaming all entry points (e.g., home.nix) to default.nix and updating imports to use directory paths. - Consolidated system/ logic into modules/system/, eliminating the top-level system/ directory and redundant wrappers. - Merged subsidiary utility scripts (e.g., hakase-popup.nix, switch-wallpaper.nix) into their parent default.nix files for better cohesion. - Cleaned up unused files and updated all module references to reflect the new structure.
34 lines
859 B
Nix
34 lines
859 B
Nix
{pkgs, ...}: let
|
|
launch-music = pkgs.writeShellScriptBin "hakase-music-launch" ''
|
|
echo "--- Launching Music Apps ---"
|
|
echo "Launching jellyfin-tui..."
|
|
uwsm app -- /usr/bin/env ghostty --class=jellyfin-tui --title=jellyfin-tui -e jellyfin-tui &
|
|
PID_JELLY=$!
|
|
echo "Jellyfin launched with PID $PID_JELLY"
|
|
|
|
echo "Waiting for window..."
|
|
sleep 0.1
|
|
|
|
echo "Focusing jellyfin-tui..."
|
|
hyprctl dispatch focuswindow title:jellyfin-tui
|
|
|
|
echo "Preselecting down..."
|
|
hyprctl dispatch layoutmsg preselect d
|
|
|
|
echo "Launching cava..."
|
|
uwsm app -- /usr/bin/env ghostty --class=cava --title=cava -e cava &
|
|
PID_CAVA=$!
|
|
echo "Cava launched with PID $PID_CAVA"
|
|
|
|
echo "Launch script completed."
|
|
'';
|
|
in {
|
|
imports = [
|
|
../../apps/jellyfin-tui
|
|
../../apps/cava
|
|
];
|
|
home.packages = [
|
|
launch-music
|
|
];
|
|
}
|