-
Notifications
You must be signed in to change notification settings - Fork 2
/
rose-pine-tmux.tmux
executable file
·74 lines (64 loc) · 1.79 KB
/
rose-pine-tmux.tmux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#! /usr/bin/env bash
base="#191724"
surface="#1f1d2e"
overlay="#26233a"
muted="#6e6a86"
subtle="#908caa"
text="#e0def4"
love="#eb6f92"
gold="#f6c177"
rose="#ebbcba"
pine="#31748f"
foam="#9ccfd8"
iris="#c4a7e7"
highlight_low="#21202e"
highlight_med="#403d52"
highlight_high="#524f67"
get() {
local option=$1
local default_value=$2
local option_value="$(tmux show-option -gqv "$option")"
if [ -z "$option_value" ]; then
echo "$default_value"
else
echo "$option_value"
fi
}
set() {
local option=$1
local value=$2
tmux set-option -gq "$option" "$value"
}
setw() {
local option=$1
local value=$2
tmux set-window-option -gq "$option" "$value"
}
# Status
set "status" "on"
set "monitor-activity" "on"
set "status-justify" "left"
set "status-position" "bottom"
set "status-left-length" "100"
set "status-right-length" "100"
set "status-style" "fg=$iris,bg=$base,bold"
rosepine_time_format=$(get "@time_format" "%R")
rosepine_date_format=$(get "@date_format" "%d/%m/%Y")
datetime_block="#[fg=$gold,bg=$base] ${rosepine_time_format} ${rosepine_date_format}"
host_block="#[fg=$iris,bg=$base] #h "
set "status-right" "${datetime_block} ${host_block}"
set "status-left" "#[fg=$iris,bg=$base] #S "
setw "window-status-separator" ""
setw "window-status-style" "fg=$rose,bg=$base"
setw "window-status-current-style" "fg=$love,bg=$base"
setw "window-status-activity-style" "fg=$base,bg=$rose"
set "window-status-format" "#[fg=$rose,bg=$base] #I: #W "
set "window-status-current-format" "#[fg=$love,bg=$base] #I: #W "
# Pane
set "pane-border-style" "fg=$highlight_low"
set "pane-active-border-style" "fg=$highlight_high"
set "display-panes-colour" "$text"
set "display-panes-active-colour" "$gold"
# Message
set "message-style" "fg=$base,bg=$gold"
set "message-command-style" "fg=$base,bg=$gold"