diff options
author | Akshay <[email protected]> | 2022-10-17 17:07:55 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-10-17 17:07:55 +0100 |
commit | 7ff9aca0e71b0277d9ebe73a3cee1799c513d25d (patch) | |
tree | f95eb1cd1034e0c68aa65f33e7e536f42c3e86ad /programs | |
parent | d4c8f393f23f551f100710d293ff44d97ea52795 (diff) |
add bst to tmux
Diffstat (limited to 'programs')
-rw-r--r-- | programs/neovim.nix | 2 | ||||
-rw-r--r-- | programs/tmux.nix | 16 |
2 files changed, 11 insertions, 7 deletions
diff --git a/programs/neovim.nix b/programs/neovim.nix index 6095e0f..e593e44 100644 --- a/programs/neovim.nix +++ b/programs/neovim.nix | |||
@@ -36,7 +36,7 @@ | |||
36 | vim-surround | 36 | vim-surround |
37 | vim-unimpaired | 37 | vim-unimpaired |
38 | vim-repeat | 38 | vim-repeat |
39 | # vim-fugitive | 39 | vim-fugitive |
40 | 40 | ||
41 | # syntax | 41 | # syntax |
42 | rust-vim | 42 | rust-vim |
diff --git a/programs/tmux.nix b/programs/tmux.nix index 11efa39..e9e626b 100644 --- a/programs/tmux.nix +++ b/programs/tmux.nix | |||
@@ -16,6 +16,10 @@ let | |||
16 | ${pkgs.cmus}/bin/cmus-remote -Q | awk '/status/ { print $2 }' | 16 | ${pkgs.cmus}/bin/cmus-remote -Q | awk '/status/ { print $2 }' |
17 | ''; | 17 | ''; |
18 | 18 | ||
19 | date-bst = pkgs.writeScriptBin "date-bst" '' | ||
20 | env TZ=Europe/London date +"%H%M" | ||
21 | ''; | ||
22 | |||
19 | in | 23 | in |
20 | { | 24 | { |
21 | programs.tmux = { | 25 | programs.tmux = { |
@@ -89,15 +93,15 @@ in | |||
89 | set -ag status-style "fg=colour7" | 93 | set -ag status-style "fg=colour7" |
90 | 94 | ||
91 | set status-right-length 70 | 95 | set status-right-length 70 |
92 | set -g status-right "#[fg=colour15]#(${cmus-np}/bin/cmus-np) #[fg=colour8]#(${cmus-status}/bin/cmus-status) " | 96 | set -g status-right "#[fg=colour15]#(date +"%H%M") #[fg=colour8]IST " |
93 | set -ag status-right "#[fg=colour15]#(date +"%H%M") #[fg=colour8]hrs " | 97 | set -ag status-right "#[fg=colour15]#(${date-bst}/bin/date-bst) #[fg=colour8]BST " |
94 | set -ag status-right "#[fg=colour15]#(date +"%d/%m")#[fg=colour8] #(date +"%Y")" | 98 | set -ag status-right "#[fg=colour15]#(date +"%d/%m")#[fg=colour8] #(date +"%Y")" |
95 | 99 | ||
96 | # status left | 100 | # status left |
97 | set status-left-length 50 | 101 | set status-left-length 70 |
98 | set -g status-left "#[fg=colour7]#(bat -q) " | 102 | # set -g status-left "#[fg=colour15]#(${cmus-np}/bin/cmus-np) #[fg=colour8]#(${cmus-status}/bin/cmus-status) " |
99 | set -ag status-left "#[fg=colour7]#(${pkgs.prompt}/bin/prompt cwd '#{pane_current_path}') " | 103 | set -g status-left "#[fg=colour7]#(bat -q) " |
100 | set -ag status-left "#[fg=colour7]#(${pkgs.prompt}/bin/prompt vcs '#{pane_current_path}')" | 104 | set -ag status-left "#[fg=colour7]#(${pkgs.prompt}/bin/prompt cwd '#{pane_current_path}')" |
101 | ''; | 105 | ''; |
102 | }; | 106 | }; |
103 | } | 107 | } |