waybar: support hyprland

This commit is contained in:
LordMZTE 2023-08-26 16:31:51 +02:00
parent c97c9f9e48
commit 880ba7c3e0
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 11 additions and 1 deletions

View file

@ -1,12 +1,19 @@
// vim: ft=jsonc
{ {
// "layer": "top", // Waybar at top layer // "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right) // "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 25, // Waybar height (to be removed for auto height) "height": 25, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width // "width": 1280, // Waybar width
"spacing": 4, // Gaps between modules (4px) "spacing": 4, // Gaps between modules (4px)
// Choose the order of the modules
//<! if opt.wayland_compositor == "river" then !>
"modules-left": ["river/tags"], "modules-left": ["river/tags"],
"modules-center": ["river/window"], "modules-center": ["river/window"],
//<! elseif opt.wayland_compositor == "hyprland" then !>
"modules-left": ["wlr/workspaces"],
"modules-center": ["wlr/taskbar"],
//<! end !>
"modules-right": ["cpu", "memory", "pulseaudio", "temperature", "battery", "battery#bat2", "clock", "tray"], "modules-right": ["cpu", "memory", "pulseaudio", "temperature", "battery", "battery#bat2", "clock", "tray"],
"tray": { "tray": {
// "icon-size": 21, // "icon-size": 21,

View file

@ -19,6 +19,9 @@ opts.cursor = {
size = 24, size = 24,
} }
-- used in waybar config
opts.wayland_compositor = nil
opts.gtk_theme = "Catppuccin-Mocha-Standard-Red-dark" opts.gtk_theme = "Catppuccin-Mocha-Standard-Red-dark"
opts.icon_theme = "candy-icons" opts.icon_theme = "candy-icons"