tmux
This commit is contained in:
parent
72e45f5fdf
commit
eca2da79b4
|
@ -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
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
sent
|
||||
texliveFull
|
||||
alejandra
|
||||
screen
|
||||
tmux
|
||||
tree
|
||||
zip
|
||||
unzip
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue