Forráskód Böngészése

re-add session name to tmux powerline

Tragically, there is no session name segment. They are relying on it being in
the tmux.conf file.
Weiyi Lou 12 éve
szülő
commit
74be2502e7

+ 1 - 2
powerline/config/colorschemes/tmux/cinaeco.json

@@ -2,12 +2,11 @@
 	"name": "Default color scheme for terminal prompts",
 	"groups": {
 		"background:divider": { "fg": "gray5", "bg": "gray0" },
-		"session": { "fg": "black", "bg": "gray10", "attr": ["bold"] },
 		"date": { "fg": "gray8", "bg": "gray2" },
 		"time": { "fg": "black", "bg": "mediumorange", "attr": ["bold"] },
 		"time:divider": { "fg": "black", "bg": "mediumorange" },
 		"email_alert": { "fg": "white", "bg": "brightred", "attr": ["bold"] },
-		"hostname": { "fg": "brightpurple", "bg": "darkestpurple", "attr": ["bold"] },
+		"hostname": { "fg": "gray8", "bg": "gray0", "attr": ["bold"] },
 		"weather": { "fg": "gray8", "bg": "gray0" },
 		"weather_temp_cold": { "fg": "steelblue", "bg": "gray0" },
 		"weather_temp_hot": { "fg": "darkorange3", "bg": "gray0" },

+ 6 - 7
powerline/config/themes/tmux/cinaeco.json

@@ -18,20 +18,19 @@
 	"segments": {
     "left" : [
 			{
-				"name": "hostname"
+				"name": "hostname",
+        "args": {
+          "exclude_domain": true
+        }
 			},
 			{
-				"name": "external_ip",
+				"name": "system_load",
 				"priority": 50
 			}
     ],
 		"right": [
 			{
-				"name": "email_imap_alert",
-				"priority": 10
-			},
-			{
-				"name": "system_load",
+				"name": "external_ip",
 				"priority": 50
 			},
 			{

+ 1 - 1
tmux/tmux.conf

@@ -109,7 +109,7 @@ set -g status-justify "centre"
 set -g status-fg colour231
 set -g status-bg colour234
 set -g status-left-length 90
-set -g status-left '#(powerline tmux left)'
+set -g status-left '#[fg=colour189,bg=colour55] #S #[fg=colour55,bg=colour233]#(powerline tmux left)'
 set -g status-right-length 90
 set -g status-right '#(powerline tmux right)'
 set -g window-status-format " #[fg=colour244,bg=colour234]#I#F#[fg=colour249]#W "