This commit is contained in:
joy 2024-10-09 21:32:06 +02:00
parent 72e45f5fdf
commit eca2da79b4
3 changed files with 9 additions and 7 deletions

View file

@ -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

View file

@ -22,7 +22,7 @@
sent
texliveFull
alejandra
screen
tmux
tree
zip
unzip

View file

@ -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