Added Hyprland versions of some modules

This commit is contained in:
Logan G 2023-04-08 04:07:31 -06:00
parent 1c95378767
commit d65c01d594
Signed by: logan
GPG key ID: E328528C921E7A7A
2 changed files with 39 additions and 1 deletions

View file

@ -6,7 +6,7 @@
"modules-left": ["wlr/workspaces"], "modules-left": ["wlr/workspaces"],
"modules-center": ["hyprland/window"], "modules-center": ["hyprland/window"],
//"modules-right": ["tray", "custom/spotify", "custom/weather", "custom/mail", "custom/storage", "backlight", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"], //"modules-right": ["tray", "custom/spotify", "custom/weather", "custom/mail", "custom/storage", "backlight", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"],
"modules-right": ["pulseaudio", "backlight", "idle_inhibitor", "network", "battery", "clock", "tray"], "modules-right": ["pulseaudio#hyprland", "backlight", "idle_inhibitor", "network#hyprland", "battery", "clock", "tray"],
"include": "~/.config/waybar/modules", "include": "~/.config/waybar/modules",
} }

View file

@ -88,6 +88,30 @@
"tooltip-format-disconnected": "Disconnected", "tooltip-format-disconnected": "Disconnected",
}, },
"network#hyprland": {
"format": "{icon}",
"format-alt": "{icon} {signalStrength}%",
"format-alt-click": "click-middle",
"format-icons": {
"wifi": [""],
"ethernet": [""],
"disconnected": [""],
"linked": [""]
},
"interval": 10,
"on-click": "networkmanager_wofi",
"on-click-right": "hyprctl dispatch exec [float] -- foot -W 80x24 -e nmtui",
"tooltip": true,
"tooltip-format": "Connected via {ifname}\nIP: {ipaddr}/{cidr}\nBandwidth: {bandwidthDownBits} | {bandwidthUpBits}",
"tooltip-format-wifi": "Connected to {essid} on {ifname}\nSignal Strength: {signalStrength}% ({signaldBm}dBm)\nIP: {ipaddr}/{cidr}\nBandwidth: {bandwidthDownBits} | {bandwidthUpBits}",
"tooltip-format-disconnected": "Disconnected",
},
"pulseaudio": { "pulseaudio": {
"format": "{icon} {volume}%", "format": "{icon} {volume}%",
"format-alt": "{icon}", "format-alt": "{icon}",
@ -102,6 +126,20 @@
"tooltip": false "tooltip": false
}, },
"pulseaudio#hyprland": {
"format": "{icon} {volume}%",
"format-alt": "{icon}",
"format-alt-click": "click-right",
"format-muted": "ﱝ",
"format-icons": {
//"phone": [" ", " ", " ", " "],
"default": ["奄", "奔", "墳"]
},
"scroll-step": 5,
"on-click": "hyprctl dispatch exec [float] -- pavucontrol-qt",
"tooltip": false
},
"custom/spotify": { "custom/spotify": {
"interval": 1, "interval": 1,
"return-type": "json", "return-type": "json",