Commit graph

268 commits

Author SHA1 Message Date
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
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
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
892e659b11
Merge branch 'master' into master 2023-12-03 18:35:33 -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
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
a486050c22 feat: Added mpc plugin 2023-10-19 15:48:43 +05:30
Dennis Paagman
42af610b66
Update network.sh to not cut off SSIDs starting with ^ 2023-10-16 21:44:27 +02:00
anonymous
c9334a6b49 Add hostname option 2023-10-14 10:49:11 +03: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
Thomas Kurz
c03375f93e check for bc program and show info if not found 2023-10-01 10:35:42 +02:00
Ethan Edwards
59e4fe7dbe
Merge branch 'master' into master 2023-09-25 13:30:27 -04:00
Ethan Edwards
c200b96b2f
Merge branch 'master' into feature/eks-support 2023-09-25 13:23:00 -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
Magnus Larsen
3ef141f829 [fix] 'synchronize-panes' is not runnable 2023-07-14 11:00:47 +02:00
Ethan Edwards
7c38079992
Merge branch 'master' into synchronize-panes 2023-07-12 14:15:02 -04:00
Ethan Edwards
bd87fa7d16
Merge pull request #226 from pele1410/master
Add mercurial script
2023-07-09 16:24:38 -04:00
Aaron Kollasch
640eb4c809
Fix shellcheck warnings 2023-07-09 01:07:22 -04:00
Aaron Kollasch
b6fe033952
Add fallback for tmux-ram-usage without pstree 2023-07-08 20:53:18 -04:00
Christopher Thompson
601696fd7f Fix symbol for deleted files 2023-07-04 07:35:30 -05:00
Christopher Thompson
83416ad3f8 Add mercurial script 2023-07-04 07:26:04 -05:00
Aaron Kollasch
311da18dc2
Add tmux-ram-usage plugin 2023-06-17 17:01:44 -04:00
Dor Munis
b8d1c83e84
Merge branch 'master' into feature/eks-support 2023-05-15 10:55:40 +03:00
Ethan Edwards
79068c40b3
Merge pull request #213 from dormunis/feature/terraform-workspace
Added terraform workspace support
2023-05-14 09:54:37 -04:00
jonathanforhan
6fe855290f fix bug with multi-word cwd 2023-05-12 13:35:49 -04:00
Dor Munis
d4080e434e Added terraform workspace support 2023-05-12 19:02:51 +03:00
Dor Munis
31327163a1 added eks support for kubernetes prompt 2023-05-12 18:06:09 +03:00
Ethan Edwards
c5f8b4a99e
Merge branch 'master' into add-custom-script-plugin 2023-04-27 19:26:07 -04:00
Ethan Edwards
934f3eea35
Merge pull request #206 from gdkrmr/master
Add plugins for gpu ram and power
2023-04-27 19:25:39 -04:00
Jumscrafteur
15ce3968c8 Change default format to spt's default 2023-04-26 17:21:32 +02:00
Jumscrafteur
8ee569dd6a Add dracula-spotify-tui-format 2023-04-26 17:08:06 +02:00
Guido Kraemer
d7fce8ee74
fix gpu power monitor 2023-04-26 16:21:38 +02:00
Guido Kraemer
0f345b2ded
add gpu power usage monitor 2023-04-26 16:17:48 +02:00
Guido Kraemer
a588a9d517
fix gpu memory 2023-04-26 13:44:09 +02:00
pataquets
854ea972fa Merge branch 'master' into add-custom-script-plugin 2023-04-26 13:40:00 +02:00
Guido Kraemer
49a1c3f6c3
add gpu ram info plugin 2023-04-26 13:31:03 +02:00
pataquets
9d596d6cde Merge branch 'master' into add-custom-script-plugin 2023-04-26 13:23:06 +02:00