mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-01 03:29:24 +01:00
waybar: Add autohide support
This commit is contained in:
parent
56740bc22a
commit
808cf1cc40
@ -19,6 +19,10 @@ in
|
|||||||
height = if isVertical then null else 45;
|
height = if isVertical then null else 45;
|
||||||
spacing = 8;
|
spacing = 8;
|
||||||
|
|
||||||
|
autohide = true;
|
||||||
|
exclusive = false;
|
||||||
|
autohide-starthidden = true;
|
||||||
|
|
||||||
modules-left = if icons then [ "wlr/taskbar" ] else [ "wlr/workspaces" "custom/new-workspace" ];
|
modules-left = if icons then [ "wlr/taskbar" ] else [ "wlr/workspaces" "custom/new-workspace" ];
|
||||||
modules-right = [ "tray" "wireplumber" "backlight" "battery" "clock" ];
|
modules-right = [ "tray" "wireplumber" "backlight" "battery" "clock" ];
|
||||||
|
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
waybar = prev.waybar.overrideAttrs (old: rec {
|
waybar = prev.waybar.overrideAttrs (old: rec {
|
||||||
version = "b0f89f2bc115f4447dbf4565faca9a6122594d68";
|
version = "635e06209dcf14612549864f461847f94b86406b";
|
||||||
|
|
||||||
src = final.fetchFromGitHub {
|
src = final.fetchFromGitHub {
|
||||||
owner = "Alexays";
|
owner = "varbhat";
|
||||||
repo = "Waybar";
|
repo = "Waybar";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-wH8UvSYnEBCdF2r6yAtocVuaZM9eIXLlg31n9FKTISE=";
|
sha256 = "sha256-9D+OTPVvjnjCl3OW/YUoFmDi8IJLs/8QTi5JUorLmL8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = /* bash */ ''
|
postPatch = /* bash */ ''
|
||||||
|
Loading…
Reference in New Issue
Block a user