waybar: Add autohide support

This commit is contained in:
Donovan Glover 2023-06-29 00:34:45 -04:00
parent 56740bc22a
commit 808cf1cc40
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 7 additions and 3 deletions

View File

@ -19,6 +19,10 @@ in
height = if isVertical then null else 45;
spacing = 8;
autohide = true;
exclusive = false;
autohide-starthidden = true;
modules-left = if icons then [ "wlr/taskbar" ] else [ "wlr/workspaces" "custom/new-workspace" ];
modules-right = [ "tray" "wireplumber" "backlight" "battery" "clock" ];

View File

@ -2,13 +2,13 @@
nixpkgs.overlays = [
(final: prev: {
waybar = prev.waybar.overrideAttrs (old: rec {
version = "b0f89f2bc115f4447dbf4565faca9a6122594d68";
version = "635e06209dcf14612549864f461847f94b86406b";
src = final.fetchFromGitHub {
owner = "Alexays";
owner = "varbhat";
repo = "Waybar";
rev = version;
sha256 = "sha256-wH8UvSYnEBCdF2r6yAtocVuaZM9eIXLlg31n9FKTISE=";
sha256 = "sha256-9D+OTPVvjnjCl3OW/YUoFmDi8IJLs/8QTi5JUorLmL8=";
};
postPatch = /* bash */ ''