clean up
This commit is contained in:
@@ -1,31 +1,20 @@
|
|||||||
{pkgs, ...}: let
|
{pkgs, ...}: let
|
||||||
launch-music = pkgs.writeShellScriptBin "hakase-music-launch" ''
|
launch-music = pkgs.writeShellScriptBin "hakase-music-launch" ''
|
||||||
# Log output for debugging
|
|
||||||
LOGfile="/tmp/launch-music.log"
|
|
||||||
exec > >(tee -a "$LOGfile") 2>&1
|
|
||||||
|
|
||||||
echo "--- Launching Music Apps ---"
|
echo "--- Launching Music Apps ---"
|
||||||
date
|
|
||||||
|
|
||||||
# Launch Jellyfin
|
|
||||||
echo "Launching jellyfin-tui..."
|
echo "Launching jellyfin-tui..."
|
||||||
uwsm app -- /usr/bin/env ghostty --class=jellyfin-tui --title=jellyfin-tui -e jellyfin-tui &
|
uwsm app -- /usr/bin/env ghostty --class=jellyfin-tui --title=jellyfin-tui -e jellyfin-tui &
|
||||||
PID_JELLY=$!
|
PID_JELLY=$!
|
||||||
echo "Jellyfin launched with PID $PID_JELLY"
|
echo "Jellyfin launched with PID $PID_JELLY"
|
||||||
|
|
||||||
# Wait for window to appear
|
|
||||||
echo "Waiting for window..."
|
echo "Waiting for window..."
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
|
|
||||||
# Focus
|
|
||||||
echo "Focusing jellyfin-tui..."
|
echo "Focusing jellyfin-tui..."
|
||||||
hyprctl dispatch focuswindow title:jellyfin-tui
|
hyprctl dispatch focuswindow title:jellyfin-tui
|
||||||
|
|
||||||
# Preselect Down
|
|
||||||
echo "Preselecting down..."
|
echo "Preselecting down..."
|
||||||
hyprctl dispatch layoutmsg preselect d
|
hyprctl dispatch layoutmsg preselect d
|
||||||
|
|
||||||
# Launch Cava
|
|
||||||
echo "Launching cava..."
|
echo "Launching cava..."
|
||||||
uwsm app -- /usr/bin/env ghostty --class=cava --title=cava -e cava &
|
uwsm app -- /usr/bin/env ghostty --class=cava --title=cava -e cava &
|
||||||
PID_CAVA=$!
|
PID_CAVA=$!
|
||||||
|
|||||||
Reference in New Issue
Block a user