waybar: update to new bar

it like actually boots with hyprland this time
This commit is contained in:
Nico 2025-05-03 16:15:57 +10:00
parent 104a0ccd4a
commit 06be0e2030
3 changed files with 536 additions and 366 deletions

View file

@ -1,215 +1,188 @@
// waybar taken from: https://github.com/gmr458/.dotfiles/tree/main/waybar/.config/waybar
// MIT License
// Copyright (c) 2024 LightCrimson
// https://github.com/yurihikari/garuda-hyprdots
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
{
"layer": "top",
"position": "left",
"width": 24,
"margin-top": 0,
"margin-bottom": 0,
"margin-left": 0,
"margin-right": 0,
"spacing": 0,
"gtk-layer-shell": true,
"modules-left": [
"custom/notification",
// "backlight/slider",
"backlight",
"pulseaudio/slider",
"pulseaudio#audio",
"network"
// "bluetooth"
],
"custom/notification": {
"tooltip": false,
"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
},
// "backlight/slider": {
// "min": 1,
// "max": 100,
// "orientation": "vertical"
// },
"backlight": {
"format": "{icon}",
"format-icons": ["󰃟"],
"on-scroll-up": "brightnessctl set +5%",
"on-scroll-down": "brightnessctl set 5%-",
"on-click": "",
"tooltip": true,
"tooltip-format": "{percent}%"
},
"pulseaudio/slider": {
"min": 0,
"max": 100,
"orientation": "vertical"
},
"pulseaudio#audio": {
"format": "{icon}",
"format-bluetooth": "󰂯\n{icon}",
"format-bluetooth-muted": "󰂯\n󰖁",
"format-muted": "󰖁",
"format-icons": {
"headphone": "󰋋",
"hands-free": "󰋋",
"headset": "󰋋",
"phone": "",
"portable": "",
"car": "",
"default": ["󰕿", "󰖀", "󰕾"]
},
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +1%",
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -1%",
"tooltip": true,
"tooltip-format": "{icon} {desc} {volume}%"
},
"pulseaudio#microphone": {
"format": "{format_source}",
"format-source": "󰍬 {volume}%",
"format-source-muted": "󰍭 {volume}%",
"on-click": "pactl set-source-mute @DEFAULT_SOURCE@ toggle",
"on-scroll-up": "pactl set-source-volume @DEFAULT_SOURCE@ +1%",
"on-scroll-down": "pactl set-source-volume @DEFAULT_SOURCE@ -1%",
"max-volume": 100,
"tooltip": false
},
"network": {
"interval": 1,
"interface": "wlo1",
"format-icons": ["󰤯", "󰤟", "󰤢", "󰤥", "󰤨"],
"format-wifi": "{icon}",
"format-disconnected": "",
"on-click": "nm-connection-editor",
"tooltip": true,
"tooltip-format": "󰢮 {ifname}\n󰩟 {ipaddr}/{cidr}\n{icon} {essid}\n󱑽 {signalStrength}% {signaldBm} dBm {frequency} MHz\n󰞒 {bandwidthDownBytes}\n󰞕 {bandwidthUpBytes}"
},
"bluetooth": {
"format-disabled": "",
"format-off": "",
"format-on": "󰂯",
"format-connected": "󰂯",
"format-connected-battery": "󰂯",
"tooltip-format-connected": "{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias} 󰂄{device_battery_percentage}% {device_address}",
"on-click": "blueman-manager",
"tooltip": true
},
"modules-center": [
"hyprland/workspaces",
"hyprland/submap",
"sway/workspaces",
"sway/mode"
],
"hyprland/workspaces": {
"format": "{icon}",
"format-icons": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9",
"default": "1"
},
"on-click": "activate"
},
"hyprland/submap": {
"format": "{}",
"tooltip": false
},
"hyprland/window": {
"format": " <span font_desc='Iosevka Raven 12'>{:.40}</span> ",
"separate-outputs": false
},
"sway/workspaces": {
"format": "{icon}",
"format-icons": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9",
"default": "1"
},
"on-click": "activate"
},
"sway/mode": {
"format": "{}",
"tooltip": false
},
"wlr/taskbar": {
"format": "{icon}",
"active-first": true
},
"modules-right": [
// "pulseaudio#microphone",
// "battery"
"tray",
"memory",
"cpu",
"clock"
],
"tray": {
"icon-size": 14,
"spacing": 8
},
"cpu": {
"format": "󰻠",
"on-click": "",
"tooltip": true
},
"memory": {
"format": "󰍛",
"tooltip-format": "󰍛 Total: {total:0.1f}GB, Avail: {avail:0.1f}GB, Used: {used:0.1f}GB ({percentage}%)\n󰓡 Total: {swapTotal:0.1f}GB, Avail: {swapAvail:0.1f}GB, Used: {swapUsed:0.1f}GB ({swapPercentage}%)",
"on-click": "",
"tooltip": true
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": "󰂄 {capacity}%",
"format-plugged": "󱘖 {capacity}%",
"format-icons": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
"on-click": "",
"tooltip": false
},
"clock": {
"interval": 1,
"format": "󰥔\n{:%I\n%M\n}",
"format-alt": "󰣆\n{:%d\n%m\n%y\n󰥔\n%I\n%M\n}",
"tooltip": true,
"tooltip-format": "{calendar}",
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"format": {
"today": "<span color='#0dbc79'>{}</span>"
}
}
"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
"height": 30,
"margin": "0 0 0 0",
//"width": 1350, // Waybar width
// Choose the order of the modules idle_inhibitor
"modules-left": [
"custom/media",
"hyprland/workspaces",
"tray"
],
"modules-center": ["clock"],
"modules-right": [
"wireplumber",
"backlight",
"battery",
"network",
"custom/power"
],
// Modules configuration
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{icon}",
// "format": "< %g >",
// "format_focused" : "< %g ● >",
"format-icons": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9",
"10": "10"
}
},
"custom/media": {
// "format": "{format}",
"max-length": 40,
"escape": true,
"exec": "playerctl metadata title -F"
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"sway/window": {
"format": "~ {app_id}"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
"icon-size": 14,
"spacing": 5
},
"clock": {
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode": "month",
"mode-mon-col": 3,
"weeks-pos": "right",
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#ffead3'><b>{}</b></span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
}
},
"actions": {
"on-click-right": "mode",
"on-click-forward": "tz_up",
"on-click-backward": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
},
"format": " {:%a %d %b  %I:%M %p}", //12 hour format
// "format": " {:%d %m %Y  %H:%M}", //24 hour format
"format-alt": " {:%d/%m/%Y  %H:%M:%S}",
// //"timezones": [ "Kolkata" ],
// //"max-length": 200
"interval": 1
},
// "clock": {
// "format": " {:%H:%M:%S}",
// "format-alt": " {:%A, %B %d, %Y (%R)}",
// "tooltip-format": "<tt><small>{calendar}</small></tt>",
// "calendar": {
// "mode" : "month",
// "mode-mon-col" : 3,
// "weeks-pos" : "right",
// "on-scroll" : 1,
// "on-click-right": "mode",
// "format": {
// "months": "<span color='#ffead3'><b>{}</b></span>",
// "days": "<span color='#ecc6d9'><b>{}</b></span>",
// "weeks": "<span color='#99ffdd'><b>W{}</b></span>",
// "weekdays": "<span color='#ffcc66'><b>{}</b></span>",
// "today": "<span color='#ff6699'><b><u>{}</u></b></span>"
// }
// },
// "actions": {
// "on-click-right": "mode",
// "on-click-forward": "tz_up",
// "on-click-backward": "tz_down",
// "on-scroll-up": "shift_up",
// "on-scroll-down": "shift_down"
// },
// "interval": 1
// },
"cpu": {
"format": "﬙ {usage: >3}%",
"on-click": "alacritty -e htop"
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity: >3}%",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
//"format-icons": ["", "", "", "", "", "", "", "", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"network": {
// "interface": "wlp2s0", // (Optional) To force the use of this interface
"format": "⚠ Disabled",
//"format-wifi": " {essid}",
"format-wifi": " Connected",
// "format-ethernet": " {ifname}: {ipaddr}/{cidr}",
"format-ethernet": " Wired",
"format-disconnected": "⚠ Disconnected",
// "on-click": "alacritty -e nmtui"
"on-click": "kitty -e nm-tui"
},
"wireplumber": {
"format": "{volume}% {icon}",
"format-muted": "",
"on-click": "helvum",
"format-icons": ["", "", ""]
},
"custom/power": {
"format": "⏻",
"on-click": "poweroff", // just dont accidentally press this..
"tooltip": false
}
}