add: music-launcher
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
./hypr/animation.nix
|
||||
./hypr/misc.nix
|
||||
./hypr/input.nix
|
||||
./music.nix
|
||||
];
|
||||
wayland.windowManager.hyprland.enable = true;
|
||||
wayland.windowManager.hyprland.systemd.enable = false; # for UWSM support...
|
||||
|
||||
@@ -24,8 +24,7 @@
|
||||
"[workspace 1] uwsm app -- xdg-terminal-exec"
|
||||
|
||||
"[workspace special:steam silent] uwsm app -- steam"
|
||||
"[workspace special:music silent] uwsm app -- /usr/bin/env ghostty --class=jellyfin-tui --title=jellyfin-tui -e jellyfin-tui"
|
||||
"[workspace special:music silent] uwsm app -- /usr/bin/env ghostty --class=cava --title=cava -e cava"
|
||||
"music-launcher"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
{ pkgs, ... }: {
|
||||
home.packages = with pkgs; [
|
||||
(writeShellScriptBin "music-launcher" ''
|
||||
# Launch Jellyfin TUI first
|
||||
uwsm app -- /usr/bin/env ghostty --class=jellyfin-tui --title=jellyfin-tui -e jellyfin-tui &
|
||||
|
||||
# Wait for window to appear
|
||||
sleep 0.5
|
||||
|
||||
# Focus the window to apply layout rules (Required for layoutmsg)
|
||||
# This ensures the preselect command applies to this specific window
|
||||
${pkgs.hyprland}/bin/hyprctl dispatch focuswindow title:jellyfin-tui
|
||||
|
||||
# Force the next window to be placed to the right (Side-by-Side / Horizontal)
|
||||
# Change to 'preselect d' for Top/Bottom split
|
||||
${pkgs.hyprland}/bin/hyprctl dispatch layoutmsg preselect r
|
||||
|
||||
# Launch Cava
|
||||
uwsm app -- /usr/bin/env ghostty --class=cava --title=cava -e cava &
|
||||
'')
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user