Commit graph

483 commits

Author SHA1 Message Date
Pratyush Nalam
df75ea2a46
Modify how network name is parsed for Mac because airport command is deprecated in 14.4+ 2024-04-08 14:20:55 +05:30
Ethan Edwards
787e9cded3
Merge pull request #257 from stevendejongnl/playerctl-plugin
feat: Added playerctl plugin
2024-04-06 23:06:38 -04:00
Steven de jong 🍟
24486de337 feat: Added playerctl plugin 2024-04-03 12:27:48 +02:00
Ethan Edwards
a56a5f6622
Merge pull request #249 from emmagamma/macos_network_bandwidth
add network bandwidth support for macOS
2024-01-30 18:12:45 -05:00
Emma
43ee6f2cb0 replace bc usage with an awk floating point math limiting to 2 decimal places 2024-01-30 14:14:10 -08:00
Emma
509c2c114f update interface_bytes and get_bandwidth to support macOS as well 2024-01-30 13:27:39 -08:00
Emma
5f47b1644d add a way to detect network interface on macOS
- typically returns en0, or if a VPN is on it will most likely show one of the `utun` interfaces
2024-01-30 11:16:57 -08:00
Ethan Edwards
ac097bbe5c
Merge pull request #245 from dev-onejun/battery-selections
UPDATE: the power_supply device selection
2024-01-16 14:08:03 -05:00
Ethan Edwards
6dd08eb3f0
Merge pull request #246 from dwdunham/fix-fixed-location-space-breaks
Fix multi word fixed location
2024-01-06 09:26:20 -05:00
David Dunham
504098ed74 Fix multi word fixed location
If you set the @dracula-fixed-location to "San Diego, California" it
ends up looking at "San" which is somewhere in South Korea. This occurs
for any fixed-location that has a space. Something like
"Portland, Oregon" can be modified to "Portland,Oregon" and still work
but we can't remove the space from "San Diego". The reason that spaces
in the fixed location break the backend request is that dracula.sh loses
everything after the space.

Q: Why does the fixed-location end up as "San"?
A: In dracula.sh the fixed-location is not wrapped in quotes when
embedded in the status-right string.

A: In weather_wrapper.sh the call to weather.sh does not wrap the
fixed-location argument with quotes.

Q: When these are fixed why do we get a broken link?
A: Since we are calling a web service using a url, we need to escape
the spaces by changing them to %20
2024-01-03 17:59:07 -08:00
dev-onejun
a43fd55235 UPDATE: the power_supply device selection 2024-01-03 11:21:25 +09:00
Ethan Edwards
3f2466af44
Merge pull request #243 from aftaylor2/fix_ram_info_darwin_total_mem
Fix: Avoid potential delay in calc of RAM (darwin)
2023-12-16 22:59:56 -05:00
Andrew Taylor
bb44e5c842 Fix: Avoid potential delay in calc of RAM (darwin)
The system_profiler command used to determine the total memory on darwin
systems performs an "Activation Lock" check. This can produce a delay in
returning total memory. I began experiencing delays of around 10 seconds.

Switching from system_profiler to sysctl to calculate total memory
bypasses the "Activation Lock" check / timeout scenario.

Results of "time" command using system_profiler:
system_profiler SPHardwareDataType  0.17s user 0.23s system 3% cpu 10.165 total
grep -a "Memory:"  0.00s user 0.00s system 0% cpu 10.164 total
awk '{print $2 $3}'  0.00s user 0.00s system 0% cpu 10.163 total

