Add mpris and fixes to waybar config
This commit is contained in:
parent
d95efe4d73
commit
249e35cbc0
4 changed files with 46 additions and 16 deletions
|
@ -1,12 +1,13 @@
|
||||||
{
|
{
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"position": "bottom",
|
"position": "bottom",
|
||||||
"height": 24,
|
"height": 28,
|
||||||
"spacing": 6,
|
"spacing": 6,
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"hyprland/workspaces"
|
"hyprland/workspaces"
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
|
"mpris"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"network",
|
"network",
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
updates=$(checkupdates)
|
updates=$(checkupdates)
|
||||||
text=$(echo "$updates" | wc -l)
|
text=$(echo "$updates" | wc -l)
|
||||||
tooltip=$(echo "$updates" | sed 's/$/\\n/' | tr -d '\n' | sed 's/\\n$//')
|
tooltip=$(echo "$updates" | sed 's/$/\\n/' | tr -d '\n' | sed 's/\\n$//')
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"hyprland/workspaces": {
|
"hyprland/workspaces": {
|
||||||
"on-click": "activate",
|
"on-click": "activate",
|
||||||
"all-outputs": true,
|
"all-outputs": true,
|
||||||
"sort-by-number": true,
|
"sort-by-number": true
|
||||||
},
|
},
|
||||||
"hyprland/window": {
|
"hyprland/window": {
|
||||||
"max-length": 128
|
"max-length": 128
|
||||||
|
@ -18,6 +18,29 @@
|
||||||
"memory": {
|
"memory": {
|
||||||
"format": " {percentage}%"
|
"format": " {percentage}%"
|
||||||
},
|
},
|
||||||
|
"mpris": {
|
||||||
|
"format": "{player_icon} {status_icon} {dynamic}",
|
||||||
|
"interval": 5,
|
||||||
|
"dynamic-order": [
|
||||||
|
"title",
|
||||||
|
"artist",
|
||||||
|
"position",
|
||||||
|
"length"
|
||||||
|
],
|
||||||
|
"player-icons": {
|
||||||
|
"default": "",
|
||||||
|
"chromium": "",
|
||||||
|
"firefox": "",
|
||||||
|
"spotify": "",
|
||||||
|
"spotifyd": "",
|
||||||
|
"vlc": ""
|
||||||
|
},
|
||||||
|
"status-icons": {
|
||||||
|
"paused": "",
|
||||||
|
"playing": "",
|
||||||
|
"stopped": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"network": {
|
"network": {
|
||||||
"format": " {ipaddr}"
|
"format": " {ipaddr}"
|
||||||
},
|
},
|
||||||
|
|
|
@ -27,10 +27,14 @@ window#waybar {
|
||||||
border-bottom: solid 2px @pink;
|
border-bottom: solid 2px @pink;
|
||||||
}
|
}
|
||||||
|
|
||||||
#network {
|
#mpris {
|
||||||
border-bottom: solid 2px @green;
|
border-bottom: solid 2px @green;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#network {
|
||||||
|
border-bottom: solid 2px @yellow;
|
||||||
|
}
|
||||||
|
|
||||||
#temperature {
|
#temperature {
|
||||||
border-bottom: solid 2px @red;
|
border-bottom: solid 2px @red;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue