Spotifyd fixes
This commit is contained in:
parent
864e005dba
commit
5f6a576d7f
@ -2,7 +2,7 @@
|
|||||||
"position": "top",
|
"position": "top",
|
||||||
"spacing": 0,
|
"spacing": 0,
|
||||||
"modules-left": ["network", "clock"],
|
"modules-left": ["network", "clock"],
|
||||||
"modules-center": ["sway/workspaces", "custom/spotify"],
|
"modules-center": ["sway/workspaces", "custom/spotifyd"],
|
||||||
"modules-right": ["pulseaudio", "memory", "cpu", "temperature#cpu", "backlight", "battery"],
|
"modules-right": ["pulseaudio", "memory", "cpu", "temperature#cpu", "backlight", "battery"],
|
||||||
|
|
||||||
"clock": {
|
"clock": {
|
||||||
@ -24,13 +24,14 @@
|
|||||||
"critical-threshold": 70,
|
"critical-threshold": 70,
|
||||||
"format": " {temperatureC}°C "
|
"format": " {temperatureC}°C "
|
||||||
},
|
},
|
||||||
"custom/spotify": {
|
"custom/spotifyd": {
|
||||||
"exec": "/home/logan/scripts/mediaplayer.py --player spotifyd",
|
"format": " {}",
|
||||||
"format": "{} ",
|
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"on-click": "playerctl play-pause",
|
"exec": "spdcon -o waybar",
|
||||||
"on-scroll-up": "playerctl next",
|
"on-click": "spdcon -c PlayPause",
|
||||||
"on-scroll-down": "playerctl previous"
|
"on-click-right": "spdcon -c Next",
|
||||||
|
"on-click-middle": "spdcon -c Previous",
|
||||||
|
"interval": 2,
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"states": {
|
"states": {
|
||||||
|
@ -23,7 +23,7 @@ window#waybar {
|
|||||||
|
|
||||||
/* Modules */
|
/* Modules */
|
||||||
|
|
||||||
#clock, #battery, #cpu, #memory, #disk, #temperature, #backlight, #network, #pulseaudio, #custom-media, #custom-launcher, #custom-power, #tray, #mode, #idle_inhibitor , #mpd, .custom-spotifyd {
|
#clock, #battery, #cpu, #memory, #disk, #temperature, #backlight, #network, #pulseaudio, #custom-media, #custom-launcher, #custom-power, #tray, #mode, #idle_inhibitor , #mpd, .spdcon {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
margin: 0px 5px;
|
margin: 0px 5px;
|
||||||
background: #fbf1c7;
|
background: #fbf1c7;
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -44,3 +44,5 @@
|
|||||||
|
|
||||||
!.stumpwm.d
|
!.stumpwm.d
|
||||||
!.stumpwm.d/*
|
!.stumpwm.d/*
|
||||||
|
|
||||||
|
!NOTES.md
|
||||||
|
5
NOTES.md
Normal file
5
NOTES.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Spotify
|
||||||
|
- Spotifyd
|
||||||
|
- [spdcon](https://github.com/seabassapologist/untitled-spotifyd-controller)
|
||||||
|
+ Had to change $class to "spdcon" in spdcon.go
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
song=$(playerctl metadata --format "{{ title }}\n{{ artist }}\n{{ album }}")
|
song=$(playerctl metadata --format "{{ title }}\n{{ artist }}\n{{ album }}")
|
||||||
notify-send "Spotify" "$song" #--icon=~/.config/spotifyd/penguin.jpg
|
notify-send "Now Playing" "$song" #--icon=~/.config/spotifyd/penguin.jpg
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user