config.tmpl

  1{
  2    "layer": "top", // Waybar at top layer
  3    "spacing": 5,
  4    "modules-left": ["hyprland/workspaces", "hyprland/window"],
  5    "modules-right": ["idle_inhibitor", "custom/pending-updates", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight",  "battery", {{ if eq .chezmoi.hostname "angmar" }}"clock#date", {{ end }}"clock#all", "custom/beats", "tray"],
  6    "hyprland/workspaces": {
  7        "disable-scroll": true,
  8        "all-outputs": true,
  9        "warp-on-scroll": true
 10    },
 11    "hyprland/window": {
 12        "format": "   {}"
 13    },
 14    "custom/pending-updates": {
 15        "format": "{} 󱄋",
 16        "tooltip": false,
 17        "exec": "echo $(( $(checkupdates | wc -l) + $(yay -Qu | wc -l) ))",
 18        "restart-interval": 3600,
 19    },
 20    "idle_inhibitor": {
 21        "format": "{icon}",
 22        "format-icons": {
 23            "activated": "",
 24            "deactivated": ""
 25        }
 26    },
 27    "tray": {
 28        // "icon-size": 21,
 29        "spacing": 10
 30    },
 31    "clock#date": {
 32        "format": "{:%Y-%m-%d} 󰃭",
 33        "tooltip-format": "<tt><small>{calendar}</small></tt>",
 34        "calendar": {
 35            "mode": "year",
 36            "mode-mon-col": 3,
 37            "on-scroll": 1,
 38            "on-click-right": "mode",
 39            "format": {
 40                "months": "<span color='#ffead3'><b>{}</b></span>",
 41                "days": "<span color='#ecc6d9'><b>{}</b></span>",
 42                "weeks": "<span color='#99ffdd'><b>W{}</b></span>",
 43                "weekdays": "<span color='#ffcc66'><b>{}</b></span>",
 44                "today": "<span color='#ff6699'><b><u>{}</u></b></span>"
 45            }
 46        },
 47    },
 48    "clock#all": {
 49        "format": "{:%H:%M} ",
 50        "format-alt": "{:%Y-%m-%d} 󰃭",
 51        "tooltip-format": "<tt><small>{calendar}</small></tt>",
 52        "calendar": {
 53            "mode": "year",
 54            "mode-mon-col": 3,
 55            "on-scroll": 1,
 56            "on-click-right": "mode",
 57            "format": {
 58                "months": "<span color='#ffead3'><b>{}</b></span>",
 59                "days": "<span color='#ecc6d9'><b>{}</b></span>",
 60                "weeks": "<span color='#99ffdd'><b>W{}</b></span>",
 61                "weekdays": "<span color='#ffcc66'><b>{}</b></span>",
 62                "today": "<span color='#ff6699'><b><u>{}</u></b></span>"
 63            }
 64        },
 65    },
 66    "custom/beats": {
 67        "format": "{} 󱇼",
 68        "tooltip": false,
 69        "exec-if": "/home/amolith/.local/bin/beats",
 70        "exec": "/home/amolith/.local/bin/beats",
 71        "return-type": "",
 72        "restart-interval": 1,
 73    },
 74    "cpu": {
 75        "format": "{usage}% ",
 76        "tooltip": false
 77    },
 78    "memory": {
 79        "format": "{}% "
 80    },
 81    "temperature": {
 82        "critical-threshold": 80,
 83        "format": "{temperatureC}°C {icon}",
 84        "format-icons": ["", "", "", "", ""]
 85    },
 86    "backlight": {
 87        "format": "{percent}% {icon}",
 88        "format-icons": ["", "", "", "", "", "", "", "", ""]
 89    },
 90    "battery": {
 91        "states": {
 92            "good": 95,
 93            "warning": 30,
 94            "critical": 15
 95        },
 96        "format": "{capacity}% {icon}",
 97        "format-charging": "{capacity}% 󰂄",
 98        "format-plugged": "{capacity}% ",
 99        "format-alt": "{time} {icon}",
100        "format-icons": [ "󰢟", "󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂊", "󰂅" ]     
101    },
102    "network": {
103        "format-wifi": "",
104        "format-ethernet": "󰈀",
105        "tooltip-format": "{ifname} via {gwaddr} 󰛳",
106        "format-linked": "{ifname} (No IP) ",
107        "format-disconnected": "󰖪",
108        "format-alt": "{ifname}: {ipaddr}/{cidr}"
109    },
110    "pulseaudio": {
111        // "scroll-step": 1, // %, can be a float
112        "format": "{volume}%  {icon}  {format_source}",
113        "format-bluetooth": "{volume}% {icon}   {format_source}",
114        "format-bluetooth-muted": "󰝟 {icon}   {format_source}",
115        "format-muted": "󰝟  {format_source}",
116        "format-source": "{volume}% ",
117        "format-source-muted": "",
118        "format-icons": {
119            "headphone": "",
120            "hands-free": "",
121            "headset": "",
122            "phone": "",
123            "portable": "",
124            "car": "",
125            "default": ["", "", ""]
126        },
127        "on-click": "pavucontrol"
128    }
129}
130