-
Notifications
You must be signed in to change notification settings - Fork 0
/
walset
executable file
·57 lines (45 loc) · 2.26 KB
/
walset
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env bash
# source wal colors
. "${HOME}/.cache/wal/colors.sh"
reload_dunst() {
pkill dunst
dunst \
-lb "${color0:-#FFFFFF}" \
-nb "${color0:-#FFFFFF}" \
-cb "${color0:-#FFFFFF}" \
-lf "${color4:-#000000}" \
-bf "${color4:-#000000}" \
-cf "${color4:-#000000}" \
-nf "${color4:-#000000}" \
-frame_color "${color0:-#000000}" &
}
reload_mpv() {
sed -i "/sub-color=/c\sub-color=\"${foreground:-#FFFFFF}\"" ~/.config/mpv/mpv.conf
sed -i "/sub-border-color=/c\sub-border-color=\"${background:-#FFFFFF}\"" ~/.config/mpv/mpv.conf
sed -i "/sub-shadow-color=/c\sub-shadow-color=\"${background:-#FFFFFF}\"" ~/.config/mpv/mpv.conf
}
reload_cava(){
sed -i "/gradient_color_1=/c\gradient_color_1=\"${color3:-#000000}\"" ~/.config/cava/config
sed -i "/gradient_color_2=/c\gradient_color_2=\"${color4:-#000000}\"" ~/.config/cava/config
}
reload_zathura() {
sed -i "/set default-bg/c\set default-bg \"${background:-#FFFFFF}\"" ~/.config/zathura/zathurarc
sed -i "/set default-fg/c\set default-fg \"${foreground:-#FFFFFF}\"" ~/.config/zathura/zathurarc
sed -i "/set statusbar-bg/c\set statusbar-bg \"${background:-#FFFFFF}\"" ~/.config/zathura/zathurarc
sed -i "/set statusbar-fg/c\set statusbar-fg \"${foreground:-#FFFFFF}\"" ~/.config/zathura/zathurarc
sed -i "/set highlight-color/c\set highlight-color \"${color3:-#FFFFFF}\"" ~/.config/zathura/zathurarc
sed -i "/set highlight-active-color/c\set highlight-active-color \"${color4:-#FFFFFF}\"" ~/.config/zathura/zathurarc
sed -i "/set recolor-lightcolor/c\set recolor-lightcolor \"${foreground:-#FFFFFF}\"" ~/.config/zathura/zathurarc
sed -i "/set recolor-darkcolor/c\set recolor-darkcolor \"${background:-#FFFFFF}\"" ~/.config/zathura/zathurarc
sed -i "/set inputbar-bg/c\set inputbar-bg \"${background:-#FFFFFF}\"" ~/.config/zathura/zathurarc
sed -i "/set inputbar-fg/c\set inputbar-fg \"${foreground:-#FFFFFF}\"" ~/.config/zathura/zathurarc
sed -i "/set notification-bg/c\set notification-bg \"${background:-#FFFFFF}\"" ~/.config/zathura/zathurarc
sed -i "/set notification-fg/c\set notification-fg \"${foreground:-#FFFFFF}\"" ~/.config/zathura/zathurarc
}
main() {
reload_dunst
reload_mpv
reload_zathura
reload_cava
}
main