-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add net to status_right, solves #4 #31
base: master
Are you sure you want to change the base?
Conversation
742e6de
to
d9f0b4d
Compare
Would that run on macOS? |
In short: I think it wouldn't break on macOS, but be a useless waste of space. (Just noting my thougths/to do:)
|
maglev.tmux
Outdated
@@ -11,7 +11,9 @@ fi | |||
SHOW_BATTERY=false | |||
if [[ $PLUGINS == *"tmux-battery"* ]]; then | |||
# if no battery can be found but the plugin is still enabled, this might result in some blank space in status-right | |||
SHOW_BATTERY=true | |||
if [ ! x"$(uname -s)" = x"Linux" ] || [[ "$(ls /sys/class/power_supply)" == *"BAT"* ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out, this is how it works later on in the battery function, so it is just as compatible.
While I believe this isn't perfect, it should work on linux as long as battery drivers work properly.
No Idea what happens on macOS without battery (iMac, Mac Pro) or how to handle it if necessary.
uses unicode point f6ff (nf-mdi-ethernet) as defined by nerdfonts
todo(?): variate icon to indicate whether ethernet or wireless is connected