From 050b001a70142d67237b0af9874bef3b749f7041 Mon Sep 17 00:00:00 2001 From: TheJltres Date: Fri, 30 Aug 2024 20:13:05 +0200 Subject: [PATCH] Tmux: fix use 24h format --- extras/tmux/tokyonight_day.tmux | 2 +- extras/tmux/tokyonight_moon.tmux | 2 +- extras/tmux/tokyonight_night.tmux | 2 +- extras/tmux/tokyonight_storm.tmux | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extras/tmux/tokyonight_day.tmux b/extras/tmux/tokyonight_day.tmux index d3bb37ccb..9b80c45a3 100644 --- a/extras/tmux/tokyonight_day.tmux +++ b/extras/tmux/tokyonight_day.tmux @@ -23,7 +23,7 @@ set -g status-right-style NONE set -g status-left "#[fg=#b4b5b9,bg=#2e7de9,bold] #S #[fg=#2e7de9,bg=#d0d5e3,nobold,nounderscore,noitalics]" 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 " -if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' { +if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" = "24" ]' { 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 " } diff --git a/extras/tmux/tokyonight_moon.tmux b/extras/tmux/tokyonight_moon.tmux index 82a720db4..3619fb810 100644 --- a/extras/tmux/tokyonight_moon.tmux +++ b/extras/tmux/tokyonight_moon.tmux @@ -23,7 +23,7 @@ set -g status-right-style NONE set -g status-left "#[fg=#1b1d2b,bg=#82aaff,bold] #S #[fg=#82aaff,bg=#1e2030,nobold,nounderscore,noitalics]" 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 " -if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' { +if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" = "24" ]' { 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 " } diff --git a/extras/tmux/tokyonight_night.tmux b/extras/tmux/tokyonight_night.tmux index 1ee440ad4..b46a1820d 100644 --- a/extras/tmux/tokyonight_night.tmux +++ b/extras/tmux/tokyonight_night.tmux @@ -23,7 +23,7 @@ set -g status-right-style NONE set -g status-left "#[fg=#15161e,bg=#7aa2f7,bold] #S #[fg=#7aa2f7,bg=#16161e,nobold,nounderscore,noitalics]" 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 " -if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' { +if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" = "24" ]' { 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 " } diff --git a/extras/tmux/tokyonight_storm.tmux b/extras/tmux/tokyonight_storm.tmux index f920139b5..4e772c326 100644 --- a/extras/tmux/tokyonight_storm.tmux +++ b/extras/tmux/tokyonight_storm.tmux @@ -23,7 +23,7 @@ set -g status-right-style NONE set -g status-left "#[fg=#1d202f,bg=#7aa2f7,bold] #S #[fg=#7aa2f7,bg=#1f2335,nobold,nounderscore,noitalics]" 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 " -if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' { +if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" = "24" ]' { 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 " }