diff options
author | Akshay <[email protected]> | 2022-09-19 11:43:36 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-09-19 11:43:36 +0100 |
commit | d4c8f393f23f551f100710d293ff44d97ea52795 (patch) | |
tree | 20d085eaaff0869bcc4bad5ed7750b48f26a066a /programs/tmux.nix | |
parent | 8459e9163a9ba62eec20f696b69f2c0c5c676af3 (diff) |
pin nvim, add zoom, cmus-np
Diffstat (limited to 'programs/tmux.nix')
-rw-r--r-- | programs/tmux.nix | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/programs/tmux.nix b/programs/tmux.nix index e5c5aa1..11efa39 100644 --- a/programs/tmux.nix +++ b/programs/tmux.nix | |||
@@ -3,6 +3,20 @@ | |||
3 | , ... | 3 | , ... |
4 | }: | 4 | }: |
5 | 5 | ||
6 | let | ||
7 | cmus-np = pkgs.writeScriptBin "cmus-np" '' | ||
8 | ${pkgs.cmus}/bin/cmus-remote -Q | awk ' | ||
9 | /tag artist/ { $1=$2=""; artist = substr($0,3) } | ||
10 | /tag title/ { $1=$2=""; title = substr($0,3) } | ||
11 | END { printf "%s ยท %s\n", artist, title} | ||
12 | ' | ||
13 | ''; | ||
14 | |||
15 | cmus-status = pkgs.writeScriptBin "cmus-status" '' | ||
16 | ${pkgs.cmus}/bin/cmus-remote -Q | awk '/status/ { print $2 }' | ||
17 | ''; | ||
18 | |||
19 | in | ||
6 | { | 20 | { |
7 | programs.tmux = { | 21 | programs.tmux = { |
8 | enable = true; | 22 | enable = true; |
@@ -74,14 +88,16 @@ | |||
74 | set -g status-style "bg=colour0" | 88 | set -g status-style "bg=colour0" |
75 | set -ag status-style "fg=colour7" | 89 | set -ag status-style "fg=colour7" |
76 | 90 | ||
77 | set -g status-right "#[fg=colour15]#(date +"%H%M") #[fg=colour8]hrs " | 91 | set status-right-length 70 |
78 | set -ag status-right "#[fg=colour15]#(date +"%d/%m")#[fg=colour8] #(date +"%Y") " | 92 | set -g status-right "#[fg=colour15]#(${cmus-np}/bin/cmus-np) #[fg=colour8]#(${cmus-status}/bin/cmus-status) " |
79 | set -ag status-right "#[fg=colour7]#(bat -q)#[fg=colour12]" | 93 | set -ag status-right "#[fg=colour15]#(date +"%H%M") #[fg=colour8]hrs " |
94 | set -ag status-right "#[fg=colour15]#(date +"%d/%m")#[fg=colour8] #(date +"%Y")" | ||
80 | 95 | ||
81 | # status left | 96 | # status left |
82 | set -g status-left "#[fg=colour7]#(${pkgs.prompt}/bin/prompt cwd '#{pane_current_path}') " | ||
83 | set -ag status-left "#[fg=colour7]#(${pkgs.prompt}/bin/prompt vcs '#{pane_current_path}')" | ||
84 | set status-left-length 50 | 97 | set status-left-length 50 |
98 | set -g status-left "#[fg=colour7]#(bat -q) " | ||
99 | set -ag status-left "#[fg=colour7]#(${pkgs.prompt}/bin/prompt cwd '#{pane_current_path}') " | ||
100 | set -ag status-left "#[fg=colour7]#(${pkgs.prompt}/bin/prompt vcs '#{pane_current_path}')" | ||
85 | ''; | 101 | ''; |
86 | }; | 102 | }; |
87 | } | 103 | } |