Commit graph

276 commits

Author SHA1 Message Date
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
Ethan Edwards
6de48667f9
Merge pull request #203 from miknikif/feature/fix-weather-script 2023-04-24 08:39:06 -04:00
Mykhailo Nikiforov
92a9a471c4
fix: default value for the time format should be empty 2023-04-22 12:55:21 +03:00
Mykhailo Nikiforov
643d51c00c
fix weather script 2023-04-20 14:59:54 +03:00
Ethan Edwards
19f69a1c58
Merge branch 'master' into tmigone/add-network-vpn 2023-04-08 15:14:05 -04:00
Ethan Edwards
8eacce7ee4
add only Darwin support 2023-04-08 15:12:22 -04:00
Ethan Edwards
8dbb6be109
Merge pull request #168 from tarantila/patch-1
Display CPU label on CPU load configuration
2023-04-08 14:49:40 -04:00
Ethan Edwards
3a7ea6fc0b
Merge pull request #175 from aaronkollasch/show-hide-empty-plugins
Add option to show/hide plugins with empty output
2023-04-08 14:49:09 -04:00
Ethan Edwards
ffcefe3358
Merge branch 'master' into feature/time/arbitrary_format 2023-04-08 14:46:58 -04:00
Ethan Edwards
ae09b2f28a
Merge branch 'master' into attached-clients 2023-04-08 14:35:09 -04:00
Ethan Edwards
e5ccca873b
Merge branch 'master' into reject-unknown-plugins 2023-04-08 14:26:35 -04:00
Ethan Edwards
6333a3d52c
Merge pull request #196 from darko1002001/master
fix gpu reporting issue #195
2023-04-08 10:14:41 -04:00
Ethan Edwards
181efce96f
Merge pull request #189 from IGLOU-EU/i165
🐛 fix(#165): is no longer based on word matching
2023-04-08 10:05:55 -04:00
Ethan Edwards
8a55e04a66
Merge pull request #187 from IGLOU-EU/patch-2
Update network-bandwidth configuration and documentation
2023-04-08 09:18:41 -04:00
Ethan Edwards
55e507ce81
Merge pull request #188 from IGLOU-EU/i180
🐛 fix(#180): set network_ping as executable
2023-04-08 08:52:06 -04:00
jonathanforhan
09c5750656 Add cwd.sh to display the tmux pane's current working directory, updated README to reflect change 2023-04-07 20:40:53 -04:00
Darko Grozdanovski
83a05e1a36 fix gpu reporting issue #195 2023-03-22 13:23:19 +01:00
richard
1a90a5ae6a set Timezone different from current 2023-02-14 20:41:46 +00:00
richard
129c602c86 fix he ram value 2023-02-14 17:56:36 +00:00
richard
422bf2babd missed on path change 2023-02-10 18:03:23 +00:00
richard
594812ee50 get the change only 2023-02-10 18:01:00 +00:00
richard
5cd6616479 add OpenBSD 2023-02-10 17:25:03 +00:00
richard
0810927136 add fossil 2023-02-10 17:24:42 +00:00
Ethan Edwards
b346d10306
Merge pull request #174 from nunojsa/dev/git-remote-info 2023-02-01 07:22:31 -05:00
Adrien Kara
1d3d07c3d2
♻️ refactor(ram_info): cleanup and follow bash recommendations
- Remove the sleep rate, controled by show_refresh in dracula.sh

Signed-off-by: Adrien Kara <adrien@iglou.eu>
2023-01-07 23:59:02 +01:00
Adrien Kara
beb6085ad7
🐛 fix(#165): is no longer based on word matching
Signed-off-by: Adrien Kara <adrien@iglou.eu>
2023-01-07 18:36:14 +01:00
Adrien Kara
a960a12af1
🐛 fix(#180): set network_ping as executable
Signed-off-by: Adrien Kara <adrien@iglou.eu>
2023-01-07 16:55:14 +01:00
Adrien Kara
4bb5e56053
feat(network_bandwidth): add more configuration option
- Can auto detect used interface (only with linux ip for now)
- Can show the name of used interface
- A waiting interval can be set between each update

Signed-off-by: Adrien Kara <adrien@iglou.eu>
2023-01-06 19:46:04 +01:00
Adrien Kara
ac95b3e069
♻️ refactor(network_bandwidth): more flexibility and less spaghetti
- Use the internationally recommended unit symbol
- Commentary for next contributor
- Remove spaghetti code
- More flexible for future evolution

Signed-off-by: Adrien Kara <adrien@iglou.eu>
2023-01-06 13:19:31 +01:00
Aaron Kollasch
e2dd7c83f8
Reject unrecognized plugins in config
Prevents duplication of preceding recognized plugin for each
unrecognized plugin
2022-11-09 23:37:59 -05:00
Bryan Hoang
e057d06c0d
fix(dracula.sh): fix execution errors
Resolves an issue cause by a syntax error and a removed executable bit
introduced by dracula/tmux#153.

The syntax/permissions issue stops the plugin from running properly when
I ran into the issue earlier today.

The missing executable bit is likely what's causing dracula/tmux#178
given that `man bash` has the following excerpt:

> If a command is found but is not executable, the return status is 126.
2022-11-07 12:59:39 -05:00
Ethan Edwards
62b1a6d0a4
Merge branch 'master' into spotify-tui 2022-11-06 16:01:58 -05:00
Janno Tjarks
3984f13963
Merge branch 'master' into spotify-tui 2022-10-28 22:12:51 +02:00
Janno Tjarks
1809c14f76
Merge branch 'master' into kubernetes-context 2022-10-28 22:04:49 +02:00
Janno Tjarks
92583ed8b4
Merge branch 'master' into synchronize-panes 2022-10-28 22:03:06 +02:00
Aaron Kollasch
143a0d8888
Add option to show/hide empty plugins 2022-10-28 01:20:37 -04:00
Nuno Sá
eedd33771f git: add remote info support
With this new option, we get information about which remote branch we're
tracking. On top of this, we'll get information about ahead/behind
commits when we diverged from remote. The output format will be in the
form:

'local...remote +ahead -behind',

where ahead and behind are the number of commits ahead and behind.

This functionality is controlled by a new option called
'@dracula-git-show-remote-status'.

Note that for this to be properly displayed, we need to increase the
size of the right status bar when the git plugin is enabled.

In order to be easier to introduce the change, getMessage() was also a
bit changed in order to be easier to append the remote info.

Signed-off-by: Nuno Sá <noname.nuno@gmail.com>
2022-10-26 11:04:30 +02:00
Nuno Sá
e9f46f76ca scripts: git: add '--no-optional-locks' option
As stated in 'git status --help':

"By default, git status will automatically refresh the index, updating
the cached stat information from the working tree and writing out the
result. Writing out the updated index is an optimization that isn’t
strictly necessary (status computes the values for itself, but writing
them out is just to save subsequent programs from repeating our
computation). When status is run in the background, the lock held during
the write may conflict with other simultaneous processes, causing them to
fail. Scripts running status in the background should consider using git
--no-optional-locks status (see git(1) for details)."

This was actually happen during rebasing whith the following error:

"error: Unable to create '/home/nsa/work/linux/.git/index.lock': File
exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue."

This change fixes the above...

Signed-off-by: Nuno Sá <noname.nuno@gmail.com>
2022-09-06 14:36:47 +02:00
Nuno Sá
135637745d scripts: git: add option for untracked files
By default 'git status' will look for untracked files and the script will
always detect that the local tree has changes if untracked files are
present. That is not always optimal since sometimes we might have, for
example, some custom build scripts (for some project) that is always
present and we don't want the status bar to always indicate changes.

Hence, add an option to disable this behavior by adding the '-uno' flag
to 'git status'. The default behavior is still maintained.

Signed-off-by: Nuno Sá <noname.nuno@gmail.com>
2022-09-05 16:07:43 +02:00
tarantila
731114654d
Display CPU label on CPU load configuration
Change to display the defined value of "dracula-cpu-usage-label" (e.g. CPU) when load average is used instead percentage.
Before this change the label was not displayed if CPU load average is used.
2022-08-31 14:12:26 +02:00
Aaron Kollasch
e1ea232edc
Merge branch 'master' into attached-clients 2022-08-30 03:23:28 -04:00
Tomás Migone
0850532083 feat: add network-vpn plugin (only macOS)
Signed-off-by: Tomás Migone <tomasmigone@gmail.com>
2022-08-26 10:57:46 +02:00
Jihed Mastouri
8012d2164a
Battery Status for Fedora 36 2022-08-10 14:14:17 +01:00
Yusuke Uchida
597f7bed29 dracula.sh: deleted use_arbitrary_time_format option 2022-07-25 23:12:49 +09:00
Yusuke Uchida
c39cc30213 dracula.sh: debug case statement 2022-07-25 23:12:49 +09:00
Yusuke Uchida
d4f3009800 dracula.sh: changed default value of time_format 2022-07-25 23:12:49 +09:00
Yusuke Uchida
4b6bdaf9e2 dracula.sh: fixed branch 2022-07-25 23:12:49 +09:00
Yusuke Uchida
bca34814a4 dracula.sh: add prefix dracula- 2022-07-25 23:12:49 +09:00
Yusuke Uchida
d9b6d00121 dracula.sh: add use_arbitrary_time_format and time_format options 2022-07-25 23:12:49 +09:00
pataquets
44018dede1 Add 'custom' status plugin to get status texts from external scripts. 2022-07-10 19:51:32 +02:00
Aaron Kollasch
3e75296b73
Add attached-clients plugin 2022-06-18 05:35:23 -04:00
Pholawat
49f212207e
import utils.sh in battery.sh 2022-05-11 15:53:37 +07:00
Janno Tjarks
fb043e3ac2 Added the plugin spotify-tui 2022-02-11 17:38:01 +01:00
Janno Tjarks
72e385c44d Added kubernetes-context plugin 2022-02-11 16:38:16 +01:00
adrianmihalko
a0987b8b96 Update network_ping.sh 2021-12-23 00:55:35 +01:00
adrianmihalko
45ad8cdafd Update dracula.sh 2021-12-23 00:51:47 +01:00
adrianmihalko
41d32c0af3 Ping plugin 2021-12-23 00:50:24 +01:00
adrianmihalko
2dbd75cadf Add load average support 2021-12-22 23:11:09 +01:00
Janno Tjarks
09a96946ff Added synchronize-panes plugin 2021-12-22 22:50:05 +01:00
adrianmihalko
b06419366c Enable custom location for weather plugin 2021-12-03 18:49:34 +01:00
Andrew Lechowicz
9b2cadc8e1
Add battery icon option 2021-10-24 20:49:23 -04:00
Ethan Edwards
952e02222e
Merge pull request #135 from xiao0yy/patch-1
Support for top version of procps-ng
2021-10-23 12:25:26 -04:00
xiao0yy
7592fdd0fd
Reduce the execution time of top command 2021-10-15 16:56:54 +08:00
Ethan Edwards
cce69791b6
Merge pull request #133 from foxtrot/step-bandwidth-units
Show network bandwidth in gB/s and mB/s when required
2021-10-14 14:38:09 -04:00
Ethan Edwards
0b4954180c
Merge pull request #130 from ethancedwards8/cleanup-ram
Cleanup RAM file
2021-10-14 14:18:07 -04:00
xiao0yy
16aa5f080c
Support for top version procps-ng 2021-10-13 16:56:34 +08:00
Marc
2f96680973
Show bandwidth in gB/s and mB/s when required 2021-10-10 04:44:40 +01:00
Ethan Edwards
67f7e5ecf8 Cleanup RAM file 2021-10-09 19:48:10 -04:00
Marc
b3f05ca19d
Merge branch 'master' of github.com:dracula/tmux into fix-bandwidth-typo 2021-10-10 00:25:43 +01:00
Mikel Bravo
4eaa335c7c
Shows leading 0. on network bandwidth values 2021-09-22 16:46:53 +02:00
Marc
c558b6b024
Fix typos in network_bandwith -> network_bandwidth 2021-09-13 22:00:18 +01:00
Artur Tsuda
d075e4d048
Fix $used_mem when page size is not 4Kb 2021-08-10 17:02:34 -03:00
August Feng
f863305ef8 Fix spacing between status elements
Only the most right status element seemed to be padded with a space, for
the non-powerline configuration. The powerline configuration seems to
embed padding by the seperator, and thus requires a pad on the last
element.

This commit moves the padding next to the seperator to the script
output instead.

Remove trailing newline

Uniformalizes to the other scripts.
2021-07-30 14:19:52 -04:00
Ethan Edwards
9705766ba2
Merge pull request #104 from joeperri95/master
Issue #67 Add git functionality
2021-07-29 14:21:12 -04:00
joeperri95
e0203af1ed Update to new plugin scheme 2021-07-26 22:57:16 -04:00
eeno
8ea687e327 fix incorrect color option being read for the time colors 2021-07-26 23:30:03 +02:00
Sabato Luca Guadagno
832d06405b start weather script only when weather is present in plugins 2021-07-22 12:23:57 +02:00
Sabato Luca Guadagno
9fcf4515b8 wait for $datafile if weather plugin is active 2021-07-22 12:17:11 +02:00
Sabato Luca Guadagno
58619bd3c6 fix too many arguments in utils.sh 2021-07-19 08:19:41 +02:00
Sabato Luca Guadagno
90c2748a39 remove commented code 2021-07-06 13:44:31 +02:00
Sabato Luca Guadagno
4abfcf2799 resolve #42, Enhancement: Make status bar modules / color more configurable 2021-07-06 13:39:01 +02:00
Sabato Luca Guadagno
87df275c6e get_tmux_option(), normalize_percent_len() in scripts/utils.sh
source scripts/utils.sh in dracula.sh, cpu_info.sh, gpu_usage.sh, ram_info.sh
normalize_percent_len for ram_info
custom labels for cpu-usage, gpu-usage, ram-usage
2021-07-06 11:21:21 +02:00
Sabato Luca Guadagno
151cd3e45f resolve #106, Bug: GiGB in RAM usage (Ubuntu) 2021-07-06 10:29:37 +02:00
Sabato Luca Guadagno
d00c245d4e consistent formatting across all scripts 2021-07-06 10:22:36 +02:00
Mark Cornick
a84b57943f
Correct location of weather data file
following change in 8748783
2021-06-30 19:06:07 -04:00
Ethan Edwards
8748783b60
Fix for immutable Nix store 2021-06-20 22:02:57 -04:00
Joe Perri
6cac0951d4 Add git functionality 2021-06-05 12:21:05 -04:00
Rodrigo Nascimento
2b5906140f Change from backticks to $() as command substitution 2021-05-02 19:29:23 -03:00
Rodrigo Nascimento
4616ee9ebe Only set status-right-length when the network_bandwidth option is enabled 2021-05-02 19:24:57 -03:00
Rodrigo Nascimento
910d648d67 Fixing shebang to follow script files convention 2021-04-30 10:59:22 -03:00
Rodrigo Nascimento
2e48e24b70 installation and readme instructions 2021-04-11 17:27:44 -03:00
Rodrigo Nascimento
550e8ce144 checking if network_name exists and call network_bandwith script 2021-04-10 00:38:43 -03:00
Rodrigo Nascimento
6ac5897ac1 increased status-right-length to show bandwith values 2021-04-10 00:37:12 -03:00