mirror of
https://github.com/xsghetti/HyprCrux.git
synced 2025-07-01 13:00:38 -04:00
224 lines
7.1 KiB
Text
224 lines
7.1 KiB
Text
|
|
{
|
|
|
|
"layer": "top", // Waybar at top layer
|
|
// "output": "DP-1",
|
|
"position": "top", // Waybar position (top|bottom|left|right)
|
|
"height": 30, // Waybar height (to be removed for auto height)
|
|
// "spacing": 4, // Gaps between modules (4px)
|
|
"margin-top": 10,
|
|
"margin-left": 10,
|
|
"margin-right": 10,
|
|
"border-radius": 5,
|
|
|
|
"modules-left": ["custom/menu", "hyprland/workspaces"],
|
|
"modules-center": ["custom/playerctl", "custom/playerlabel"],
|
|
"modules-right": ["group/widgets", "pulseaudio", "clock", "battery", "backlight", "tray", "custom/power"],
|
|
|
|
|
|
// Modules
|
|
"group/widgets": {
|
|
"orientation": "inherit",
|
|
"drawer": {
|
|
"transition-duration": 500,
|
|
"children-class": "not-power",
|
|
"transition-left-to-right": false,
|
|
},
|
|
"modules": ["custom/swaync", "custom/updates", "network" ]
|
|
},
|
|
|
|
|
|
"tray": {
|
|
// "icon-size": 21,
|
|
"spacing": 10
|
|
},
|
|
"clock": {
|
|
"format": "<span foreground='#ffffff'> </span>{:%H:%M %D}",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
|
},
|
|
"cpu": {
|
|
"format": "{usage}% ",
|
|
"tooltip": false
|
|
},
|
|
"memory": {
|
|
"format": "{}% "
|
|
},
|
|
"temperature": {
|
|
"thermal-zone": 1,
|
|
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
|
"critical-threshold": 80,
|
|
"format-critical": "{temperatureC}°C {icon}",
|
|
"format": "{temperatureC}°C {icon}",
|
|
"format-icons": ["", "", ""]
|
|
},
|
|
"backlight": {
|
|
// "device": "acpi_video1",
|
|
"format": "{percent}% {icon}",
|
|
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
// "good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{capacity}% {icon}",
|
|
"format-charging": "{capacity}% ",
|
|
"format-plugged": "{capacity}% ",
|
|
"format-alt": "{time} {icon}",
|
|
// "format-good": "", // An empty format will hide the module
|
|
// "format-full": "",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
"battery#bat2": {
|
|
"bat": "BAT2"
|
|
},
|
|
"network": {
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
"format-wifi": " {essid}",
|
|
"format-ethernet": " hardwired",
|
|
"tooltip-format": " {ipaddr} {bandwidthUpBytes} {bandwidthDownBytes}",
|
|
"format-linked": " {ifname} (No IP)",
|
|
"format-disconnected": " Disconnected",
|
|
"format-alt": " {signalStrength}%",
|
|
"interval": 5
|
|
},
|
|
"pulseaudio": {
|
|
"scroll-step": 1, // %, can be a float,
|
|
"format": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth-muted": " {icon} {format_source}",
|
|
"format-muted": " {format_source}",
|
|
"format-source": "{volume}% ",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"custom/media": {
|
|
"format": "{icon} {}",
|
|
"return-type": "json",
|
|
"max-length": 40,
|
|
"format-icons": {
|
|
"spotify": "",
|
|
"default": "🎜"
|
|
},
|
|
"escape": true,
|
|
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null", // Script in resources folder
|
|
"exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null", // Filter player based on name
|
|
},
|
|
"custom/menu": {
|
|
"format": "",
|
|
"tooltip": false,
|
|
"on-click": "rofi -show drun",
|
|
},
|
|
"hyprland/workspaces": {
|
|
"active-only": false,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"urgent": "",
|
|
"active": "",
|
|
"default": "",
|
|
"sort-by-number": true,
|
|
},
|
|
|
|
|
|
},
|
|
"custom/div": {
|
|
"format": "/",
|
|
"tooltip": false,
|
|
|
|
},
|
|
"custom/playerctl": {
|
|
"format": "{icon}",
|
|
"return-type": "json",
|
|
"max-length": 64,
|
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
|
|
"on-click-middle": "playerctl play-pause",
|
|
"on-click": "playerctl previous",
|
|
"on-click-right": "playerctl next",
|
|
"format-icons": {
|
|
"Playing": "<span foreground='#FFFFFF'> </span>",
|
|
"Paused": "<span foreground='#FFFFFF'> </span>"
|
|
},
|
|
},
|
|
"custom/playerlabel": {
|
|
"format": "<span>{}</span>",
|
|
"return-type": "json",
|
|
"max-length": 40,
|
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
|
|
"on-click-middle": "playerctl play-pause",
|
|
"on-click": "playerctl previous",
|
|
"on-click-right": "playerctl next",
|
|
"format-icons": {
|
|
"Playing": "<span foreground='#E5B9C6'> </span>",
|
|
"Paused": "<span foreground='#928374'> </span>"
|
|
},
|
|
},
|
|
"custom/name": {
|
|
"format": "ダンテコンピュータ",
|
|
"tooltip":false,
|
|
},
|
|
"custom/power": {
|
|
"format": " ⏻ ",
|
|
"tooltip": false,
|
|
"on-click": "wlogout --protocol layer-shell"
|
|
},
|
|
|
|
"custom/updates": {
|
|
"exec": "~/.config/hypr/scripts/systemupdate.sh",
|
|
"return-type": "json",
|
|
"format": " {}",
|
|
"on-click": "~/.config/hypr/scripts/systemupdate.sh up",
|
|
"interval": 86400, // once every day
|
|
"tooltip": true,
|
|
},
|
|
"wlr/taskbar": {
|
|
"format": "{icon}",
|
|
"icon-size": 15,
|
|
//"icon-theme": "Numix-Circle",
|
|
"tooltip-format": "{title}",
|
|
"on-click": "activate",
|
|
"on-click-middle": "close"
|
|
},
|
|
|
|
"custom/swaync": {
|
|
"tooltip": true,
|
|
"format": "{} {icon}",
|
|
"format-icons": {
|
|
"notification": "<span foreground='red'><sup></sup></span>",
|
|
"none": "",
|
|
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-none": "",
|
|
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
"inhibited-none": "",
|
|
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-inhibited-none": ""
|
|
},
|
|
"return-type": "json",
|
|
"exec-if": "which swaync-client",
|
|
"exec": "swaync-client -swb",
|
|
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
|
"on-click-right": "swaync-client -d -sw",
|
|
"escape": true
|
|
},
|
|
"custom/chatgpt": {
|
|
"format": " ",
|
|
"on-click": "chromium --app=https://chat.openai.com",
|
|
"tooltip-format": "Open ChatGPT"
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|