mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-16 15:36:11 +01:00
final theming scripts and modification
This commit is contained in:
22
mako/.config/mako/config
Normal file
22
mako/.config/mako/config
Normal file
@@ -0,0 +1,22 @@
|
||||
sort=-time
|
||||
layer=overlay
|
||||
background-color=#0b0c16
|
||||
width=300
|
||||
height=110
|
||||
border-size=3
|
||||
text-color=#c2c2c4
|
||||
border-color=#2D8FCB
|
||||
border-radius=10
|
||||
icons=1
|
||||
padding=24
|
||||
max-icon-size=64
|
||||
default-timeout=5000
|
||||
ignore-timeout=1
|
||||
font=CartographCF Nerd Font 11
|
||||
|
||||
[urgency=high]
|
||||
default-timeout=0
|
||||
|
||||
[category=mpd]
|
||||
default-timeout=2000
|
||||
group-by=category
|
||||
22
mako/.config/mako/update-colors.sh
Executable file
22
mako/.config/mako/update-colors.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
. "${HOME}/.cache/wal/colors.sh"
|
||||
|
||||
conffile="${HOME}/.config/mako/config"
|
||||
|
||||
# Associative array, color name -> color code.
|
||||
declare -A colors
|
||||
colors=(
|
||||
["background-color"]="$background"
|
||||
["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
|
||||
|
||||
notify-send "Wallpaper and colors updated"
|
||||
22
mako/.config/mako/update-theme.sh
Executable file
22
mako/.config/mako/update-theme.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
. "${HOME}/.cache/wal/colors.sh"
|
||||
|
||||
conffile="${HOME}/.config/mako/config"
|
||||
|
||||
# Associative array, color name -> color code.
|
||||
declare -A colors
|
||||
colors=(
|
||||
["background-color"]="$background"
|
||||
["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
|
||||
|
||||
notify-send "Wallpaper and colors updated"
|
||||
Reference in New Issue
Block a user