1
0
Fork 0
This commit is contained in:
Luca Bilke 2023-02-09 13:13:20 +01:00
commit e01f0dfe3b
3 changed files with 7 additions and 5 deletions

View file

@ -4,6 +4,8 @@ start() {
pidof -s $1 || $@ >/dev/null 2>&1 &
}
remaps
xwallpaper --zoom "${XDG_DATA_HOME:-$HOME/.local/share/}/bg"
start playerctld daemon
start picom
start unclutter
@ -11,5 +13,3 @@ start dunst
start pipewire
start dwmblocks
start remapd
start setbg
start xwallpaper --zoom "${XDG_DATA_HOME:-$HOME/.local/share/}/bg"

View file

@ -1,6 +1,8 @@
#!/bin/sh
trap "rm -f /tmp/udev_pipe" HUP INT QUIT ILL TRAP BUS TERM
mkfifo -m 600 /tmp/udev_pipe
udevadm monitor -u -t seat -s input -s usb >> /tmp/udev_pipe &
while :; do
dmesg -W -f kern | grep "input:" -q
sleep 1
grep -q "add" /tmp/udev_pipe && grep -q " bind" /tmp/udev_pipe
remaps us:dvorak
done

View file

@ -2,7 +2,7 @@
pidof -x sbd-playerctl >/dev/null 2>&1 || sbd-playerctl >/dev/null 2>&1 &
[ "$(playerctl status 2>&1)" = "No players found" ] && echo ""ﱙ && exit 1
# song="$(playerctl metadata xesam:artist) - $(playerctl metadata xesam:title)"
song="$(playerctl metadata xesam:title)"
song="$(playerctl metadata xesam:title) - $(playerctl metadata xesam:artist)"
[ ${#song} -gt 35 ] && song="$(printf %.35s "$song")…"
icon=$(playerctl status | sed "s/Playing//;s/Paused//;")
echo "$icon $song"