From f4282e5a6a437acdc76b16049cb35eb14256913a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 20 Aug 2021 14:06:41 +0300 Subject: foot: sound alert Retarded ffplay started drawing a gui window after an update. Added -nodisp flag. --- dotfiles/.config/foot/foot.ini | 2 +- dotfiles/.local/bin/ddvk | 12 ------------ dotfiles/.local/bin/vifm_launch | 15 --------------- 3 files changed, 1 insertion(+), 28 deletions(-) delete mode 100755 dotfiles/.local/bin/ddvk delete mode 100755 dotfiles/.local/bin/vifm_launch 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 -- cgit v1.2.3