Merge branch 'main' of https://git.snaile.de/luca/dotfiles
This commit is contained in:
commit
e01f0dfe3b
3 changed files with 7 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue