mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-20 17:57:47 +02:00
waybar: Add gaps module
This commit is contained in:
parent
8ae0171859
commit
5022615a2c
@ -84,8 +84,14 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
"custom/wallpaper" = {
|
"custom/wallpaper" = {
|
||||||
format = "壁\n紙";
|
format = if isVertical then "壁\n紙" else "壁紙";
|
||||||
on-click = "bash -c ~/.config/waybar/wallpaper.sh";
|
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;
|
tooltip = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -102,8 +108,8 @@ in
|
|||||||
height = if isVertical then null else 30;
|
height = if isVertical then null else 30;
|
||||||
spacing = 8;
|
spacing = 8;
|
||||||
|
|
||||||
modules-left = if icons then [ "wlr/taskbar" ] else [ "wlr/workspaces" "custom/new-workspace" ];
|
modules-left = if icons then [ "wlr/taskbar" ] else [ "wlr/workspaces" ];
|
||||||
modules-center = [ "custom/wallpaper" ];
|
modules-center = [ "custom/wallpaper" "custom/gaps" ];
|
||||||
modules-right = [ "wireplumber" "backlight" "battery" "clock" ];
|
modules-right = [ "wireplumber" "backlight" "battery" "clock" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user