Skip to content

Commit 3d09984

Browse files
abandoning colors.sh. moving to singular @dracula-colors option.
1 parent e40fde8 commit 3d09984

File tree

4 files changed

+32
-21
lines changed

4 files changed

+32
-21
lines changed

docs/color_theming/README.md

+21-15
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,31 @@ set -g @dracula-weather-colors "orange dark_gray"
3232
```
3333

3434
# overriding color variables
35-
this requires an extra `.sh` file which specifies color variables and their respective values. it can be used to override and also extend the dracula color pallette.
3635

37-
if your tmux config is in `~/.config/tmux/`, then consider putting the color variables into `~/.config/tmux/colors.sh`, with the matching option `set -g @dracula-colors "~/.config/tmux/colors.sh"` in your tmux config.
38-
alternatively, if your tmux config is `~/.tmux.conf`, then consider putting the color variables into `~/.tmux_colors.sh`, with the matching option `set -g @dracula-colors "~/.tmux_colors.sh"` in your tmux config.
36+
all dracula colors can be overridden and new variables can be added.
37+
use the `set -g @dracula-colors "color variables go here"` option. put each new variable on a new line for readability or all variables on one line to save space.
3938

40-
for a quick setup, fill the file with the following contents:
39+
for a quick setup, add one of the following options to your config:
40+
**better readability**
4141
```
42+
set -g @dracula-colors "
4243
# Dracula Color Pallette
43-
white="#f8f8f2"
44-
gray="#44475a"
45-
dark_gray="#282a36"
46-
light_purple="#bd93f9"
47-
dark_purple="#6272a4"
48-
cyan="#8be9fd"
49-
green="#50fa7b"
50-
orange="#ffb86c"
51-
red="#ff5555"
52-
pink="#ff79c6"
53-
yellow="#f1fa8c"
44+
white='#f8f8f2'
45+
gray='#44475a'
46+
dark_gray='#282a36'
47+
light_purple='#bd93f9'
48+
dark_purple='#6272a4'
49+
cyan='#8be9fd'
50+
green='#50fa7b'
51+
orange='#ffb86c'
52+
red='#ff5555'
53+
pink='#ff79c6'
54+
yellow='#f1fa8c'
55+
"
56+
```
57+
**saving space**
58+
```
59+
set -g @dracula-colors " white='#f8f8f2' gray='#44475a' dark_gray='#282a36' light_purple='#bd93f9' dark_purple='#6272a4' cyan='#8be9fd' green='#50fa7b' orange='#ffb86c' red='#ff5555' pink='#ff79c6' yellow='#f1fa8c' "
5460
```
5561
## plug and play themes
5662
as part of this directory there are some plug and play themes with explanations on how to use them:

docs/color_theming/catppuccin.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# drac to cat
22

33

4-
for a quick setup, fill the file with the following contents:
4+
for a quick setup, set the following option:
55
```
6+
set -g @dracula-colors "
67
# simple catppuccin Color Pallette
78
pink='#cba6f7'
89
orange='#fab387'
@@ -15,6 +16,7 @@ dark_gray='#313244'
1516
red='#f38ba8'
1617
gray='#45475a'
1718
dark_purple='#6c7086'
19+
"
1820
```
1921

2022

docs/color_theming/gruvbox.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# drac to gruv
22

33
**TODO**
4-
for a quick setup, fill the file with the following contents:
4+
for a quick setup, set the following option:
55
```
6-
# simple catppuccin Color Pallette
6+
set -g @dracula-colors "
7+
# simple gruvbox Color Pallette
78
pink='#'
89
orange='#'
910
yellow='#'
@@ -15,6 +16,7 @@ dark_gray='#'
1516
red='#'
1617
gray='#'
1718
dark_purple='#'
19+
"
1820
```
1921

2022

scripts/dracula.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ main()
5151
pink="#ff79c6"
5252
yellow="#f1fa8c"
5353

54-
colors_file="$(get_tmux_option "@dracula-colors" "")"
55-
if [ -f "$colors_file" ]; then
56-
source "$colors_file"
54+
# Override default colors and possibly add more
55+
colors="$(get_tmux_option "@dracula-colors" "")"
56+
if [ -n "$colors" ]; then
57+
eval "$colors"
5758
fi
5859

5960
# Set transparency variables - Colors and window dividers

0 commit comments

Comments
 (0)