208 lines
6.2 KiB
JSON
208 lines
6.2 KiB
JSON
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"mode": "dock",
|
|
"exclusive": true,
|
|
"passthrough": false,
|
|
"gtk-layer-shell": true,
|
|
"height": 40,
|
|
"modules-left": [
|
|
"custom/launcher",
|
|
"custom/hostname",
|
|
"hyprland/workspaces"
|
|
],
|
|
"modules-right": [
|
|
"custom/updates",
|
|
"memory",
|
|
"cpu",
|
|
"network",
|
|
"backlight",
|
|
"battery",
|
|
"idle_inhibitor",
|
|
"wireplumber",
|
|
"hyprland/language",
|
|
"custom/notification",
|
|
"tray",
|
|
"clock"
|
|
],
|
|
|
|
"backlight": {
|
|
"device": "intel_backlight",
|
|
"format": "{icon} {percent}%",
|
|
"format-icons": ["", "", ""],
|
|
"on-scroll-up": "brightnessctl set 1%+",
|
|
"on-scroll-down": "brightnessctl set 1%-",
|
|
"min-length": 6
|
|
},
|
|
|
|
"battery": {
|
|
"states": {
|
|
"good": 95,
|
|
"warning": 30,
|
|
"critical": 20
|
|
},
|
|
"format": "{icon} {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-alt": "{time} {icon}",
|
|
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""]
|
|
},
|
|
"hyprland/language" :{
|
|
//
|
|
"format": "{} ",
|
|
"format-en": "",
|
|
"format-fr": ""
|
|
},
|
|
"custom/hostname" :{
|
|
"format": "{}",
|
|
"return-type":"text",
|
|
"exec": "hostnamectl hostname"
|
|
},
|
|
|
|
"custom/updates": {
|
|
"format": "{} ",
|
|
"interval": 3600,
|
|
"exec": "checkupdates | wc -l",
|
|
"exec-if": "exit 0",
|
|
"on-click": "kitty --class update paru; pkill -SIGRTMIN+8 waybar",
|
|
"signal": 8
|
|
// "format": "{} {icon}",
|
|
// "return-type": "json",
|
|
// "format-icons": {
|
|
// "has-updates": "",
|
|
// "updated": "",
|
|
// "updated": "",
|
|
// "interval": 3600,
|
|
// },
|
|
// "exec-if": "which waybar-module-pacman-updates",
|
|
// "exec": "waybar-module-pacman-updates",
|
|
// "on-click": "kitty --class update paru"
|
|
},
|
|
|
|
"hyprland/workspaces": {
|
|
"disable-scroll": true,
|
|
"all-outputs": true,
|
|
"on-click": "activate",
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 21,
|
|
"spacing": 10
|
|
},
|
|
|
|
"clock": {
|
|
"format": " {:%H:%M}",
|
|
"format-alt": " {:%Y-%m-%d %H:%M}",
|
|
"interval": 1,
|
|
"rotate": 0,
|
|
"tooltip-format": "<tt>{calendar}</tt>",
|
|
"calendar": {
|
|
"mode": "month",
|
|
"mode-mon-col": 3,
|
|
"on-scroll": 1,
|
|
"on-click-right": "mode",
|
|
"format": {
|
|
"months": "<span color='#a6adc8'><b>{}</b></span>",
|
|
"weekdays": "<span color='#a6adc8'><b>{}</b></span>",
|
|
"today": "<span color='#a6adc8'><b>{}</b></span>",
|
|
"days": "<span color='#555869'><b>{}</b></span>"
|
|
}
|
|
}
|
|
},
|
|
|
|
"wireplumber": {
|
|
"format": "{icon} {volume} %",
|
|
"format-muted": " Mute",
|
|
"on-click": "$HOME/.config/hypr/scripts/Volume.sh --toggle",
|
|
"on-click-right": "pavucontrol -t 3",
|
|
"on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --inc",
|
|
"on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --dec",
|
|
"format-icons": [
|
|
"", "", "", ""
|
|
],
|
|
},
|
|
|
|
"memory": {
|
|
"states": {
|
|
"c": 90, // critical
|
|
"h": 60, // high
|
|
"m": 30 // medium
|
|
},
|
|
"interval": 10,
|
|
"format": " {used}GB",
|
|
"format-m": " {used}GB",
|
|
"format-h": " {used}GB",
|
|
"format-c": " {used}GB",
|
|
"format-alt": " {percentage}%",
|
|
"max-length": 10,
|
|
"tooltip": true,
|
|
"tooltip-format": " {percentage}%\n {used:0.1f}GB/{total:0.1f}GB"
|
|
},
|
|
|
|
"cpu": {
|
|
"interval": 1,
|
|
"format": " {usage}%",
|
|
"format-alt": "{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}",
|
|
"format-icons": [
|
|
"<span color='#69ff94'>▁</span>", // green
|
|
"<span color='#2aa9ff'>▂</span>", // blue
|
|
"<span color='#f8f8f2'>▃</span>", // white
|
|
"<span color='#f8f8f2'>▄</span>", // white
|
|
"<span color='#ffffa5'>▅</span>", // yellow
|
|
"<span color='#ffffa5'>▆</span>", // yellow
|
|
"<span color='#ff9977'>▇</span>", // orange
|
|
"<span color='#dd532e'>█</span>" // red
|
|
]
|
|
},
|
|
|
|
"idle_inhibitor" : {
|
|
"format": "{icon}",
|
|
"tooltip": true,
|
|
"format-icons":{
|
|
"activated":" ",
|
|
"deactivated":" "
|
|
},
|
|
"on-click-right":"hyprlock"
|
|
},
|
|
|
|
"network": {
|
|
"tooltip": true,
|
|
"format-wifi": " {essid}",
|
|
"format-ethernet": " ",
|
|
"tooltip-format": "Network: <big><b>{essid}</b></big>\nSignal strength: <b>{signaldBm}dBm ({signalStrength}%)</b>\nFrequency: <b>{frequency}MHz</b>\nInterface: <b>{ifname}</b>\nIP: <b>{ipaddr}/{cidr}</b>\nGateway: <b>{gwaddr}</b>\nNetmask: <b>{netmask}</b>",
|
|
"format-linked": " {ifname} (No IP)",
|
|
"format-disconnected": " ",
|
|
"tooltip-format-disconnected": "Disconnected",
|
|
"format-alt": "<span foreground='#99ffdd'> {bandwidthDownBytes}</span> <span foreground='#ffcc66'> {bandwidthUpBytes}</span>",
|
|
"interval": 2
|
|
},
|
|
|
|
"custom/launcher": {
|
|
"format": " ",
|
|
"on-click": "exec nwg-drawer -c 7 -is 96 -spacing 24",
|
|
//"on-click": "~/.config/rofi/launchers/type-3/launcher.sh",
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/notification": {
|
|
"tooltip": true,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"notification": "",
|
|
"none": "",
|
|
"dnd-notification": "",
|
|
"dnd-none": "",
|
|
"inhibited-notification": "",
|
|
"inhibited-none": "",
|
|
"dnd-inhibited-notification": "",
|
|
"dnd-inhibited-none": ""
|
|
},
|
|
|
|
"return-type": "json",
|
|
"exec-if": "which swaync-client",
|
|
"exec": "swaync-client -swb",
|
|
"on-click": "swaync-client -t -sw",
|
|
"on-click-right": "swaync-client -d -sw",
|
|
"escape": true
|
|
}
|
|
}
|