Skip to content

Commit fdaaa8b

Browse files
committed
Merge branch 'dracula/master'
2 parents c40ac5b + 1e9f8b3 commit fdaaa8b

File tree

5 files changed

+193
-3
lines changed

5 files changed

+193
-3
lines changed

INSTALL.md

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ Enable high contrast pane border
8383
set -g @monokai-border-contrast true
8484
```
8585

86+
Hide empty plugins
87+
88+
```bash
89+
set -g @monokai-show-empty-plugins false
90+
```
91+
8692
#### cpu-usage options
8793

8894
Customize label
@@ -110,6 +116,8 @@ set -g @monokai-battery-label "Battery"
110116

111117
#### gpu-usage options
112118

119+
Note, currently only the Linux NVIDIA Proprietary drivers are supported. Nouveau and AMD Graphics Cards support are still under development.
120+
113121
Customize label
114122

115123
```bash
@@ -124,6 +132,26 @@ Customize label
124132
set -g @monokai-ram-usage-label "RAM"
125133
```
126134

135+
#### tmux-ram-usage options
136+
137+
Customize label
138+
139+
```bash
140+
set -g @monokai-tmux-ram-usage-label "MEM"
141+
```
142+
143+
#### network-bandwidth
144+
145+
You can configure which network interface you want to view the bandwidth,
146+
Displaying of the interface name, The interval between each bandwidth update.
147+
The most common interfaces name are `eth0` for a wired connection and `wlan0` for a wireless connection.
148+
149+
```bash
150+
set -g @monokai-network-bandwidth eth0
151+
set -g @monokai-network-bandwidth-interval 0
152+
set -g @monokai-network-bandwidth-show-interface true
153+
```
154+
127155
#### network-ping options
128156

129157
You can configure which server (hostname, IP) you want to ping and at which rate (in seconds). Default is google.com at every 5 seconds.
@@ -133,6 +161,14 @@ set -g @monokai-ping-server "google.com"
133161
set -g @monokai-ping-rate 5
134162
```
135163

164+
### ssh-session options
165+
166+
Show SSH session port
167+
168+
```bash
169+
set -g @monokai-show-ssh-session-port true
170+
```
171+
136172
#### time options
137173

138174
Disable timezone
@@ -153,6 +189,14 @@ Enable military time
153189
set -g @monokai-military-time true
154190
```
155191

192+
Set custom time format e.g (2023-01-01 14:00)
193+
194+
```bash
195+
set -g @monokai-time-format "%F %R"
196+
```
197+
198+
See [[this page]](https://man7.org/linux/man-pages/man1/date.1.html) for other format symbols.
199+
156200
#### git options
157201

158202
Hide details of git changes
@@ -189,6 +233,49 @@ Hide untracked files from being displayed as local changes
189233
set -g @monokai-git-no-untracked-files true
190234
```
191235

236+
Show remote tracking branch together with diverge/sync state
237+
238+
```bash
239+
# default is false
240+
set -g @monokai-git-show-remote-status true
241+
```
242+
243+
#### hg options
244+
245+
Hide details of hg changes
246+
247+
```bash
248+
set -g @monokai-hg-disable-status true
249+
```
250+
251+
Set symbol to use for when branch is up to date with HEAD
252+
253+
```bash
254+
#default is ✓.Avoid using non unicode characters that bash uses like $, * and !
255+
set -g @monokai-hg-show-current-symbol ✓
256+
```
257+
258+
Set symbol to use for when branch diverges from HEAD
259+
260+
```bash
261+
#default is unicode !.Avoid bash special characters
262+
set -g @monokai-hg-show-diff-symbol !
263+
```
264+
265+
Set symbol or message to use when the current pane has no hg repo
266+
267+
```bash
268+
#default is unicode no message
269+
set -g @monokai-hg-no-repo-message ""
270+
```
271+
272+
Hide untracked files from being displayed as local changes
273+
274+
```bash
275+
#default is false
276+
set -g @monokai-hg-no-untracked-files false
277+
```
278+
192279
#### weather options
193280

