fnott: Agregar a themer y reproducir sonido
This commit is contained in:
parent
375043423e
commit
b3740bc428
6 changed files with 63 additions and 40 deletions
|
@ -1,39 +0,0 @@
|
||||||
# -*- conf -*-
|
|
||||||
|
|
||||||
# Global values
|
|
||||||
# output=<undefined>#
|
|
||||||
# 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
|
|
BIN
.config/fnott/juntos.mp3
Normal file
BIN
.config/fnott/juntos.mp3
Normal file
Binary file not shown.
|
@ -8,7 +8,6 @@ riverctl spawn "/usr/libexec/xdg-desktop-portal-wlr"
|
||||||
|
|
||||||
brillo -I
|
brillo -I
|
||||||
riverctl spawn "pgrep -x foot >/dev/null || foot --server"
|
riverctl spawn "pgrep -x foot >/dev/null || foot --server"
|
||||||
riverctl spawn "killall fnott >/dev/null ; fnott"
|
|
||||||
if test -f ~/.config/river/coordenadas; then
|
if test -f ~/.config/river/coordenadas; then
|
||||||
riverctl spawn "pgrep -x wlsunset >/dev/null || wlsunset $(cat ~/.config/river/coordenadas)"
|
riverctl spawn "pgrep -x wlsunset >/dev/null || wlsunset $(cat ~/.config/river/coordenadas)"
|
||||||
else
|
else
|
||||||
|
|
|
@ -6,6 +6,7 @@ riverctl border-color-focused 0x$border_focused
|
||||||
riverctl border-color-unfocused 0x$border_unfocused
|
riverctl border-color-unfocused 0x$border_unfocused
|
||||||
riverctl border-width 4
|
riverctl border-width 4
|
||||||
|
|
||||||
|
riverctl spawn "killall fnott >/dev/null ; fnott"
|
||||||
riverctl spawn "killall river-tag-overlay >/dev/null ; river-tag-overlay \
|
riverctl spawn "killall river-tag-overlay >/dev/null ; river-tag-overlay \
|
||||||
--anchors=0:0:1:0 \
|
--anchors=0:0:1:0 \
|
||||||
--timeout=2000 \
|
--timeout=2000 \
|
||||||
|
|
61
.config/themer/fnott.ini.sh
Executable file
61
.config/themer/fnott.ini.sh
Executable file
|
@ -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
|
|
@ -4,6 +4,7 @@ set -e
|
||||||
if test -n "$1"; then
|
if test -n "$1"; then
|
||||||
~/.config/themer/river-colors.sh "$1"
|
~/.config/themer/river-colors.sh "$1"
|
||||||
~/.config/themer/foot.ini.sh "$1"
|
~/.config/themer/foot.ini.sh "$1"
|
||||||
|
~/.config/themer/fnott.ini.sh "$1"
|
||||||
~/.config/themer/yambar.sh "$1"
|
~/.config/themer/yambar.sh "$1"
|
||||||
~/.config/themer/fuzzel.sh "$1"
|
~/.config/themer/fuzzel.sh "$1"
|
||||||
~/.config/themer/lock.sh "$1"
|
~/.config/themer/lock.sh "$1"
|
||||||
|
|
Loading…
Reference in a new issue