tmux
This commit is contained in:
parent
72e45f5fdf
commit
eca2da79b4
|
@ -6,7 +6,7 @@
|
||||||
'';
|
'';
|
||||||
theme = {
|
theme = {
|
||||||
name = "gruvbox";
|
name = "gruvbox";
|
||||||
text = ''
|
content = ''
|
||||||
# colors from gruvbox: https://github.com/morhetz/gruvbox
|
# colors from gruvbox: https://github.com/morhetz/gruvbox
|
||||||
# default text color
|
# default text color
|
||||||
set color_win_fg=default
|
set color_win_fg=default
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
sent
|
sent
|
||||||
texliveFull
|
texliveFull
|
||||||
alejandra
|
alejandra
|
||||||
screen
|
tmux
|
||||||
tree
|
tree
|
||||||
zip
|
zip
|
||||||
unzip
|
unzip
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if screen -list | grep -q '\.cmus'; then
|
# Check if a tmux session named 'cmus' exists
|
||||||
alacritty -e screen -r cmus
|
if tmux has-session -t cmus 2>/dev/null; then
|
||||||
|
# Attach to the existing tmux session
|
||||||
|
alacritty -e tmux attach-session -t cmus
|
||||||
else
|
else
|
||||||
screen -dmS cmus cmus &
|
# Create a new tmux session named 'cmus' and run cmus
|
||||||
alacritty -e screen -r cmus
|
tmux new-session -d -s cmus cmus
|
||||||
|
alacritty -e tmux attach-session -t cmus
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue