nix/modules/wm/hyprland/scripts/cmus.sh

9 lines
183 B
Bash
Executable file

#!/bin/sh
if tmux has-session -t cmus 2>/dev/null; then
foot -e tmux attach-session -t cmus
else
tmux new-session -d -s cmus cmus
foot -e tmux attach-session -t cmus
fi