diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-08-20 14:06:41 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-08-20 14:06:41 +0300 |
commit | f4282e5a6a437acdc76b16049cb35eb14256913a (patch) | |
tree | 93e72f2b1f7ea669ae3f0200971b3d35564fff7a /dotfiles | |
parent | bddebc4144b1262d40d6fd26d5e98aeb51b0202f (diff) | |
download | swayrice-f4282e5a6a437acdc76b16049cb35eb14256913a.tar.gz swayrice-f4282e5a6a437acdc76b16049cb35eb14256913a.zip |
foot: sound alert
Retarded ffplay started drawing a gui window after an update. Added
-nodisp flag.
Diffstat (limited to 'dotfiles')
-rw-r--r-- | dotfiles/.config/foot/foot.ini | 2 | ||||
-rwxr-xr-x | dotfiles/.local/bin/ddvk | 12 | ||||
-rwxr-xr-x | dotfiles/.local/bin/vifm_launch | 15 |
3 files changed, 1 insertions, 28 deletions
diff --git a/dotfiles/.config/foot/foot.ini b/dotfiles/.config/foot/foot.ini index d08eeb5..7230d0e 100644 --- a/dotfiles/.config/foot/foot.ini +++ b/dotfiles/.config/foot/foot.ini @@ -33,5 +33,5 @@ osc8-underline = always [bell] urgent = yes -command = mpv /home/yaroslav/.local/share/soundalerts/ding.ogg +command = ffplay -nodisp -loglevel 8 -autoexit -i /home/yaroslav/.local/share/soundalerts/ding.ogg command-focused = yes diff --git a/dotfiles/.local/bin/ddvk b/dotfiles/.local/bin/ddvk deleted file mode 100755 index 1161f3e..0000000 --- a/dotfiles/.local/bin/ddvk +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -if pidof vk > /dev/null; then - if [ -z $(swaymsg -t get_tree | grep -B 6 'vk' | head -n 1 | grep 'true') ]; then - swaymsg '[instance="vk"] scratchpad show' - else - swaymsg '[instance="vk"] move scratchpad' - fi -else - vk-messenger -fi - diff --git a/dotfiles/.local/bin/vifm_launch b/dotfiles/.local/bin/vifm_launch deleted file mode 100755 index 07b6473..0000000 --- a/dotfiles/.local/bin/vifm_launch +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -export FIFO_UEBERZUG="/tmp/vifm-ueberzug-${PPID}" - -function cleanup { - rm "$FIFO_UEBERZUG" 2>/dev/null - pkill -P $$ 2>/dev/null -} - -rm "$FIFO_UEBERZUG" 2>/dev/null -mkfifo "$FIFO_UEBERZUG" -trap cleanup EXIT -tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser bash & - -vifm -cleanup |