2021-06-17 01:17:06 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
session_name=0
|
|
|
|
|
|
|
|
if [[ -z "$1" ]]; then
|
|
|
|
echo "Need a command to perform"
|
|
|
|
exit 1
|
|
|
|
elif [[ "$1" == "start" ]]; then
|
|
|
|
tmux new-session -s "$session_name" -d
|
|
|
|
elif [[ "$1" == "stop" ]]; then
|
|
|
|
tmux kill-session -t "$session_name"
|
2024-03-04 21:18:35 -05:00
|
|
|
elif [[ "$1" == "toggle-theme" ]]; then
|
|
|
|
[ $(tmux show -v @dark-theme) == 0 ] && theme=1 || theme=0
|
|
|
|
tmux set @dark-theme $theme
|
|
|
|
elif [[ "$1" == "dark-theme" ]]; then
|
|
|
|
tmux set @dark-theme 1
|
|
|
|
elif [[ "$1" == "light-theme" ]]; then
|
|
|
|
tmux set @dark-theme 0
|
2021-06-17 01:17:06 -04:00
|
|
|
else
|
2024-03-04 21:18:35 -05:00
|
|
|
echo 'Invalid command'
|
2021-06-17 01:17:06 -04:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|