Skip to content

Commit 65837cc

Browse files
authored
fix(tmux): use 24h format (#624)
## Description I tried to setup 24h format, but it would not apply. I changed the comparison method, from `==` to `=`. But it can also be changed to `-eq`. As you prefer... ## Screenshots Top right corner Before ![image](https://github.com/user-attachments/assets/c05f3a19-5498-4224-bb2e-4ee402e45076) After ![image](https://github.com/user-attachments/assets/d03df9dc-f05f-41b0-a0e1-a76188d9bba1)
1 parent 3568c3c commit 65837cc

4 files changed

+4
-4
lines changed

extras/tmux/tokyonight_day.tmux

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set -g status-right-style NONE
2323

2424
set -g status-left "#[fg=#b4b5b9,bg=#2e7de9,bold] #S #[fg=#2e7de9,bg=#d0d5e3,nobold,nounderscore,noitalics]"
2525
set -g status-right "#[fg=#d0d5e3,bg=#d0d5e3,nobold,nounderscore,noitalics]#[fg=#2e7de9,bg=#d0d5e3] #{prefix_highlight} #[fg=#a8aecb,bg=#d0d5e3,nobold,nounderscore,noitalics]#[fg=#2e7de9,bg=#a8aecb] %Y-%m-%d  %I:%M %p #[fg=#2e7de9,bg=#a8aecb,nobold,nounderscore,noitalics]#[fg=#b4b5b9,bg=#2e7de9,bold] #h "
26-
if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' {
26+
if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" = "24" ]' {
2727
set -g status-right "#[fg=#d0d5e3,bg=#d0d5e3,nobold,nounderscore,noitalics]#[fg=#2e7de9,bg=#d0d5e3] #{prefix_highlight} #[fg=#a8aecb,bg=#d0d5e3,nobold,nounderscore,noitalics]#[fg=#2e7de9,bg=#a8aecb] %Y-%m-%d  %H:%M #[fg=#2e7de9,bg=#a8aecb,nobold,nounderscore,noitalics]#[fg=#b4b5b9,bg=#2e7de9,bold] #h "
2828
}
2929

extras/tmux/tokyonight_moon.tmux

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set -g status-right-style NONE
2323

2424
set -g status-left "#[fg=#1b1d2b,bg=#82aaff,bold] #S #[fg=#82aaff,bg=#1e2030,nobold,nounderscore,noitalics]"
2525
set -g status-right "#[fg=#1e2030,bg=#1e2030,nobold,nounderscore,noitalics]#[fg=#82aaff,bg=#1e2030] #{prefix_highlight} #[fg=#3b4261,bg=#1e2030,nobold,nounderscore,noitalics]#[fg=#82aaff,bg=#3b4261] %Y-%m-%d  %I:%M %p #[fg=#82aaff,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#1b1d2b,bg=#82aaff,bold] #h "
26-
if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' {
26+
if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" = "24" ]' {
2727
set -g status-right "#[fg=#1e2030,bg=#1e2030,nobold,nounderscore,noitalics]#[fg=#82aaff,bg=#1e2030] #{prefix_highlight} #[fg=#3b4261,bg=#1e2030,nobold,nounderscore,noitalics]#[fg=#82aaff,bg=#3b4261] %Y-%m-%d  %H:%M #[fg=#82aaff,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#1b1d2b,bg=#82aaff,bold] #h "
2828
}
2929

extras/tmux/tokyonight_night.tmux

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set -g status-right-style NONE
2323

2424
set -g status-left "#[fg=#15161e,bg=#7aa2f7,bold] #S #[fg=#7aa2f7,bg=#16161e,nobold,nounderscore,noitalics]"
2525
set -g status-right "#[fg=#16161e,bg=#16161e,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#16161e] #{prefix_highlight} #[fg=#3b4261,bg=#16161e,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] %Y-%m-%d  %I:%M %p #[fg=#7aa2f7,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#15161e,bg=#7aa2f7,bold] #h "
26-
if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' {
26+
if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" = "24" ]' {
2727
set -g status-right "#[fg=#16161e,bg=#16161e,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#16161e] #{prefix_highlight} #[fg=#3b4261,bg=#16161e,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] %Y-%m-%d  %H:%M #[fg=#7aa2f7,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#15161e,bg=#7aa2f7,bold] #h "
2828
}
2929

extras/tmux/tokyonight_storm.tmux

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set -g status-right-style NONE
2323

2424
set -g status-left "#[fg=#1d202f,bg=#7aa2f7,bold] #S #[fg=#7aa2f7,bg=#1f2335,nobold,nounderscore,noitalics]"
2525
set -g status-right "#[fg=#1f2335,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#1f2335] #{prefix_highlight} #[fg=#3b4261,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] %Y-%m-%d  %I:%M %p #[fg=#7aa2f7,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#1d202f,bg=#7aa2f7,bold] #h "
26-
if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' {
26+
if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" = "24" ]' {
2727
set -g status-right "#[fg=#1f2335,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#1f2335] #{prefix_highlight} #[fg=#3b4261,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] %Y-%m-%d  %H:%M #[fg=#7aa2f7,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#1d202f,bg=#7aa2f7,bold] #h "
2828
}
2929

0 commit comments

Comments
 (0)