Spotifyd fixes
This commit is contained in:
parent
864e005dba
commit
5f6a576d7f
@ -2,7 +2,7 @@
|
||||
"position": "top",
|
||||
"spacing": 0,
|
||||
"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"],
|
||||
|
||||
"clock": {
|
||||
@ -24,13 +24,14 @@
|
||||
"critical-threshold": 70,
|
||||
"format": " {temperatureC}°C "
|
||||
},
|
||||
"custom/spotify": {
|
||||
"exec": "/home/logan/scripts/mediaplayer.py --player spotifyd",
|
||||
"format": "{} ",
|
||||
"custom/spotifyd": {
|
||||
"format": " {}",
|
||||
"return-type": "json",
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-scroll-up": "playerctl next",
|
||||
"on-scroll-down": "playerctl previous"
|
||||
"exec": "spdcon -o waybar",
|
||||
"on-click": "spdcon -c PlayPause",
|
||||
"on-click-right": "spdcon -c Next",
|
||||
"on-click-middle": "spdcon -c Previous",
|
||||
"interval": 2,
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
|
@ -23,7 +23,7 @@ window#waybar {
|
||||
|
||||
/* 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;
|
||||
margin: 0px 5px;
|
||||
background: #fbf1c7;
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -44,3 +44,5 @@
|
||||
|
||||
!.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
|
||||
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