add mako wal styling
This commit is contained in:
27
config/mako/config
Normal file
27
config/mako/config
Normal file
@@ -0,0 +1,27 @@
|
||||
sort=-time
|
||||
layer=overlay
|
||||
background-color=#0a070c89
|
||||
width=300
|
||||
height=110
|
||||
border-size=2
|
||||
border-color=#E88889
|
||||
border-radius=4
|
||||
icons=0
|
||||
max-icon-size=64
|
||||
default-timeout=8000
|
||||
ignore-timeout=0
|
||||
font=monospace 14
|
||||
|
||||
[urgency=low]
|
||||
#border-color=#cccccc
|
||||
|
||||
[urgency=normal]
|
||||
#border-color=#d08770
|
||||
|
||||
[urgency=high]
|
||||
border-color=#bf616a
|
||||
default-timeout=0
|
||||
|
||||
[category=mpd]
|
||||
default-timeout=2000
|
||||
group-by=category
|
||||
20
config/mako/update_theme.sh
Executable file
20
config/mako/update_theme.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
. "${HOME}/.cache/wal/colors.sh"
|
||||
|
||||
conffile="${HOME}/.config/mako/config"
|
||||
|
||||
# Associative array, color name -> color code.
|
||||
declare -A colors
|
||||
colors=(
|
||||
["background-color"]="${background}89"
|
||||
["text-color"]="$foreground"
|
||||
["border-color"]="$color13"
|
||||
)
|
||||
|
||||
for color_name in "${!colors[@]}"; do
|
||||
# replace first occurance of each color in config file
|
||||
sed -i "0,/^$color_name.*/{s//$color_name=${colors[$color_name]}/}" $conffile
|
||||
done
|
||||
|
||||
makoctl reload
|
||||
Reference in New Issue
Block a user