summaryrefslogtreecommitdiff
path: root/dot-config/waybar/config.jsonc
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2025-06-29 22:28:05 +0200
committerMathias Magnusson <mathias@magnusson.space>2025-06-29 22:47:23 +0200
commita0b32034f7c557bcaa38e3610c8a97eeee7a00a8 (patch)
tree3f4f1b7252958ccd8fa3158a35aeb34cdacf94c1 /dot-config/waybar/config.jsonc
downloadsleipner-a0b32034f7c557bcaa38e3610c8a97eeee7a00a8.tar.gz
Initial commit
Diffstat (limited to 'dot-config/waybar/config.jsonc')
-rw-r--r--dot-config/waybar/config.jsonc171
1 files changed, 171 insertions, 0 deletions
diff --git a/dot-config/waybar/config.jsonc b/dot-config/waybar/config.jsonc
new file mode 100644
index 0000000..143dc31
--- /dev/null
+++ b/dot-config/waybar/config.jsonc
@@ -0,0 +1,171 @@
+[{
+ "output": ["eDP-1"],
+ // "layer": "top", // Waybar at top layer
+ "height": 32,
+ "position": "top", // Waybar position (top|bottom|left|right)
+ // "width": 1280, // Waybar width
+ "spacing": 4, // Gaps between modules (4px)
+ // Choose the order of the modules
+ "modules-left": [
+ "network",
+ "bluetooth",
+ "mpris"
+ ],
+ "modules-center": [
+ // "wlr/taskbar",
+ "clock"
+ ],
+ "modules-right": [
+ "privacy",
+
+ "idle_inhibitor",
+
+ "temperature",
+ "load",
+ "memory",
+
+ "wireplumber",
+ "backlight",
+ "battery",
+
+ "group/power",
+ "tray"
+ ],
+ "wlr/taskbar": {
+ "tooltip-format": "{title} | {app_id}"
+ },
+ "group/power": {
+ "orientation": "inherit",
+ "drawer": {
+ "children-class": "power-child",
+ "transition-left-to-right": false,
+ },
+ "modules": [
+ "custom/poweroff",
+ "custom/suspend",
+ "custom/reboot"
+ ]
+ },
+ "custom/reboot": {
+ "format": "󰜉",
+ "on-click": "reboot",
+ "tooltip": false
+ },
+ "custom/suspend": {
+ "format": "󰒲",
+ "on-click": "systemctl suspend",
+ "tooltip": false
+ },
+ "custom/poweroff": {
+ "format": "",
+ "on-click": "shutdown now",
+ "tooltip": false
+ },
+ "privacy": {
+ "icon-size": 17
+ },
+ "network": {
+ "format-wifi": " {essid} {ipaddr}/{cidr}",
+ "format-ethernet": " {ipaddr}/{cidr}",
+ "tooltip": false
+ },
+ "bluetooth": {
+ "format-on": "",
+ "format-disabled": "",
+ "format-off": "",
+ "on-click": "blueman-manager"
+ },
+ "mpris": {
+ "format": " {status_icon} {dynamic}",
+ "interval": 1,
+ "dynamic-len": 40,
+ "status-icons": {
+ "playing": "▶",
+ "paused": "⏸",
+ "stopped": ""
+ },
+ "dynamic-order": ["title", "artist"],
+ "ignored-players": ["brave"]
+ },
+ "idle_inhibitor": {
+ "format": "{icon}",
+ "format-icons": {
+ "activated": "",
+ "deactivated": ""
+ },
+ "tooltip": "Idle inhibitor"
+ },
+ "sway/mode": {
+ "format": "{}"
+ },
+ "sway/scratchpad": {
+ "format": "{icon} {count}",
+ "show-empty": false,
+ "format-icons": ["", ""],
+ "tooltip": true,
+ "tooltip-format": "{app}: {title}"
+ },
+ "tray": {
+ "icon-size": 14,
+ "spacing": 10
+ },
+ "load": {
+ "format": " {}"
+ },
+ "cpu": {
+ "format": "{usage}% ",
+ "tooltip": false
+ },
+ "memory": {
+ "format": " {}%"
+ },
+ "temperature": {
+ // "thermal-zone": 2,
+ // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
+ "critical-threshold": 80,
+ // "format-critical": "{temperatureC}°C {icon}",
+ "format": "{temperatureC}°C {icon}",
+ "format-icons": ["", "", ""],
+ "tooltip": false
+ },
+ "backlight": {
+ "on-scroll-up": "brightnessctl set +1",
+ "on-scroll-down": "brightnessctl set 1-",
+ "format": " {percent}%",
+ "tooltip": false
+ },
+ "battery": {
+ "states": {
+ "warning": 30,
+ "critical": 15
+ },
+ "format": "{icon} {capacity}%",
+ "format-full": "{icon} {capacity}%",
+ "format-charging": " {capacity}%",
+ "format-plugged": " {capacity}%",
+ "format-icons": ["", "", "", "", ""]
+ },
+ "wireplumber": {
+ "scroll-step": 1, // %, can be a float
+ "format": "{icon} {volume}%",
+ "format-bluetooth": "{icon} {volume}% ",
+ "format-bluetooth-muted": " {icon}",
+ "format-muted": "",
+ "format-icons": {
+ "headphone": "",
+ "hands-free": "",
+ "headset": "",
+ "phone": "",
+ "portable": "",
+ "car": "",
+ "default": ["", "", ""]
+ },
+ "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
+ "tooltip": false
+ },
+ "clock": {
+ "format": "{:%A %Y-%m-%d %H:%M:%S}",
+ "interval": 1,
+ "tooltip": false
+ }
+}]