add hyprland and scripts

This commit is contained in:
tristan 2023-04-14 16:36:53 +01:00
parent 83ed8e6997
commit d54d6c376c
6 changed files with 199 additions and 7 deletions

11
scripts/play-pause Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
if [ "$(playerctl --list-all | wc -l)" -lt 2 ]
then
playerctl play-pause
else
playerctl --list-all | \
xargs -I _ playerctl --player _ metadata --format '_ - {{title}}' | \
wofi --dmenu | awk '{print $1}' | \
xargs -I _ playerctl --player _ play-pause
fi