180 lines
6.3 KiB
INI
Executable File
180 lines
6.3 KiB
INI
Executable File
{
|
|
"layer": "top", // Waybar at top layer
|
|
"position": "bottom", // Waybar position (top|bottom|left|right)
|
|
"height": 40,
|
|
"width":1900,
|
|
"margin": "0 0 0 0",
|
|
"spacing":10,
|
|
|
|
// Choose the order of the modules
|
|
|
|
"modules-left": ["custom/launcher","custom/changewaybar", "hyprland/workspaces", "hyprland/window"],
|
|
"modules-center": ["clock"],
|
|
"modules-right": ["temperature", "cpu", "memory", "battery", "pulseaudio", "idle_inhibitor", "tray", "custom/power"],
|
|
|
|
// Modules configuration
|
|
|
|
"hyprland/workspaces": {
|
|
"format": "{icon}",
|
|
"on-click": "activate",
|
|
"all-outputs": true,
|
|
"sort-by-number": true,
|
|
"format-icons": {
|
|
"1": "1",
|
|
"2": "2",
|
|
"3": "3",
|
|
"4": "4",
|
|
"5": "5",
|
|
"6": "6",
|
|
"7": "7",
|
|
"8": "8",
|
|
"9": "9",
|
|
"10": "10",
|
|
"focused": "",
|
|
"default": ""
|
|
},
|
|
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
|
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
|
},
|
|
"hyprland/window": {
|
|
"format": "{}",
|
|
"icon":true,
|
|
"icon-size" : 20
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"tray": {
|
|
"icon-size": 20,
|
|
"spacing": 5
|
|
},
|
|
"clock": {
|
|
//"tooltip-format": "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format": " {:%a %d %b %I:%M %p}", //12 hour format
|
|
//"format": " {:%a %d %b %H:%M}", //24 hour format
|
|
"format-alt": " {:%d/%m/%Y %H:%M:%S}",
|
|
"timezones": [ "$TZ" ],
|
|
//"max-length": 200
|
|
"interval": 1,
|
|
"on-click": "~/.config/hypr/waybar/scripts/OCV",
|
|
},
|
|
"cpu": {
|
|
"format": "🖳{usage}%",
|
|
"on-click": "foot -e htop"
|
|
},
|
|
"memory": {
|
|
"format": "🖴 {: >3}%",
|
|
"on-click": "foot -e htop"
|
|
},
|
|
"temperature": {
|
|
"thermal-zone": 7, // Check with: # cat /sys/class/hwmon/hwmon*/temp1_input
|
|
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
|
|
"critical-threshold": 80,
|
|
"format-critical": "{temperatureC}°C ",
|
|
"format": "{temperatureC}°C "
|
|
},
|
|
"backlight": {
|
|
// "device": "acpi_video1",
|
|
"format": "{icon} {percent: >3}%",
|
|
"format-icons": ["", ""],
|
|
"on-scroll-down": "brightnessctl -c backlight set 1%-",
|
|
"on-scroll-up": "brightnessctl -c backlight set +1%",
|
|
"on-click": "~/.config/waybar/scripts/backlight-hint.sh"
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
// "good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon} {capacity: >3}%",
|
|
"format-icons": ["", "", "", "", ""]
|
|
// "format-good": "", // An empty format will hide the module
|
|
// "format-full": "",
|
|
//"format-icons": ["", "", "", "", "", "", "", "", "", ""]
|
|
//"format": "‫{icon}‬ {capacity}%",
|
|
//"format-icons": ["ﱉ","ﱊ","ﱌ","ﱍ","ﱋ"]
|
|
},
|
|
"network": {
|
|
//"interface": "wlp0s20f3", // (Optional) To force the use of this interface "format-wifi": " {essid}",
|
|
"format": "⚠Disabled",
|
|
"format-wifi": "",
|
|
"format-ethernet": "",
|
|
"format-linked": "{ifname} (No IP)",
|
|
"format-disconnected": "⚠Disabled",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
|
"family": "ipv4",
|
|
"tooltip-format-wifi": " {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
|
|
"tooltip-format-ethernet": " {ifname}\nIP: {ipaddr}\n up: {bandwidthUpBits} down: {bandwidthDownBits}",
|
|
//"min-length": 2,
|
|
//"max-length": 2,
|
|
"on-click": "nm-connection-editor"
|
|
},
|
|
"custom/pacman": {
|
|
"format": " {}",
|
|
"interval": 7200, // every two hours
|
|
"exec": "checkupdates | wc -l", // # of updates
|
|
//"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 --class update -T update -o font_size=13 -e yay -Syu && notify-send 'The system has been updated' ",
|
|
"signal": 8
|
|
},
|
|
"custom/power": {
|
|
"format": "⏻",
|
|
"on-click": "archlinux-logout",
|
|
"tooltip": false
|
|
},
|
|
"custom/keyboard-layout": {
|
|
"format": " Cheat", // Icon: keyboard
|
|
"on-click": "~/.config/hypr/scripts/keyhint",
|
|
},
|
|
"custom/launcher": {
|
|
"format":"",
|
|
"on-click": "~/.config/hypr/scripts/fullmenu",
|
|
"tooltip": false,
|
|
},
|
|
"custom/network_traffic": {
|
|
"exec": "~/.config/waybar/scripts/network_traffic.sh",
|
|
"return-type": "json",
|
|
"format-ethernet": "{icon} {ifname} ⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}", // optional
|
|
},
|
|
"pulseaudio": {
|
|
"scroll-step": 3, // %, can be a float
|
|
"format": "{icon} {volume}% {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-source": "",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": [""]
|
|
},
|
|
"on-click": "pavucontrol",
|
|
"on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
|
|
},
|
|
// https://github.com/chubin/wttr.in
|
|
"custom/weather": {
|
|
"exec": "curl 'https://wttr.in/Antwerp?format=2'",
|
|
"interval": 900,
|
|
"on-click": "yad --html --uri='https://wttr.in/Antwerp' --center --fixed --width=1000 --height=680 --timeout=60 --timeout-indicator=right"
|
|
},
|
|
"custom/changewaybar": {
|
|
"on-click": "~/.bin/change-waybar-hyprland",
|
|
"tooltip": true,
|
|
"tooltip-format": "Swap between waybar configs",
|
|
"format": "CW "
|
|
},
|
|
}
|