forked from nico/dots
waybar: updated waybar style and configuration
This commit is contained in:
parent
deb4cec853
commit
712ad45df1
2 changed files with 371 additions and 305 deletions
|
|
@ -1,194 +1,215 @@
|
|||
// -*- mode: jsonc -*-
|
||||
// waybar taken from: https://github.com/gmr458/.dotfiles/tree/main/waybar/.config/waybar
|
||||
|
||||
{
|
||||
"layer": "top", // Waybar at top layer
|
||||
"position": "left", // Waybar position (top|bottom|left|right)
|
||||
// "height": 30, // Waybar height (to be removed for auto height)
|
||||
"width": 15, // Waybar width
|
||||
"spacing": 4, // Gaps between modules (4px)
|
||||
// Choose the order of the modules
|
||||
"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": [
|
||||
"hyprland/workspaces"
|
||||
// "custom/media"
|
||||
"custom/notification",
|
||||
// "backlight/slider",
|
||||
"backlight",
|
||||
"pulseaudio/slider",
|
||||
"pulseaudio#audio",
|
||||
"network"
|
||||
// "bluetooth"
|
||||
],
|
||||
// "modules-center": [
|
||||
// "hyprland/window"
|
||||
// ],
|
||||
"modules-right": [
|
||||
// "mpd",
|
||||
// "idle_inhibitor",
|
||||
// "pulseaudio",
|
||||
// "power-profiles-daemon",
|
||||
// "cpu",
|
||||
// "memory",
|
||||
// "temperature",
|
||||
// "backlight",
|
||||
// "keyboard-state",
|
||||
// "sway/language",
|
||||
"network",
|
||||
"wireplumber",
|
||||
"battery",
|
||||
"tray",
|
||||
"clock"
|
||||
],
|
||||
// Modules configuration
|
||||
// "sway/workspaces": {
|
||||
// "disable-scroll": true,
|
||||
// "all-outputs": true,
|
||||
// "warp-on-scroll": false,
|
||||
// "format": "{name}: {icon}",
|
||||
// "format-icons": {
|
||||
// "1": "",
|
||||
// "2": "",
|
||||
// "3": "",
|
||||
// "4": "",
|
||||
// "5": "",
|
||||
// "urgent": "",
|
||||
// "focused": "",
|
||||
// "default": ""
|
||||
// }
|
||||
// },
|
||||
"keyboard-state": {
|
||||
"numlock": true,
|
||||
"capslock": true,
|
||||
"format": "{name} {icon}",
|
||||
"format-icons": {
|
||||
"locked": "",
|
||||
"unlocked": ""
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"sway/scratchpad": {
|
||||
"format": "{icon} {count}",
|
||||
"show-empty": false,
|
||||
"format-icons": ["", ""],
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{app}: {title}"
|
||||
},
|
||||
"mpd": {
|
||||
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
||||
"format-disconnected": "Disconnected ",
|
||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
||||
"unknown-tag": "N/A",
|
||||
"interval": 5,
|
||||
"consume-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"random-icons": {
|
||||
"off": "<span color=\"#f53c3c\"></span> ",
|
||||
"on": " "
|
||||
},
|
||||
"repeat-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"single-icons": {
|
||||
"on": "1 "
|
||||
},
|
||||
"state-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
},
|
||||
"tooltip-format": "MPD (connected)",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"custom/notification": {
|
||||
"tooltip": false,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
"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
|
||||
},
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 10
|
||||
// "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}%"
|
||||
},
|
||||
"clock": {
|
||||
// "timezone": "America/New_York",
|
||||
"format": "{:%H\n%M}",
|
||||
"format-alt": "{:%Y-%m-%d}"
|
||||
"pulseaudio/slider": {
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"orientation": "vertical"
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
"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": "{}% "
|
||||
},
|
||||
"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": ["", "", ""]
|
||||
},
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||
"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": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{icon}",
|
||||
"format-full": "{icon}",
|
||||
"format-charging": "",
|
||||
"format-plugged": "",
|
||||
"format-alt": "{time} {icon}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-plugged": " {capacity}%",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", "", ""],
|
||||
"on-click": "",
|
||||
"tooltip": false
|
||||
},
|
||||
"wireplumber": {
|
||||
"format": "{icon}",
|
||||
"format-muted": "",
|
||||
"tooltip-format": "{volume}% on {node_name}",
|
||||
"on-click": "helvum",
|
||||
"max-volume": 100,
|
||||
"scroll-step": 1,
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
//"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
//"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
//"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
//"format-linked": "{ifname} (No IP) ",
|
||||
//"format-disconnected": "Disconnected ⚠",
|
||||
//"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
"format-wifi": "",
|
||||
"format-ethernet": "",
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"format-linked": "",
|
||||
"format-disconnected": "⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
"custom/media": {
|
||||
"format": "{icon} {text}",
|
||||
"return-type": "json",
|
||||
"max-length": 40,
|
||||
"format-icons": {
|
||||
"spotify": "",
|
||||
"default": "🎜"
|
||||
},
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
},
|
||||
"custom/power": {
|
||||
"format" : "⏻ ",
|
||||
"tooltip": false,
|
||||
"menu": "on-click",
|
||||
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
|
||||
"menu-actions": {
|
||||
"shutdown": "shutdown",
|
||||
"reboot": "reboot",
|
||||
"suspend": "systemctl suspend",
|
||||
"hibernate": "systemctl hibernate"
|
||||
}
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue