aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-08-20 14:06:41 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-08-20 14:06:41 +0300
commitf4282e5a6a437acdc76b16049cb35eb14256913a (patch)
tree93e72f2b1f7ea669ae3f0200971b3d35564fff7a /dotfiles
parentbddebc4144b1262d40d6fd26d5e98aeb51b0202f (diff)
downloadswayrice-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.ini2
-rwxr-xr-xdotfiles/.local/bin/ddvk12
-rwxr-xr-xdotfiles/.local/bin/vifm_launch15
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