diff --git a/modules/apps/home/cmus/default.nix b/modules/apps/home/cmus/default.nix index 1319264..4609876 100644 --- a/modules/apps/home/cmus/default.nix +++ b/modules/apps/home/cmus/default.nix @@ -6,7 +6,7 @@ ''; theme = { name = "gruvbox"; - text = '' + content = '' # colors from gruvbox: https://github.com/morhetz/gruvbox # default text color set color_win_fg=default diff --git a/modules/apps/norm/misc/default.nix b/modules/apps/norm/misc/default.nix index 85dccab..a843148 100644 --- a/modules/apps/norm/misc/default.nix +++ b/modules/apps/norm/misc/default.nix @@ -22,7 +22,7 @@ sent texliveFull alejandra - screen + tmux tree zip unzip diff --git a/modules/wm/hyprland/scripts/cmus.sh b/modules/wm/hyprland/scripts/cmus.sh index 375e67f..af283e1 100755 --- a/modules/wm/hyprland/scripts/cmus.sh +++ b/modules/wm/hyprland/scripts/cmus.sh @@ -1,9 +1,11 @@ #!/bin/sh -if screen -list | grep -q '\.cmus'; then - alacritty -e screen -r cmus +# Check if a tmux session named 'cmus' exists +if tmux has-session -t cmus 2>/dev/null; then + # Attach to the existing tmux session + alacritty -e tmux attach-session -t cmus else - screen -dmS cmus cmus & - alacritty -e screen -r cmus + # Create a new tmux session named 'cmus' and run cmus + tmux new-session -d -s cmus cmus + alacritty -e tmux attach-session -t cmus fi -