aboutsummaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
Diffstat (limited to 'programs')
-rw-r--r--programs/tmux.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/programs/tmux.nix b/programs/tmux.nix
index 139d15e..2e73f3e 100644
--- a/programs/tmux.nix
+++ b/programs/tmux.nix
@@ -7,9 +7,8 @@ let
7 cmus-np = pkgs.writeScriptBin "cmus-np" '' 7 cmus-np = pkgs.writeScriptBin "cmus-np" ''
8 ${pkgs.cmus}/bin/cmus-remote -Q | awk ' 8 ${pkgs.cmus}/bin/cmus-remote -Q | awk '
9 /tag artist/ { $1=$2=""; artist = substr($0,3) } 9 /tag artist/ { $1=$2=""; artist = substr($0,3) }
10 /tag album / { $1=$2=""; album = substr($0,3) }
11 /tag title / { $1=$2=""; title = substr($0,3) } 10 /tag title / { $1=$2=""; title = substr($0,3) }
12 END { if(artist&&album&&title) printf "%s / %s / %s\n", artist, album, title} 11 END { if(artist&&title) printf "%s / %s\n", artist, title}
13 ' 12 '
14 ''; 13 '';
15 14
@@ -130,13 +129,13 @@ in
130 set -g status-style "bg=colour0" 129 set -g status-style "bg=colour0"
131 set -ag status-style "fg=colour7" 130 set -ag status-style "fg=colour7"
132 131
133 set status-right-length 70 132 set -g status-right-length 70
134 set -g status-right "#[fg=colour15]#(date +"%H%M") #[fg=colour8]IST " 133 set -g status-right "#[fg=colour15]#(date +"%H%M") #[fg=colour8]IST "
135 set -ag status-right "#[fg=colour15]#(${date-bst}/bin/date-bst) #[fg=colour8]BST " 134 set -ag status-right "#[fg=colour15]#(${date-bst}/bin/date-bst) #[fg=colour8]BST "
136 set -ag status-right "#[fg=colour15]#(date +"%d/%m")#[fg=colour8] #(date +"%Y")" 135 set -ag status-right "#[fg=colour15]#(date +"%d/%m")#[fg=colour8] #(date +"%Y")"
137 136
138 # status left 137 # status left
139 set status-left-length 70 138 set -g status-left-length 70
140 set -g status-left "#[fg=colour7]#(bat -q) " 139 set -g status-left "#[fg=colour7]#(bat -q) "
141 set -ag status-left "#[fg=colour15]#(${cmus-np}/bin/cmus-np) #[fg=colour8]#(${cmus-status}/bin/cmus-status)" 140 set -ag status-left "#[fg=colour15]#(${cmus-np}/bin/cmus-np) #[fg=colour8]#(${cmus-status}/bin/cmus-status)"
142 141