diff options
| author | Xander Swan <email> | 2025-12-03 10:00:41 -0500 |
|---|---|---|
| committer | Xander Swan <email> | 2025-12-03 10:00:41 -0500 |
| commit | 3711f22b6c37202ee25a5359e198a230788967c6 (patch) | |
| tree | 44120561e21cfa41fb09803a4fa2228fc65c2214 /.config/i3/music.lua | |
| parent | 2bc298723af1360491c63ca55e846820ce65ddbc (diff) | |
Polybar
Diffstat (limited to '.config/i3/music.lua')
| -rw-r--r-- | .config/i3/music.lua | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/.config/i3/music.lua b/.config/i3/music.lua deleted file mode 100644 index 5f60a4b..0000000 --- a/.config/i3/music.lua +++ /dev/null @@ -1,18 +0,0 @@ -local shell_utils = require("shellutils") - -local status = shell_utils.get_output("playerctl status") -local song = shell_utils.get_output("playerctl metadata title") -local artist = shell_utils.get_output("playerctl metadata artist") -local album = shell_utils.get_output("playerctl metadata album") - -if #album ~= 0 then - album = ("from %s "):format(album) -end - -if status == "Playing" then - print((" Playing | %s by %s %s"):format(song, artist, album)) -elseif status == "Paused" then - print((" Paused | %s by %s %s"):format(song, artist, album)) -else - print((" Stopped "):format(status)) -end |
