From f17b30deac21764a9db4e3e9c7003c751c4afa75 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 17 Jun 2023 13:09:45 +0530 Subject: more timezones --- programs/tmux.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'programs') diff --git a/programs/tmux.nix b/programs/tmux.nix index b66f79e..8a70405 100644 --- a/programs/tmux.nix +++ b/programs/tmux.nix @@ -21,9 +21,12 @@ let ' ''; - date-bst = pkgs.writeScriptBin "date-bst" '' - env TZ=Europe/London date +"%H%M" + date-tz = tz: pkgs.writeScriptBin "date" '' + env TZ=${tz} date +"%H%M" ''; + date-ist = date-tz "Asia/Kolkata"; + date-bst = date-tz "Europe/London"; + date-hel = date-tz "Europe/Helsinki"; # plugins thumbs = { @@ -125,8 +128,9 @@ in set -ag status-style "fg=colour7" set -g status-right-length 70 - set -g status-right "#[fg=colour15]#(date +"%H%M") #[fg=colour8]IST " - set -ag status-right "#[fg=colour15]#(${date-bst}/bin/date-bst) #[fg=colour8]BST " + set -g status-right "#[fg=colour15]#(${date-ist}/bin/date) #[fg=colour8]IST " + set -ag status-right "#[fg=colour15]#(${date-hel}/bin/date) #[fg=colour8]HEL " + set -ag status-right "#[fg=colour15]#(${date-bst}/bin/date) #[fg=colour8]BST " set -ag status-right "#[fg=colour15]#(date +"%d/%m")#[fg=colour8] #(date +"%Y")" # status left -- cgit v1.2.3