power menu, redshift, polybar

This commit is contained in:
azpsen
2024-01-28 16:37:10 -06:00
parent 89516a6ce1
commit 319b44ecbd
307 changed files with 7642 additions and 5 deletions

View File

@@ -0,0 +1,23 @@
# Script: player-mpris-simple
A small script that shows the current track.
![player-mpris-simple](screenshots/1.png)
## Dependencies
* [playerctl](https://github.com/acrisci/playerctl)
## Module
```ini
[module/player-mpris-simple]
type = custom/script
exec = ~/polybar-scripts/player-mpris-simple.sh
interval = 3
click-left = playerctl previous &
click-right = playerctl next &
click-middle = playerctl play-pause &
```

View File

@@ -0,0 +1,11 @@
#!/bin/sh
player_status=$(playerctl status 2> /dev/null)
if [ "$player_status" = "Playing" ]; then
echo "$(playerctl metadata artist) - $(playerctl metadata title)"
elif [ "$player_status" = "Paused" ]; then
echo "$(playerctl metadata artist) - $(playerctl metadata title)"
else
echo "󰎊"
fi

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB