You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
4.5 KiB
Plaintext

{
"layer": "top", // Waybar at top layer
"output": "eDP-1",
"position": "top", // Waybar position (top|bottom|left|right)
"height": 5,
"margin": "0 0 0 0",
//"width": 1350, // Waybar width
// Choose the order of the modules idle_inhibitor
"modules-left": ["hyprland/workspaces", "custom/spotify", "tray"],
"modules-center": ["clock"],
"modules-right": ["backlight", "pulseaudio", "temperature", "cpu", "memory", "battery", "network" ],
"hyprland/workspaces": {
"format": "{icon}",
"sort-by-number": true,
"active-only": false,
"format-icons": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9",
"10": "0",
"urgent": "",
"focused": "",
"default": ""
},
"on-click": "activate",
},
"mpd": {
"tooltip": true,
"tooltip-format": "{artist} - {album} - {title} - Total Time : {totalTime:%M:%S}",
"format": " {elapsedTime:%M:%S}",
"format-disconnected": "⚠ Disconnected",
"format-stopped": " Not Playing",
"on-click": "mpc toggle",
"state-icons": {
"playing": "",
"paused": ""
}
},
"custom/mpd": {
"format": " {title} - {artist}",
"interval": 5,
"exec": "mpc current --format='\"title\":\"%title%\",\"artist\":\"%artist%\"'"
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"sway/window": {
"format": "~ {app_id}",
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
"icon-size": 18,
"spacing": 8
},
"clock": {
"tooltip-format": "{:%A %d %B | %H:%M}",
"format": " {:%Y-%m-%d  %H:%M:%OS}",
"format-alt": " {:%Y %b %d %a  %H:%M:%OS}",
"interval": 1
},
"cpu": {
"format": " {usage:02}",
"interval": 2,
"on-click": "kitty -e htop"
},
"memory": {
"format": " {used:0.2f}",
"on-click": "kitty -e htop"
},
"temperature": {
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
"critical-threshold": 80,
"format": " {temperatureC}°C"
},
"backlight": {
"format": "{icon} {percent: >3}%",
"format-icons": ["", ""],
"on-scroll-down": "brightnessctl -c backlight set 1%-",
"on-scroll-up": "brightnessctl -c backlight set +1%"
},
"battery": {
"states": {
"good": 90,
"warning": 30,
"critical": 15
},
"format": "\uf1e6",
"format-discharging": "{icon} {capacity: >3}% {power:0.1f}W",
"format-charging": "\uf1e6 {capacity: >3}% {power:0.1f}W",
"interval": 3,
"format-icons": ["", "", "", "", ""]
//"format-icons": ["", "", "", "", "", "", "", "", "", ""]
},
"network": {
// "interface": "wlp2s0", // (Optional) To force the use of this interface
"format": "⚠ Disabled",
"format-wifi": " {essid}",
// "format-ethernet": " {ifname}: {ipaddr}/{cidr}",
"format-ethernet": " Wired",
"format-disconnected": "⚠ Disconnected",
// "on-click": "alacritty -e nmtui"
"on-click": "nm-connection-editor"
},
"pulseaudio": {
"scroll-step": 1,
"format": "{icon} {volume: >3}%",
"format-bluetooth": "{icon} {volume: >3}%",
"format-muted":" muted",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"on-click": "pavucontrol",
"on-scroll-up": "~/.config/hypr/scripts/volume --inc",
"on-scroll-down": "~/.config/hypr/scripts/volume --dec"
},
"custom/pacman": {
"format": " {}",
"interval": 7200, // every two hours
"exec": "i=$(checkupdates); echo \"$i\" |wc -l; echo \"$i\" |column -t |tr '\n' '\r'", // # of updates and tooltip details
"exec-if": "exit 0", // always run; consider advanced run conditions
"on-click": "kitty -e yay -Syu", // update system
"signal": 8
},
"custom/spotify": {
"interval": 1,
"exec": "~/.config/hypr/waybar/scripts/spotify",
"on-click-middle":"playerctl play-pause",
"on-click-right": "playerctl next",
"on-click": "playerctl previous",
"escape": true
},
}