dots

git clone git://mattcarlson.org/repos/dots.git
Log | Files | Refs

commit a716a1ab7005f6f4df6c63556ca7d740b9b16208
parent 2e26ae673dce4df5ccad210577475cb916beb038
Author: Matthew Carlson <matt@mcarlson.xyz>
Date:   Thu, 29 Jul 2021 21:27:25 -0400

added wpg keyword so sed in wp.sh not needed

Diffstat:
M.config/mutt/muttrc | 3+++
A.config/wpg/wpg.conf | 16++++++++++++++++
M.local/bin/wp.sh | 12------------
3 files changed, 19 insertions(+), 12 deletions(-)

diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc @@ -40,9 +40,12 @@ color body bold color2 default "(https?|ftp)://[\-\.,/%~_:?&=\#a-z color body bold color2 default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" color error bold color1 default color hdrdefault bold color2 default +color index bold default default '~N' +color index_author bold default default '~N' color index_date color2 default color index_number color2 default color index_size color2 default +color index_subject bold default default '~N' color indicator bold color0 color2 color markers color2 default color normal color7 default diff --git a/.config/wpg/wpg.conf b/.config/wpg/wpg.conf @@ -0,0 +1,16 @@ +[settings] +set_wallpaper = true +gtk = true +active = 0 +light_theme = false +editor = +execute_cmd = false +command = +backend = wal +alpha = 100 +smart_sort = true +auto_adjust = false +reload = true + +[keywords] +active = {color2} diff --git a/.local/bin/wp.sh b/.local/bin/wp.sh @@ -10,8 +10,6 @@ COLORS="${XDG_CACHE_HOME:-${HOME}/.cache}/wal/colors.sh" DEFAULTFG=259 # xresources handles suckless vars XRESOURCES="${XDG_CONFIG_HOME:-${HOME}/.config}/x/xresources" -TMP='/tmp/xsettingsd' -FLATCOLOR="${XDG_DATA_HOME:-${HOME}/.local/share}/themes/FlatColor/gtk-3.20/gtk.css" # get random valid file in dir get_rand_file() { @@ -89,13 +87,6 @@ theme() { # gen new theme with wpg (uses pywal) wpg -a "${file}" && wpg -ns "${file}" - # fix colors for gtk - printf '%s\n' "$(sed 's/\@define-color selected_bg_color.*/\@define-color selected_bg_color @color2;/g' "${FLATCOLOR}")" > "${FLATCOLOR}" - - # xsettingsd to live reload gtk with correct color - printf "Net/ThemeName \"FlatColor\"" > "${TMP}" - xsettingsd -c "${TMP}" & - [ -f "${COLORS}" ] && . "${COLORS}" set -- "${color0}" "${color1}" "${color2}" "${color3}" "${color4}" "${color5}" "${color6}" "${color7}" \ @@ -127,9 +118,6 @@ theme() { # zathura zathura-pywal - - # rm xsettingsd tmp later b/c it complains otherwise - rm -f "${TMP}" } main() {