2020-07-06 11:57:43 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-07-25 17:38:45 +02:00
|
|
|
xrdb -override "$XDG_CONFIG_HOME/x/$1"
|
2020-07-06 11:57:43 +02:00
|
|
|
|
2020-10-01 14:29:27 +02:00
|
|
|
# send color mode signal
|
2020-07-06 11:57:43 +02:00
|
|
|
pkill -USR1 'qutebrowser|urxvt'
|
2020-11-18 00:48:14 +01:00
|
|
|
pkill dunst
|
2020-07-08 11:53:43 +02:00
|
|
|
|
2020-10-01 14:29:27 +02:00
|
|
|
# update bspwm colors
|
|
|
|
"$XDG_CONFIG_HOME"/bspwm/bspwmrc
|
2020-07-08 11:53:43 +02:00
|
|
|
|
2020-10-01 14:29:27 +02:00
|
|
|
# regenerate configs
|
2021-06-22 20:06:29 +02:00
|
|
|
expand='s/(.*)@(\w+)/echo -n "\1"\\"$(xrdb -get \2)\\"/; /\$/e'
|
2020-10-01 14:29:27 +02:00
|
|
|
sed -r "$expand" "$XDG_CONFIG_HOME/zathura/zathurarc.in" > "$XDG_CONFIG_HOME/zathura/zathurarc"
|
|
|
|
sed -r "$expand" "$XDG_CONFIG_HOME/dunst/dunstrc.in" > "$XDG_CONFIG_HOME/dunst/dunstrc"
|
2020-07-08 11:53:43 +02:00
|
|
|
|
2021-11-26 15:11:11 +01:00
|
|
|
# toggle nheko theme
|
|
|
|
theme="${1%dark}"
|
|
|
|
sed -i "s/theme=.*/theme=${theme:-dawn}/" "$XDG_CONFIG_HOME/nheko.conf"
|
|
|
|
|
2021-06-22 20:06:29 +02:00
|
|
|
xsetroot -fg "$(xrdb -get root.foreground)" \
|
|
|
|
-bg "$(xrdb -get root.background)" \
|
2023-02-05 02:08:37 +01:00
|
|
|
-bitmap ~/img/tiles/arrows.xbm \
|