Results of "time" command using sysctl:
sysctl -n hw.memsize  0.00s user 0.00s system 83% cpu 0.004 total
awk '{print $0/1024/1024/1024 " GB"}'  0.00s user 0.00s system 86% cpu 0.004 total
2023-12-15 10:57:07 -05:00
Ethan Edwards
d8b7d01b72
Merge pull request #235 from AbelAnaya/master
Add ssh-session plugin
2023-12-03 18:35:41 -05:00
Ethan Edwards
892e659b11
Merge branch 'master' into master 2023-12-03 18:35:33 -05:00
Ethan Edwards
1b328c11f8
Merge pull request #234 from sourhub226/master
Update README.md
2023-12-03 18:32:40 -05:00
Ethan Edwards
57f6f0b4a9
Merge pull request #240 from taflaj/hostname
Added `shortname` option to @dracula-show-left-icon
2023-12-03 18:32:09 -05:00
Ethan Edwards
2d1253f611
Merge pull request #239 from pspiagicw/master
MPD Plugin
2023-12-01 20:22:47 -05:00
AbelAnaya
b908ce803b refactor: Avoid if statements with double quotes and use single quotes instead to improve portability of plugin 2023-11-14 23:17:38 +01:00
AbelAnaya
ad59ebcf3a refactor: Improve script maintainability and readability with cleaner functions 2023-11-14 23:16:55 +01:00
AbelAnaya
31c8af3446 refactor: Remove code duplication and check local config file exists before parsing 2023-11-13 23:55:20 +01:00
AbelAnaya
e8b07bedf6
Merge branch 'dracula:master' into master 2023-11-07 19:09:57 +01:00
AbelAnaya
ffa8d28142 refactor: Check both /etc/ssh/ssh_config and ~/.ssh/config to retrieve user under host 2023-11-07 18:43:49 +01:00
AbelAnaya
ac4639be61 fix: Use correct path for ssh configuration file 2023-11-06 22:21:57 +01:00
José Tafla
a96c825515 Spell checked INSTALL.md
Documented `hostname` option for @dracula-show-left-icon
Added `shortname` option to @dracula-show-left-icon
2023-10-25 14:38:54 -07:00
pspiagicw
0fafe37197 feat: Added tmux.conf customizations 2023-10-19 16:09:27 +05:30
pspiagicw
187a57d1a2 feat: Added MPC documentation 2023-10-19 16:05:49 +05:30
pspiagicw
a486050c22 feat: Added mpc plugin 2023-10-19 15:48:43 +05:30
Ethan Edwards
77bad73881
Merge pull request #237 from djfpaagman/patch-1 2023-10-17 17:33:54 -04:00
Dennis Paagman
42af610b66
Update network.sh to not cut off SSIDs starting with ^ 2023-10-16 21:44:27 +02:00
Ethan Edwards
a8da118e99
Merge pull request #236 from deanc/master
Add hostname option for show_left_icon
2023-10-15 18:14:34 -04:00
anonymous
c9334a6b49 Add hostname option 2023-10-14 10:49:11 +03:00
AbelAnaya
bda4fdaf21 docs: Add documentation for ssh-session plugin 2023-10-12 00:10:36 +02:00
AbelAnaya
c9c08f58e0 feat: Add ssh-session plugin
Shows user and hostname of active ssh session if any in the current tmux pane. Connected port
is also available to show under configuration option (default false)
2023-10-12 00:10:35 +02:00
Ethan Edwards
f61d1b8d21
Merge pull request #233 from dashorty/master
check for bc program and show info if not found
2023-10-02 15:03:19 -04:00
Sourabh Sathe
171d0cc9d5
Update README.md
Grammatical changes
2023-10-02 21:37:35 +05:30
Thomas Kurz
c03375f93e check for bc program and show info if not found 2023-10-01 10:35:42 +02:00
Ethan Edwards
ff25428868
Merge pull request #191 from rbucker/master
Add OpenBSD (cpu, ram) and Fossil SCM
2023-09-25 13:31:12 -04:00
Ethan Edwards
59e4fe7dbe
Merge branch 'master' into master 2023-09-25 13:30:27 -04:00
Ethan Edwards
038b1d4b6b
Merge pull request #211 from dormunis/feature/eks-support
Added eks support for kubernetes prompt
2023-09-25 13:23:09 -04:00
Ethan Edwards
c200b96b2f
Merge branch 'master' into feature/eks-support 2023-09-25 13:23:00 -04:00
Ethan Edwards
ce10069d15
Merge pull request #230 from FriendlyTroll/patch-1
Update INSTALL.md
2023-08-29 10:32:17 -04:00
FriendlyTroll
73a2bf2b22
Update INSTALL.md
Add info on how to set custom time format
2023-08-29 13:39:09 +02:00
Ethan Edwards
1b6e44e15c
Merge pull request #221 from aaronkollasch/feat/tmux-continuum
Add tmux-continuum status plugin
2023-07-24 19:34:35 -04:00
Aaron Kollasch
cf474c9342
Add tmux-continuum feature to README.md 2023-07-22 18:12:38 -04:00
Aaron Kollasch
7a8c436807
Trim tmux-continuum status if no save present 2023-07-22 18:12:37 -04:00
Aaron Kollasch
e0dd39def5
Improve tmux-continuum status if no save present 2023-07-22 18:12:37 -04:00
Aaron Kollasch
67cde9d1ae
Improve date compat in tmux-continuum status 2023-07-22 18:12:37 -04:00
Aaron Kollasch
14300a6e75
Improve tmux-continuum status plugin 2023-07-22 18:12:37 -04:00
Aaron Kollasch
5af1faa367
Add plugin for tmux-continuum status 2023-07-22 18:12:36 -04:00