90 lines
2.5 KiB
Plaintext
90 lines
2.5 KiB
Plaintext
{
|
|
"layer": "top",
|
|
// Using margin-bottom with a negative value in order to reduce the space between Hyprland window and waybar
|
|
"margin-bottom": 0,
|
|
"margin-top": 0,
|
|
"modules-left": ["custom/launcher", "cpu","memory", "network","custom/spotify", "tray"],
|
|
"modules-center": ["hyprland/workspaces"],
|
|
"modules-right": ["backlight","pulseaudio","clock", "battery", "custom/power"],
|
|
|
|
"pulseaudio": {
|
|
"tooltip": false,
|
|
"scroll-step": 5,
|
|
"format": "{icon} {volume}%",
|
|
"format-muted": "{icon} {volume}%",
|
|
"on-click":"pactl set-sink-mute @DEFAULT_SINK@ toggle",
|
|
"format-icons": {
|
|
"default": ["", "", ""]
|
|
}
|
|
},
|
|
"network": {
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
"format-wifi": "",
|
|
"format-ethernet": "",
|
|
"tooltip-format": "{essid} ({signalStrength}%)",
|
|
"format-linked": "{ifname} (No IP) ",
|
|
"format-disconnected": "⚠",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
},
|
|
"backlight": {
|
|
"tooltip": false,
|
|
"format": " {}%",
|
|
"interval":1,
|
|
"on-scroll-up": "light -A 5",
|
|
"on-scroll-down": "light -U 5"
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
"good": 95,
|
|
"warning": 30,
|
|
"critical": 20
|
|
},
|
|
"format": "{icon} {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-alt": "{time} {icon}",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
"tray":{
|
|
"icon-size":18,
|
|
"spacing": 10
|
|
},
|
|
"clock": {
|
|
"format": "{: %I:%M %p %d/%m/%Y}"
|
|
},
|
|
"cpu": {
|
|
"interval": 15,
|
|
"format": " {}%",
|
|
"max-length": 10
|
|
},
|
|
"memory": {
|
|
"interval": 30,
|
|
"format": " {}%",
|
|
"max-length": 10
|
|
},
|
|
"custom/spotify": {
|
|
"interval": 1,
|
|
"return-type": "json",
|
|
"exec": "~/.config/waybar/scripts/spotify.sh",
|
|
"exec-if": "pgrep spotify",
|
|
"escape": true
|
|
|
|
},
|
|
"custom/launcher":{
|
|
"format": "\uef46",
|
|
"on-click": "rofi -show drun",
|
|
"on-click-right": "killall rofi"
|
|
},
|
|
"custom/power":{
|
|
"format": " ",
|
|
"on-click": "bash ~/.config/rofi/leave/leave.sh",
|
|
},
|
|
// The code following below is given in the great documentation for Waybar status bar under Useful Utilities in Hyprland wiki
|
|
"hyrpland/workspaces": {
|
|
"format": "{icon}",
|
|
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
|
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
|
"on-click": "activate"
|
|
}
|
|
}
|