179 lines
5.5 KiB
JSON
179 lines
5.5 KiB
JSON
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"height": 30,
|
|
"spacing": 1,
|
|
"margin": 0,
|
|
"modules-left": ["hyprland/workspaces", "hyprland/window"],
|
|
"modules-center": [],
|
|
"modules-right": ["custom/weather", "disk", "memory", "cpu", "temperature", "battery", "pulseaudio", "clock", "tray"],
|
|
|
|
"hyprland/workspaces": {
|
|
"disable-scroll": true,
|
|
"all-outputs": false,
|
|
"warp-on-scroll": false,
|
|
"format": "{name}"
|
|
},
|
|
|
|
"hyprland/window": {
|
|
},
|
|
|
|
"custom/playerctl": {
|
|
"format": " {}",
|
|
"return-type": "json",
|
|
"max-length": 40,
|
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{artist}} - {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
|
|
"on-click": "playerctl play-pause",
|
|
"on-click-right": "playerctl next",
|
|
},
|
|
|
|
"custom/weather": {
|
|
"exec": "curl 'https://wttr.in/?format=1&m'",
|
|
"interval": 600,
|
|
"format": "{}",
|
|
"tooltip": true
|
|
},
|
|
|
|
"custom/updates": {
|
|
"format": " {}",
|
|
"exec": "checkupdates | wc -l",
|
|
"interval": 3600,
|
|
"on-click": "kitty -e sudo pacman -Syu",
|
|
"signal": 8
|
|
},
|
|
|
|
"custom/uptime": {
|
|
"format": " {}",
|
|
"exec": "uptime -p | sed 's/up //; s/ days/d/; s/ hours/h/; s/ minutes/m/'",
|
|
"interval": 60
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
},
|
|
"tooltip": true
|
|
},
|
|
|
|
"clock": {
|
|
"format": "{:%H:%M}",
|
|
"format-alt": "{:%Y-%m-%d}",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"calendar": {
|
|
"mode" : "month",
|
|
"mode-mon-col" : 3,
|
|
"weeks-pos" : "right",
|
|
"on-scroll" : 1,
|
|
"on-click-right": "mode",
|
|
"format": {
|
|
"months": "<span color='#d3c6aa'><b>{}</b></span>",
|
|
"days": "<span color='#e67e80'>{}</span>",
|
|
"weeks": "<span color='#a7c080'><b>W{}</b></span>",
|
|
"weekdays": "<span color='#7fbbb3'><b>{}</b></span>",
|
|
"today": "<span color='#dbbc7f'><b><u>{}</u></b></span>"
|
|
}
|
|
},
|
|
"actions": {
|
|
"on-click-right": "mode",
|
|
"on-click-forward": "tz_up",
|
|
"on-click-backward": "tz_down",
|
|
"on-scroll-up": "shift_up",
|
|
"on-scroll-down": "shift_down"
|
|
}
|
|
},
|
|
|
|
"cpu": {
|
|
"format": "<span color=\"#a7c080\">CPU</span> {usage}%",
|
|
"tooltip": true,
|
|
"interval": 1,
|
|
"on-click": "kitty -e htop"
|
|
},
|
|
|
|
"memory": {
|
|
"format": "<span color=\"#a7c080\">RAM</span> {}%",
|
|
"interval": 1,
|
|
"on-click": "kitty -e htop"
|
|
},
|
|
|
|
"temperature": {
|
|
"critical-threshold": 80,
|
|
"format": "{temperatureC}°C",
|
|
"format-icons": ["", "", ""],
|
|
},
|
|
|
|
"battery": {
|
|
"states": {
|
|
"good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon} {capacity}%",
|
|
"format-charging": "<span color=\"#a7c080\"></span> {capacity}%",
|
|
"format-plugged": "<span color=\"#a7c080\"></span> {capacity}%",
|
|
"format-alt": "{icon} {time}",
|
|
"format-icons": [
|
|
"<span color=\"#e67e80\"></span>",
|
|
"<span color=\"#e67e80\"></span>",
|
|
"<span color=\"#e69875\"></span>",
|
|
"<span color=\"#e69875\"></span>",
|
|
"<span color=\"#dbbc7f\"></span>",
|
|
"<span color=\"#dbbc7f\"></span>",
|
|
"<span color=\"#a7c080\"></span>",
|
|
"<span color=\"#a7c080\"></span>",
|
|
"<span color=\"#a7c080\"></span>",
|
|
"<span color=\"#a7c080\"></span>",
|
|
"<span color=\"#a7c080\"></span>"
|
|
]
|
|
},
|
|
|
|
"network": {
|
|
"format-wifi": " {essid} ({signalStrength}%)",
|
|
"format-ethernet": " {ifname}",
|
|
"format-linked": " {ifname} (No IP)",
|
|
"format-disconnected": " Disconnected",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
|
"tooltip-format": "{ifname}: {ipaddr}",
|
|
"on-click": "kitty -e nmtui"
|
|
},
|
|
|
|
"pulseaudio": {
|
|
"format": "<span color=\"#a7c080\">{icon}</span> {volume}%",
|
|
"format-bluetooth": "<span color=\"#a7c080\"></span> {volume}%",
|
|
"format-bluetooth-muted": "<span color=\"#a7c080\"></span> {icon}",
|
|
"format-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "pavucontrol",
|
|
"on-click-right": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
|
|
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +2%",
|
|
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -2%"
|
|
},
|
|
|
|
"backlight": {
|
|
"format": "{icon} {percent}%",
|
|
"format-icons": ["", "", ""],
|
|
"on-scroll-up": "brightnessctl set +5%",
|
|
"on-scroll-down": "brightnessctl set 5%-"
|
|
},
|
|
|
|
"disk": {
|
|
"interval": 30,
|
|
"format": "<span color=\"#a7c080\">{path}</span> {percentage_used}%",
|
|
"path": "/",
|
|
"on-click": "kitty -e gdu /"
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 18,
|
|
"spacing": 5
|
|
}
|
|
}
|