
* feat(status, window): add option to make overwrite status background color, add option to set the separator between windows * feat(window): update documentation * feat(window): update documentation * feat(refactor): move code out of main and into separated files * Update catppuccin.tmux Co-authored-by: vdbe <44153531+vdbe@users.noreply.github.com> * Update catppuccin.tmux Co-authored-by: vdbe <44153531+vdbe@users.noreply.github.com> --------- Co-authored-by: vdbe <44153531+vdbe@users.noreply.github.com>
35 lines
500 B
Bash
35 lines
500 B
Bash
#!/bin/sh
|
|
|
|
get_tmux_option() {
|
|
local option value default
|
|
option="$1"
|
|
default="$2"
|
|
value=$(tmux show-option -gqv "$option")
|
|
|
|
if [ -n "$value" ]
|
|
then
|
|
if [ "$value" = "null" ]
|
|
then
|
|
echo ""
|
|
|
|
else
|
|
echo "$value"
|
|
fi
|
|
|
|
else
|
|
echo "$default"
|
|
|
|
fi
|
|
}
|
|
|
|
set() {
|
|
local option=$1
|
|
local value=$2
|
|
tmux_commands+=(set-option -gq "$option" "$value" ";")
|
|
}
|
|
|
|
setw() {
|
|
local option=$1
|
|
local value=$2
|
|
tmux_commands+=(set-window-option -gq "$option" "$value" ";")
|
|
}
|