From 861a04827a19facd4ce0eb4693de43f64507df52 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 19 May 2025 21:27:36 +0200 Subject: ... --- accounts/gkleen@sif/niri/waybar.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'accounts') diff --git a/accounts/gkleen@sif/niri/waybar.nix b/accounts/gkleen@sif/niri/waybar.nix index cc131c08..1de2e1fa 100644 --- a/accounts/gkleen@sif/niri/waybar.nix +++ b/accounts/gkleen@sif/niri/waybar.nix @@ -27,8 +27,14 @@ in { modules-right = [ "custom/worktime" "custom/worktime-today" "custom/weather" "custom/keymap" - "privacy" "tray" "wireplumber" "backlight" "battery" "idle_inhibitor" "custom/mako" "clock" ]; + "privacy" "tray" "wireplumber" "backlight" "battery" "idle_inhibitor" "custom/mako" "custom/lid_inhibitor" "clock" ]; + "custom/lid_inhibitor" = { + format = "{}"; + return-type = "json"; + exec = lib.getExe pkgs.waybar-systemd-inhibit; + on-click = lib.getExe' pkgs.waybar-systemd-inhibit "waybar-systemd-inhibit-toggle"; + }; "custom/mako" = { format = "{}"; return-type = "json"; @@ -211,7 +217,7 @@ in { layer = "top"; position = "top"; height = 14; - output = [ "!eDP-1" "!DP-2" "!DP-3" ]; + output = [ "!eDP-1" "!DP-2" "!DP-3" "*" ]; modules-left = [ "niri/workspaces" ]; modules-center = [ "niri/window" ]; modules-right = [ "clock" ]; @@ -293,7 +299,7 @@ in { #tray { margin: 0; } - #battery, #idle_inhibitor, #backlight, #wireplumber, #custom-mako { + #battery, #idle_inhibitor, #backlight, #wireplumber, #custom-mako, #custom-lid_inhibitor { color: @grey; margin: 0 5px 0 2px; } @@ -302,7 +308,11 @@ in { margin-left: 6px; } #custom-mako { - margin-right: 2px; + margin-right: 4px; + margin-left: 3px; + } + #custom-lid_inhibitor { + margin-right: 3px; margin-left: 3px; } #battery { @@ -330,7 +340,7 @@ in { color: @orange; } - #idle_inhibitor { + #idle_inhibitor, #custom-lid_inhibitor { padding-top: 1px; } -- cgit v1.2.3