Skip to content

Commit 1809c14

Browse files
authored
Merge branch 'master' into kubernetes-context
2 parents 72e385c + 79521cc commit 1809c14

File tree

4 files changed

+58
-23
lines changed

4 files changed

+58
-23
lines changed

INSTALL.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ set -g @dracula-cpu-display-load true
128128
CPU usage percentage (default) - in percentage (output: %)
129129
Load average – is the average system load calculated over a given period of time of 1, 5 and 15 minutes (output: x.x x.x x.x)
130130

131+
#### battery options
132+
133+
Customize label
134+
135+
```bash
136+
set -g @dracula-battery-label "Battery"
137+
```
138+
131139
#### gpu-usage options
132140

133141
Customize label
@@ -198,6 +206,11 @@ Set symbol or message to use when the current pane has no git repo
198206
set -g @dracula-git-no-repo-message ""
199207
```
200208

209+
Hide untracked files from being displayed as local changes
210+
```bash
211+
# default is false
212+
set -g @dracula-git-no-untracked-files true
213+
```
201214

202215
#### weather options
203216

@@ -207,3 +220,14 @@ Switch from default fahrenheit to celsius
207220
set -g @dracula-show-fahrenheit false
208221
```
209222

223+
Set your location manually
224+
225+
```bash
226+
set -g @dracula-fixed-location "Some City"
227+
```
228+
229+
Hide your location
230+
231+
```bash
232+
set -g @dracula-show-location false
233+
```

README.md

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ Configuration and options can be found at [draculatheme.com/tmux](https://dracul
1414

1515
## Features
1616

17-
* Support for powerline
18-
* Day, date, time, timezone
19-
* Current location based on network with temperature and forecast icon (if available)
20-
* Network connection status, bandwidth and SSID
21-
* Git branch and status
22-
* Battery percentage and AC power connection status
23-
* Refresh rate control
24-
* CPU usage (percentage or load average)
25-
* RAM usage
26-
* GPU usage
27-
* Color code based on if prefix is active or not
28-
* List of windows with current window highlighted
29-
* When prefix is enabled smiley face turns from green to yellow
30-
* When charging, 'AC' is displayed
31-
* If forecast information is available, a ☀, ☁, ☂, or ❄ unicode character corresponding with the forecast is displayed alongside the temperature
32-
* Current kubernetes context
17+
- Support for powerline
18+
- Day, date, time, timezone
19+
- Current location based on network with temperature and forecast icon (if available)
20+
- Network connection status, bandwidth and SSID
21+
- Git branch and status
22+
- Battery percentage and AC power connection status
23+
- Refresh rate control
24+
- CPU usage (percentage or load average)
25+
- RAM usage
26+
- GPU usage
27+
- Color code based on if prefix is active or not
28+
- List of windows with current window highlighted
29+
- When prefix is enabled smiley face turns from green to yellow
30+
- When charging, 'AC' is displayed
31+
- If forecast information is available, a ☀, ☁, ☂, or ❄ unicode character corresponding with the forecast is displayed alongside the temperature
32+
- Current kubernetes context
3333

3434
## Compatibility
3535

@@ -40,9 +40,15 @@ FreeBSD compatibility is in development
4040

4141
This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/tmux/graphs/contributors).
4242

43-
[![Dane Williams](https://avatars2.githubusercontent.com/u/22798229?s=70&v=4",)](https://github.com/danerwilliams) | [![Ethan Edwards](https://avatars1.githubusercontent.com/u/60861925?s=70&v=4)](https://github.com/ethancedwards8) |
44-
--- | --- |
45-
[Dane Williams](https://github.com/danerwilliams) | [Ethan Edwards](https://github.com/ethancedwards8) |
43+
| [![Dane Williams](https://avatars2.githubusercontent.com/u/22798229?s=70&v=4",)](https://github.com/danerwilliams) | [![Ethan Edwards](https://avatars1.githubusercontent.com/u/60861925?s=70&v=4)](https://github.com/ethancedwards8) |
44+
| ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------- |
45+
| [Dane Williams](https://github.com/danerwilliams) | [Ethan Edwards](https://github.com/ethancedwards8) |
46+
47+
## Community
48+
49+
- [Twitter](https://twitter.com/draculatheme) - Best for getting updates about themes and new stuff.
50+
- [GitHub](https://github.com/dracula/dracula-theme/discussions) - Best for asking questions and discussing issues.
51+
- [Discord](https://draculatheme.com/discord-invite) - Best for hanging out with the community.
4652

4753
## License
4854

scripts/battery.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# setting the locale, some users have issues with different locales, this forces the correct one
33
export LC_ALL=en_US.UTF-8
44

5+
current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6+
source $current_dir/utils.sh
7+
58
linux_acpi() {
69
arg=$1
710
BAT=$(ls -d /sys/class/power_supply/BAT* | head -1)
@@ -86,10 +89,10 @@ battery_status()
8689
discharging|Discharging)
8790
echo ''
8891
;;
89-
high)
92+
high|Full)
9093
echo ''
9194
;;
92-
charging)
95+
charging|Charging)
9396
echo 'AC'
9497
;;
9598
*)

scripts/git.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ IFS=' ' read -r -a hide_status <<< $(get_tmux_option "@dracula-git-disable-statu
77
IFS=' ' read -r -a current_symbol <<< $(get_tmux_option "@dracula-git-show-current-symbol" "")
88
IFS=' ' read -r -a diff_symbol <<< $(get_tmux_option "@dracula-git-show-diff-symbol" "!")
99
IFS=' ' read -r -a no_repo_message <<< $(get_tmux_option "@dracula-git-no-repo-message" "")
10+
IFS=' ' read -r -a no_untracked_files <<< $(get_tmux_option "@dracula-git-no-untracked-files" "false")
1011

1112
# Get added, modified, updated and deleted files from git status
1213
getChanges()
@@ -16,7 +17,7 @@ getChanges()
1617
declare -i updated=0;
1718
declare -i deleted=0;
1819

19-
for i in $(git -C $path status -s)
20+
for i in $(git -C $path --no-optional-locks status -s)
2021

2122
do
2223
case $i in
@@ -77,8 +78,9 @@ checkEmptySymbol()
7778
# check to see if the current repo is not up to date with HEAD
7879
checkForChanges()
7980
{
81+
[ $no_untracked_files == "false" ] && no_untracked="" || no_untracked="-uno"
8082
if [ "$(checkForGitDir)" == "true" ]; then
81-
if [ "$(git -C $path status -s)" != "" ]; then
83+
if [ "$(git -C $path --no-optional-locks status -s $no_untracked)" != "" ]; then
8284
echo "true"
8385
else
8486
echo "false"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy