Hyprland dotfiles
| 1 | #!/bin/bash |
| 2 | # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## |
| 3 | # Playerctl |
| 4 | |
| 5 | music_icon="/.config/swaync/icons/music.png" |
| 6 | |
| 7 | # Play the next track |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | # Play the previous track |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | # Toggle play/pause |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | # Stop playback |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | # Display notification with song information |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | # Get media control action from command line argument |
| 44 | case "" in |
| 45 | "--nxt") |
| 46 | |
| 47 | ;; |
| 48 | "--prv") |
| 49 | |
| 50 | ;; |
| 51 | "--pause") |
| 52 | |
| 53 | ;; |
| 54 | "--stop") |
| 55 | |
| 56 | ;; |
| 57 | *) |
| 58 | |
| 59 | |
| 60 | ;; |
| 61 | esac |