Guest User

waybar/config.jsonc

a guest
Jun 12th, 2025
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.97 KB | None | 0 0
  1. [{
  2.     "layer": "top", // Waybar at top layer
  3.     "output": "eDP-1",
  4.     // "position": "bottom", // Waybar position (top|bottom|left|right)
  5.     // "width": 1280, // Waybar width
  6.     "spacing": 2, // Gaps between modules (4px)
  7.     // Choose the order of the modules
  8.     "modules-left": ["clock"],
  9.     "modules-center": ["hyprland/workspaces"],
  10.     "modules-right": ["custom/nowplaying", "custom/todo", "pulseaudio", "network", "battery"],
  11.     // Modules configuration
  12.     "hyprland/workspaces": {
  13.         "disable-scroll": true,
  14.         "all-outputs": true,
  15.         "warp-on-scroll": false,
  16.         "format": "{icon}",
  17.         "format-icons": {
  18.         "urgent": "",
  19.         "active": "",
  20.         "default": ""
  21.      },
  22.      
  23.      "persistent-workspaces":{
  24.         "1": "",
  25.         "2": "",
  26.         "3": "",
  27.         "4": "",
  28.         "5": "",
  29.      }
  30.  },
  31.  
  32.     "clock": {
  33.         // "timezone": "America/New_York",
  34.         "format": " It's {:%A, %d %B %Y, %I:%M %p}",
  35.         "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
  36.         "format-alt": "{:%d-%m-%Y}"
  37.     },
  38.    
  39.     "battery": {
  40.         "states": {
  41.             // "good": 95,
  42.             "warning": 30,
  43.             "critical": 15
  44.         },
  45.         "format": "{icon} {capacity}%",
  46.         "format-icons": ["", "", "", "", ""],
  47.         "format-plugged": "  {icon} {capacity}%",
  48.         "format-charging": "  {icon} {capacity}%",
  49.         "format-full": "  {icon} {capacity}%",
  50.         "format-alt": "{icon} {time}"
  51.     },
  52.     "battery#bat2": {
  53.         "bat": "BAT2"
  54.     },
  55.     "network": {
  56.         // "interface": "wlp2*", // (Optional) To force the use of this interface
  57.         "format-wifi": "",
  58.         "format-ethernet": " {essid}",
  59.         "tooltip-format": "{essid}\r{gwaddr} ",
  60.         "format-linked": " {ifname} (No IP)",
  61.         "format-disconnected": "⚠ Disconnected",
  62.         "on-click": "~/.local/bin/rofi-wifi-menu.sh"
  63.     },
  64.     "pulseaudio": {
  65.         // "scroll-step": 1, // %, can be a float
  66.         "format": "{icon}",
  67.         "tooltip-format": "{volume}%",
  68.         "format-bluetooth": "{icon} {volume}%",
  69.         "format-bluetooth-muted": " {icon}",
  70.         "format-muted": "",
  71.         "format-icons": {
  72.             "headphone": "",
  73.             "hands-free": "",
  74.             "headset": "",
  75.             "phone": "",
  76.             "portable": "",
  77.             "car": "",
  78.             "default": ["", "", ""]
  79.         },
  80.         "on-click": "pavucontrol"
  81.     },
  82.     "custom/nowplaying": {
  83.         "interval": 1,
  84.         "escape": true,
  85.         "exec": "playerctl metadata --format \"{{ title }}\" --ignore-player=firefox",
  86.         "format": "🎜 {}",
  87.         "max-length": 30,
  88.         "on-click": "playerctl play-pause --ignore-player=firefox"
  89.     },
  90.     "custom/todo": {
  91.       "format": " ",
  92.       "on-click": "kitty -e nvim ~/notes/journal/agenda.md",
  93.     }
  94. },
  95.  
  96. {
  97.     "name": "vgamonitor",
  98.     "layer": "top", // Waybar at top layer
  99.     "output": "HDMI-A-1",
  100.     // "position": "bottom", // Waybar position (top|bottom|left|right)
  101.     // "width": 1280, // Waybar width
  102.     "spacing": 2, // Gaps between modules (4px)
  103.     // Choose the order of the modules
  104.     "modules-left": ["clock"],
  105.     "modules-center": ["hyprland/workspaces"],
  106.     "modules-right": ["custom/nowplaying", "custom/todo", "battery"],
  107.     // Modules configuration
  108.     "hyprland/workspaces": {
  109.         "disable-scroll": true,
  110.         "all-outputs": true,
  111.         "warp-on-scroll": false,
  112.         "format": "{icon}",
  113.         "format-icons": {
  114.         "urgent": "",
  115.         "active": "",
  116.         "default": ""
  117.      },
  118.      
  119.      "persistent-workspaces":{
  120.         "1": "",
  121.         "2": "",
  122.         "3": "",
  123.         "4": "",
  124.         "5": "",
  125.         "6": ""
  126.      }
  127.  },
  128.  
  129.     "clock": {
  130.         // "timezone": "America/New_York",
  131.         "format": "It's {:%A, %d %B %Y, %I:%M %p}",
  132.         "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
  133.         "format-alt": "{:%d-%m-%Y}"
  134.     },
  135.    
  136.     "battery": {
  137.         "states": {
  138.             // "good": 95,
  139.             "warning": 30,
  140.             "critical": 15
  141.         },
  142.         "format": "{icon} {capacity}%",
  143.         "format-icons": ["", "", "", "", ""],
  144.         "format-plugged": "  {icon} {capacity}%",
  145.         "format-charging": "  {icon} {capacity}%",
  146.         "format-full": "  {icon} {capacity}%",
  147.         "format-alt": "{icon} {time}"
  148.     },
  149.     "battery#bat2": {
  150.         "bat": "BAT2"
  151.     },
  152.     "network": {
  153.         // "interface": "wlp2*", // (Optional) To force the use of this interface
  154.         "format-wifi": "",
  155.         "format-ethernet": " {essid}",
  156.         "tooltip-format": "{essid}\r{gwaddr} ",
  157.         "format-linked": " {ifname} (No IP)",
  158.         "format-disconnected": "⚠ Disconnected",
  159.         "on-click": "~/.local/bin/rofi-wifi-menu.sh"
  160.     },
  161.     "pulseaudio": {
  162.         // "scroll-step": 1, // %, can be a float
  163.         "format": "{icon}",
  164.         "tooltip-format": "{volume}%",
  165.         "format-bluetooth": "{icon} {volume}%",
  166.         "format-bluetooth-muted": " {icon}",
  167.         "format-muted": "",
  168.         "format-icons": {
  169.             "headphone": "",
  170.             "hands-free": "",
  171.             "headset": "",
  172.             "phone": "",
  173.             "portable": "",
  174.             "car": "",
  175.             "default": ["", "", ""]
  176.         },
  177.         "on-click": "pavucontrol"
  178.     },
  179.     "custom/nowplaying": {
  180.         "interval": 1,
  181.         "escape": true,
  182.         "exec": "playerctl metadata --format \"{{ title }}\" --ignore-player=firefox",
  183.         "format": "🎜 {}",
  184.         "max-length": 30,
  185.         "on-click": "playerctl play-pause --ignore-player=firefox"
  186.     },
  187.     "custom/todo": {
  188.       "format": " ",
  189.       "on-click": "kitty -e nvim ~/notes/journal/agenda.md",
  190.     }
  191. }]
Advertisement
Add Comment
Please, Sign In to add comment