194281
Switch from default fahrenheit to celsius
@@ -208,3 +295,77 @@ Hide your location
208295
```bash
209296
set -g @monokai-show-location false
210297
```
298+
299+
#### synchronize-panes options
300+
301+
Customize label
302+
303+
```bash
304+
set -g @monokai-synchronize-panes-label "Sync"
305+
```
306+
307+
#### attached-clients options
308+
309+
Set the minimum number of clients to show (otherwise, show nothing)
310+
311+
```bash
312+
set -g @monokai-clients-minimum 1
313+
```
314+
315+
Set the label when there is one client, or more than one client
316+
317+
```bash
318+
set -g @monokai-clients-singular client
319+
set -g @monokai-clients-plural clients
320+
```
321+
322+
#### Kubernetes options
323+
324+
Add prefix label before the context
325+
326+
```bash
327+
set -g @monokai-kubernetes-context-label "Some Label"
328+
```
329+
330+
Hide user from the context string
331+
332+
```
333+
set -g @monokai-kubernetes-hide-user true
334+
```
335+
336+
Hide ARN (show only cluster name) - Available for EKS only (only available for cluster names that are ARNs)
337+
338+
```
339+
set -g @monokai-kubernetes-eks-hide-arn true
340+
```
341+
342+
Extract the account as a prefix to the cluster name - Available for EKS only (only available for cluster names that are ARNs)
343+
344+
````
345+
set -g @monokai-kubernetes-eks-extract-account true
346+
347+
#### continuum options
348+
349+
Set the output mode. Options are:
350+
- **countdown**: Show a T- countdown to the next save (default)
351+
- **time**: Show the time since the last save
352+
- **alert**: Hide output if no save has been performed recently
353+
- **interval**: Show the continuum save interval
354+
355+
```bash
356+
set -g @monokai-continuum-mode countdown
357+
````
358+
359+
Show if the last save was performed less than 60 seconds ago (default threshold is 15 seconds)
360+
361+
```bash
362+
set -g @monokai-continuum-time-threshold 60
363+
```
364+
365+
#### Playerctl format
366+
367+
Set the playerctl metadata format
368+
369+
```
370+
set -g @monokai-playerctl-format "► {{ artist }} - {{ title }}"
371+
```

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MIT License
22

33
Copyright (c) 2020 Dane Williams
4-
Copyright (c) 2022 Max Petretta, https://maxpetretta.com
4+
Copyright (c) 2022 Max Petretta, https://maxp.co
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,35 @@ Configuration and options can be found at [draculatheme.com/tmux](https://dracul
1818

1919
**NOTE**: Replace all mentions of `@dracula` with `@monokai`
2020

21+
## Features
22+
23+
- Support for powerline
24+
- Day, date, time, timezone
25+
- Current location based on network with temperature and forecast icon (if available)
26+
- Network connection status, bandwidth and SSID
27+
- SSH session user, hostname and port of active tmux pane
28+
- Git branch and status
29+
- Battery percentage and AC power connection status
30+
- Refresh rate control
31+
- CPU usage (percentage or load average)
32+
- RAM usage (system and/or tmux server)
33+
- GPU usage
34+
- Custom status texts from external scripts
35+
- GPU VRAM usage
36+
- GPU power draw
37+
- Color code based on whether a prefix is active or not
38+
- List of windows with the current window highlighted
39+
- When prefix is enabled, a smiley face turns from green to yellow
40+
- When charging, 'AC' is displayed
41+
- If forecast information is available, a ☀, ☁, ☂, or ❄ unicode character corresponding with the forecast is displayed alongside the temperature
42+
- Info if the Panes are synchronized
43+
- Spotify playback (needs the tool spotify-tui installed)
44+
- Music Player Daemon status (needs the tool mpc installed)
45+
- Playerctl, get current track metadata
46+
- Current kubernetes context
47+
- Countdown to tmux-continuum save
48+
- Current working directory of tmux pane
49+
2150
## Compatibility
2251

2352
Tested on macOS Monterey, with & without powerline symbols

scripts/battery.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source $current_dir/utils.sh
77

88
linux_acpi() {
99
arg=$1
10-
BAT=$(ls -d /sys/class/power_supply/BAT* | head -1)
10+
BAT=$(ls -d /sys/class/power_supply/*)
1111
if [ ! -x "$(which acpi 2> /dev/null)" ];then
1212
case "$arg" in
1313
status)

scripts/network_bandwidth.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ main() {
112112
IFS=" " read -ra bandwidth <<<"$(get_bandwidth "$network_name")"
113113

114114
if [[ $show_interface == "true" ]]; then echo -n "[$network_name] "; fi
115-
printf "%6s %-4s • ↑ %6s %-4s\n" $(bandwidth_to_unit "${bandwidth[$DOWNLOAD]}") $(bandwidth_to_unit "${bandwidth[$UPLOAD]}")
115+
echo "$(bandwidth_to_unit "${bandwidth[$DOWNLOAD]}") • ↑ $(bandwidth_to_unit "${bandwidth[$UPLOAD]}")"
116116

117117
((counter = counter - 1))
118118
sleep "$interval_update"

0 commit comments

Comments
 (0)