mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-29 10:09:30 +01:00
waybar: Add wallpaper button
This makes it possible to change the wallpaper with a button press. Unfortunately, waybar does not support hover indicators for custom modules, so there's no way to tell that this button is clickable.
This commit is contained in:
parent
c53057b129
commit
77b41ce0f0
@ -82,6 +82,12 @@ let
|
||||
on-click-middle = "hyprctl dispatch workspace empty";
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
"custom/wallpaper" = {
|
||||
format = "壁\n紙";
|
||||
on-click = "bash -c ~/.config/waybar/wallpaper.sh";
|
||||
tooltip = false;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
@ -101,6 +107,7 @@ in
|
||||
autohide-starthidden = true;
|
||||
|
||||
modules-left = if icons then [ "wlr/taskbar" ] else [ "wlr/workspaces" "custom/new-workspace" ];
|
||||
modules-center = [ "custom/wallpaper" ];
|
||||
modules-right = [ "wireplumber" "backlight" "battery" "clock" ];
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user