stow_dotfiles/hypr/.config/waybar/config.jsonc
Matthieu Fortin (CPC/CCP) b622162e81 Reticulating splines...
2024-12-02 13:30:58 -05:00

176 lines
5.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",
"idle_inhibitor",
"wireplumber",
"hyprland/language",
"custom/notification",
"tray",
"clock"
],
"hyprland/language" :{
//
"format": "{} ",
"format-en": "",
"format-fr": "󱌃"
},
"custom/hostname" :{
"format": "{}",
"return-type":"text",
"exec": "hostnamectl hostname"
},
"custom/updates": {
"format": "{} {icon}",
"return-type": "json",
"format-icons": {
"has-updates": "󱍷",
"updated": "󰂪"
},
"exec-if": "which waybar-module-pacman-updates",
"exec": "waybar-module-pacman-updates --interval-seconds 5 --network-interval-seconds 300"
},
"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
}
}