Add player module and sway mode
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"modules-left": ["sway/workspaces"],
|
"modules-left": ["sway/workspaces", "custom/player", "sway/mode"],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"custom/weather",
|
"custom/weather",
|
||||||
"custom/pacman-updates",
|
"custom/pacman-updates",
|
||||||
@@ -15,16 +15,31 @@
|
|||||||
"all-output": true,
|
"all-output": true,
|
||||||
"format": "{index}"
|
"format": "{index}"
|
||||||
},
|
},
|
||||||
|
"custom/player": {
|
||||||
|
"exec": "playerctl metadata -f '{{emoji(status)}} {{title}} by {{artist}}'",
|
||||||
|
"on-click": "playerctl play-pause",
|
||||||
|
"on-click-right": "pamixer -t",
|
||||||
|
"restart-interval": 0,
|
||||||
|
"tooltip": false,
|
||||||
|
"max-length": 40
|
||||||
|
},
|
||||||
|
"sway/mode": {
|
||||||
|
"format": "--{}--"
|
||||||
|
},
|
||||||
|
|
||||||
"custom/weather": {
|
"custom/weather": {
|
||||||
"exec": "curl 'https://wttr.in/?format=1'",
|
"exec": "curl 'https://wttr.in/?format=1'",
|
||||||
"interval": 60
|
"interval": 60,
|
||||||
|
"on-click": "firefox https://wttr.in",
|
||||||
|
"tooltip": false
|
||||||
},
|
},
|
||||||
"custom/pacman-updates": {
|
"custom/pacman-updates": {
|
||||||
"exec": "pacman -Qu | wc -l",
|
"exec": "pacman -Qu | wc -l",
|
||||||
"interval": 60,
|
"interval": 60,
|
||||||
"return-type": "{}",
|
"return-type": "{}",
|
||||||
"format": "{} updates"
|
"format": "{} updates",
|
||||||
|
"on-click": "alacritty -e sudo pacman -Syu",
|
||||||
|
"tooltip": false
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
|
|||||||
@@ -27,9 +27,14 @@ window#waybar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#workspaces button.urgent {
|
||||||
background: #ffa579;
|
background: #ffa759;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#mode {
|
||||||
|
color: #ffa759;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-player,
|
||||||
#custom-weather,
|
#custom-weather,
|
||||||
#custom-pacman-updates,
|
#custom-pacman-updates,
|
||||||
#clock,
|
#clock,
|
||||||
|
|||||||
Reference in New Issue
Block a user