Added new mediaplayer script for waybar
This commit is contained in:
parent
2b15ddf18e
commit
8b06f68da7
10 changed files with 142 additions and 234 deletions
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
"layer": "bottom", // Waybar at top layer
|
||||
"height": 22, // Waybar height
|
||||
"modules-left": ["sway/workspaces", "sway/mode", "custom/playerctl"],
|
||||
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
|
||||
"modules-center": ["sway/window"],
|
||||
"modules-right": [
|
||||
"idle_inhibitor",
|
||||
|
@ -107,12 +107,12 @@
|
|||
"on-scroll-up": "pamixer -ui 1 && pamixer --get-volume > $SWAYSOCK.wob",
|
||||
"on-scroll-down": "pamixer -ud 1 && pamixer --get-volume > $SWAYSOCK.wob"
|
||||
},
|
||||
"custom/playerctl": {
|
||||
"custom/media": {
|
||||
"tooltip": false,
|
||||
"format": "{}",
|
||||
"exec": "$HOME/Scripts/metadata.sh",
|
||||
"interval": 2,
|
||||
"max-length": 40,
|
||||
"return-type": "json",
|
||||
"exec": "$HOME/Scripts/mediaplayer.py 2>/dev/null",
|
||||
"max-length": 50,
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-click-right": "playerctl next",
|
||||
"on-scroll-up": "playerctl volume 0.05+",
|
||||
|
@ -123,7 +123,7 @@
|
|||
"format": "{} ",
|
||||
"exec": "yay -Qu | wc -l",
|
||||
"interval": 300,
|
||||
"on-click": "alacritty -e yay"
|
||||
"on-click": "gnome-software --mode=updates"
|
||||
},
|
||||
"temperature": {
|
||||
"format": "{temperatureC}°C "
|
||||
|
|
|
@ -26,7 +26,7 @@ window#waybar {
|
|||
background: #64727D;
|
||||
}
|
||||
|
||||
#clock, #battery, #cpu, #temperature, #memory, #backlight, #network, #pulseaudio, #custom-playerctl, #custom-yay, #tray, #mode, #idle_inhibitor {
|
||||
#clock, #battery, #cpu, #temperature, #memory, #backlight, #network, #pulseaudio, #custom-media, #custom-yay, #tray, #mode, #idle_inhibitor {
|
||||
padding: 0 10px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ window#waybar {
|
|||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#custom-playerctl {
|
||||
#custom-media {
|
||||
background: #97B084;
|
||||
color: black;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue