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,16 @@
# Script: player-moc
A small script that shows the current song. You can also control mocp.
## Module
```ini
[module/player-moc]
type = custom/script
exec = ~/polybar-scripts/player-moc.sh
interval = 3
click-left = mocp -f &
click-right = mocp -r &
click-middle = mocp -G &
```

View File

@@ -0,0 +1,13 @@
#!/bin/sh
if [ "$(mocp -Q %state)" != "STOP" ];then
SONG=$(mocp -Q %song)
if [ -n "$SONG" ]; then
echo "$SONG - $(mocp -Q %album)"
else
basename "$(mocp -Q %file)"
fi
else
echo ""
fi