From d20393e077b8d97b18f4a224ddcb20caf6dac23b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 10 Sep 2025 15:57:26 +0200 Subject: ... --- accounts/gkleen@sif/niri/default.nix | 19 +++++------ accounts/gkleen@sif/niri/swayosd.nix | 66 ------------------------------------ 2 files changed, 8 insertions(+), 77 deletions(-) delete mode 100644 accounts/gkleen@sif/niri/swayosd.nix (limited to 'accounts/gkleen@sif/niri') diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index 1ff149bc..10b85169 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix @@ -10,7 +10,6 @@ let makoctl = lib.getExe' config.services.mako.package "makoctl"; loginctl = lib.getExe' hostConfig.systemd.package "loginctl"; systemctl = lib.getExe' hostConfig.systemd.package "systemctl"; - swayosd-client = lib.getExe' config.services.swayosd.package "swayosd-client"; focus_or_spawn = pkgs.writeShellApplication { name = "focus-or-spawn"; @@ -168,7 +167,6 @@ in { imports = [ ./waybar.nix ./mako.nix - ./swayosd.nix ]; options = { @@ -939,15 +937,6 @@ in { allow-when-locked = true; }; - "XF86MonBrightnessUp" = { - action = spawn swayosd-client "--brightness" "raise"; - allow-when-locked = true; - }; - "XF86MonBrightnessDown" = { - action = spawn swayosd-client "--brightness" "lower"; - allow-when-locked = true; - }; - "Mod+Semicolon".action = spawn makoctl "dismiss" "--group"; "Mod+Shift+Semicolon".action = spawn makoctl "dismiss" "--all"; "Mod+Period".action = spawn makoctl "menu" "--" (lib.getExe config.programs.fuzzel.package) "--dmenu"; @@ -988,6 +977,14 @@ in { allow-when-locked = true; action = shell { Volume."mic-muted" = "toggle"; }; }; + "XF86MonBrightnessUp" = { + action = shell { Brightness = "up"; }; + allow-when-locked = true; + }; + "XF86MonBrightnessDown" = { + action = shell { Brightness = "down"; }; + allow-when-locked = true; + }; })) (map ({ name, selector, spawn, key, ...}: if key != null && selector != null && spawn != null then bind key { action = focus-or-spawn-action selector name spawn; } else null) cfg.scratchspaces) (map ({ name, moveKey, ...}: if moveKey != null then bind moveKey { action = kdl.magic-leaf "move-column-to-workspace" name; } else null) cfg.scratchspaces) diff --git a/accounts/gkleen@sif/niri/swayosd.nix b/accounts/gkleen@sif/niri/swayosd.nix deleted file mode 100644 index 54ebb302..00000000 --- a/accounts/gkleen@sif/niri/swayosd.nix +++ /dev/null @@ -1,66 +0,0 @@ -{ pkgs, ... }: -{ - config = { - services.swayosd = { - enable = true; - topMargin = 0.4769706078; - stylePath = pkgs.runCommand "style.css" { - passAsFile = [ "src" ]; - src = '' - window#osd { - padding: 12px 20px; - border-radius: 999px; - border: none; - background: rgba(0, 0, 0, 0.87); - - #container { - margin: 16px; - } - - image, - label { - color: rgb(255, 255, 255); - - &:disabled { - opacity: 1; - color: rgb(84, 84, 84); - } - } - - progressbar { - min-height: 6px; - border-radius: 999px; - background: transparent; - border: none; - - trough, progress { - min-height: inherit; - border-radius: inherit; - border: none; - } - - trough { - background: rgb(127, 127, 127); - } - progress { - background: rgb(255, 255, 255); - } - - &:disabled { - opacity: 1; - - trough { - background: rgb(19, 19, 19); - } - progress { - background: rgb(38, 38, 38); - } - } - } - } - ''; - buildInputs = with pkgs; [sass]; - } "scss -C --sourcemap=none --style=compact $srcPath $out"; - }; - }; -} -- cgit v1.2.3