mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-13 23:33:51 +01:00
waybar: support hyprland
This commit is contained in:
parent
c97c9f9e48
commit
880ba7c3e0
2 changed files with 11 additions and 1 deletions
|
@ -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,
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue