aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2023-06-17 08:39:45 +0100
committerAkshay <[email protected]>2023-06-17 08:39:45 +0100
commitf17b30deac21764a9db4e3e9c7003c751c4afa75 (patch)
tree7dd6f7946ef1bd5d7254bf2ba2484c6e49d17411
parent10ba218384098758549b8748606957e816177241 (diff)
more timezones
-rw-r--r--programs/tmux.nix12
1 files changed, 8 insertions, 4 deletions
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
21 ' 21 '
22 ''; 22 '';
23 23
24 date-bst = pkgs.writeScriptBin "date-bst" '' 24 date-tz = tz: pkgs.writeScriptBin "date" ''
25 env TZ=Europe/London date +"%H%M" 25 env TZ=${tz} date +"%H%M"
26 ''; 26 '';
27 date-ist = date-tz "Asia/Kolkata";
28 date-bst = date-tz "Europe/London";
29 date-hel = date-tz "Europe/Helsinki";
27 30
28 # plugins 31 # plugins
29 thumbs = { 32 thumbs = {
@@ -125,8 +128,9 @@ in
125 set -ag status-style "fg=colour7" 128 set -ag status-style "fg=colour7"
126 129
127 set -g status-right-length 70 130 set -g status-right-length 70
128 set -g status-right "#[fg=colour15]#(date +"%H%M") #[fg=colour8]IST " 131 set -g status-right "#[fg=colour15]#(${date-ist}/bin/date) #[fg=colour8]IST "
129 set -ag status-right "#[fg=colour15]#(${date-bst}/bin/date-bst) #[fg=colour8]BST " 132 set -ag status-right "#[fg=colour15]#(${date-hel}/bin/date) #[fg=colour8]HEL "
133 set -ag status-right "#[fg=colour15]#(${date-bst}/bin/date) #[fg=colour8]BST "
130 set -ag status-right "#[fg=colour15]#(date +"%d/%m")#[fg=colour8] #(date +"%Y")" 134 set -ag status-right "#[fg=colour15]#(date +"%d/%m")#[fg=colour8] #(date +"%Y")"
131 135
132 # status left 136 # status left