fix(home): Don't hardcode hyprctl

This commit is contained in:
punkfairie 2025-01-12 17:55:20 -08:00
parent 06910a3211
commit 051b44df9f
No known key found for this signature in database
GPG key ID: B3C5488E9A1A7CA6

View file

@ -38,15 +38,18 @@ in {
"clock"
];
"hyprland/workspaces" = {
"hyprland/workspaces" = let
hyprctl =
lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl";
in {
format = "{name}";
format-icons = {
default = " ";
active = " ";
urgent = " ";
};
on-scroll-up = "hyprctl dispatch workspace e+1";
on-scroll-down = "hyprctl dispatch workspace e-1";
on-scroll-up = "${hyprctl} dispatch workspace e+1";
on-scroll-down = "${hyprctl} dispatch workspace e-1";
};
"clock" = {