feat(hyprlock): update
This commit is contained in:
11
hypr/scripts/nowplaying.sh
Executable file
11
hypr/scripts/nowplaying.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
status=$(playerctl status 2>/dev/null)
|
||||
|
||||
if [ "$status" = "Playing" ]; then
|
||||
artist=$(playerctl metadata artist)
|
||||
title=$(playerctl metadata title)
|
||||
echo "$artist - $title"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
Reference in New Issue
Block a user