diff --git a/.config/fnott/fnott.ini b/.config/fnott/fnott.ini deleted file mode 100644 index 19e6d23..0000000 --- a/.config/fnott/fnott.ini +++ /dev/null @@ -1,39 +0,0 @@ -# -*- conf -*- - -# Global values -# output=# -# min-width=0 -# max-width=400 -# max-height=200 -# anchor=top-right -edge-margin-vertical=5 -edge-margin-horizontal=5 -notification-margin=5 -# icon-theme=hicolor -# max-icon-size=32 -selection-helper=fuzzel-run -d -# play-sound=aplay ${filename} - -# Default values, may be overridden in 'urgency' specific sections -# background=3f5f3f -# border-color=909090 -border-size=0 -title-font=sans serif:style=Italic:size=8 -# title-color=ffffff -summary-font=sans serif:style=Bold:size=16 -# summary-color=ffffff -body-font=sans serif:size=12 -# body-color=ffffff -# timeout=0 -# sound-file= - -# [low] -# background=2b2b2b -# title-color=888888 -# summary-color=888888 -# body-color=888888 - -# [normal] - -# [critical] -# background=6c3333 diff --git a/.config/fnott/juntos.mp3 b/.config/fnott/juntos.mp3 new file mode 100644 index 0000000..aeadbb8 Binary files /dev/null and b/.config/fnott/juntos.mp3 differ diff --git a/.config/river/init b/.config/river/init index b022fb1..80a083d 100755 --- a/.config/river/init +++ b/.config/river/init @@ -8,7 +8,6 @@ riverctl spawn "/usr/libexec/xdg-desktop-portal-wlr" brillo -I riverctl spawn "pgrep -x foot >/dev/null || foot --server" -riverctl spawn "killall fnott >/dev/null ; fnott" if test -f ~/.config/river/coordenadas; then riverctl spawn "pgrep -x wlsunset >/dev/null || wlsunset $(cat ~/.config/river/coordenadas)" else diff --git a/.config/river/load-colors b/.config/river/load-colors index af372f8..700fec8 100755 --- a/.config/river/load-colors +++ b/.config/river/load-colors @@ -6,6 +6,7 @@ riverctl border-color-focused 0x$border_focused riverctl border-color-unfocused 0x$border_unfocused riverctl border-width 4 +riverctl spawn "killall fnott >/dev/null ; fnott" riverctl spawn "killall river-tag-overlay >/dev/null ; river-tag-overlay \ --anchors=0:0:1:0 \ --timeout=2000 \ diff --git a/.config/themer/fnott.ini.sh b/.config/themer/fnott.ini.sh new file mode 100755 index 0000000..bf08ea0 --- /dev/null +++ b/.config/themer/fnott.ini.sh @@ -0,0 +1,61 @@ +#!/bin/sh +set -e + +# https://github.com/jan-warchol/selenized/blob/e93e0d9fb47c7485f18fa16f9bdb70c2ee7fb5db/the-values.md + +echo "# Autogenerated by ~/.config/themer/fnott.ini.sh + +edge-margin-vertical=5 +edge-margin-horizontal=5 +notification-margin=5 +selection-helper=fuzzel-run -d +play-sound=mpv \${filename} + +border-color=909090 +border-size=0 +title-font=sans serif:style=Italic:size=8 +summary-font=sans serif:style=Bold:size=16 +body-font=sans serif:size=12 +sound-file=/home/diablo/.config/fnott/juntos.mp3 +" > ~/.config/fnott/fnott.ini + +rose_pine () { + echo " + background=$base + title-color=$text + summary-color=$text + body-color=$text + " >> ~/.config/fnott/fnott.ini +} +mono () { + echo " + background=$backgroundish + title-color=$foreground + summary-color=$foreground + body-color=$foreground + " >> ~/.config/fnott/fnott.ini +} + +if test "$1" = rose-pine; then + . ~/.config/themer/themes/rose-pine.sh + rose_pine +elif test "$1" = rose-pine-dawn; then + . ~/.config/themer/themes/rose-pine-dawn.sh + rose_pine +elif test "$1" = rose-pine-moon; then + . ~/.config/themer/themes/rose-pine-moon.sh + rose_pine +elif test "$1" = mono; then + . ~/.config/themer/themes/mono.sh + mono +elif test "$1" = mono-light; then + . ~/.config/themer/themes/mono-light.sh + mono +else + if test -n "$1"; then + echo "I don't know that theme" + else + echo "No theme specified" + fi + exit 1 +fi diff --git a/.local/bin/themer b/.local/bin/themer index 9e4c67c..2bb3e2e 100755 --- a/.local/bin/themer +++ b/.local/bin/themer @@ -4,6 +4,7 @@ set -e if test -n "$1"; then ~/.config/themer/river-colors.sh "$1" ~/.config/themer/foot.ini.sh "$1" + ~/.config/themer/fnott.ini.sh "$1" ~/.config/themer/yambar.sh "$1" ~/.config/themer/fuzzel.sh "$1" ~/.config/themer/lock.sh "$1"