1
0
forked from extern/nix-config

waybar: Add gaps module

This commit is contained in:
Donovan Glover 2023-07-01 21:11:48 -04:00
parent 8ae0171859
commit 5022615a2c
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -84,8 +84,14 @@ let
};
"custom/wallpaper" = {
format = "\n";
on-click = "bash -c ~/.config/waybar/wallpaper.sh";
format = if isVertical then "\n" else "";
on-click = "bash -c ~/wallhaven/timer.sh";
tooltip = false;
};
"custom/gaps" = {
format = if isVertical then "\n" else "";
on-click = "bash -c ~/.config/hypr/gaps.sh";
tooltip = false;
};
};
@ -102,8 +108,8 @@ in
height = if isVertical then null else 30;
spacing = 8;
modules-left = if icons then [ "wlr/taskbar" ] else [ "wlr/workspaces" "custom/new-workspace" ];
modules-center = [ "custom/wallpaper" ];
modules-left = if icons then [ "wlr/taskbar" ] else [ "wlr/workspaces" ];
modules-center = [ "custom/wallpaper" "custom/gaps" ];
modules-right = [ "wireplumber" "backlight" "battery" "clock" ];
};
};