diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-05-14 13:50:55 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-05-14 13:50:55 +0200 |
commit | 3757e8bce7d5d8e3e9cd650916474f09ef1a2e0d (patch) | |
tree | 9d53eacba70dea65d5c18ad7b9e98ee2fd85e811 | |
parent | 5818cc9c1ecb5e0df7cb1aac154edf6d855ee986 (diff) | |
download | nixos-3757e8bce7d5d8e3e9cd650916474f09ef1a2e0d.tar nixos-3757e8bce7d5d8e3e9cd650916474f09ef1a2e0d.tar.gz nixos-3757e8bce7d5d8e3e9cd650916474f09ef1a2e0d.tar.bz2 nixos-3757e8bce7d5d8e3e9cd650916474f09ef1a2e0d.tar.xz nixos-3757e8bce7d5d8e3e9cd650916474f09ef1a2e0d.zip |
...
-rw-r--r-- | accounts/gkleen@sif/niri/default.nix | 2 | ||||
-rw-r--r-- | accounts/gkleen@sif/niri/swayosd.nix | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index 3f506d52..d526b3b6 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix | |||
@@ -778,7 +778,7 @@ in { | |||
778 | })); | 778 | })); |
779 | "Print".action = screenshot; | 779 | "Print".action = screenshot; |
780 | "Control+Print".action = screenshot-window; | 780 | "Control+Print".action = screenshot-window; |
781 | # "Shift+Print".action = screenshot-screen; | 781 | "Shift+Print".action = kdl.magic-leaf "screenshot-screen"; |
782 | "Mod+B".action = with-select-window-action ".workspace_id == ($active_workspace | tonumber)" "{\"Action\":{\"FocusWindow\":{\"id\": .id}}}"; | 782 | "Mod+B".action = with-select-window-action ".workspace_id == ($active_workspace | tonumber)" "{\"Action\":{\"FocusWindow\":{\"id\": .id}}}"; |
783 | "Mod+Shift+B".action = with-select-window-action "true" "{\"Action\":{\"FocusWindow\":{\"id\": .id}}}"; | 783 | "Mod+Shift+B".action = with-select-window-action "true" "{\"Action\":{\"FocusWindow\":{\"id\": .id}}}"; |
784 | 784 | ||
diff --git a/accounts/gkleen@sif/niri/swayosd.nix b/accounts/gkleen@sif/niri/swayosd.nix index 984927c2..54ebb302 100644 --- a/accounts/gkleen@sif/niri/swayosd.nix +++ b/accounts/gkleen@sif/niri/swayosd.nix | |||
@@ -3,9 +3,10 @@ | |||
3 | config = { | 3 | config = { |
4 | services.swayosd = { | 4 | services.swayosd = { |
5 | enable = true; | 5 | enable = true; |
6 | topMargin = 0.946154; | 6 | topMargin = 0.4769706078; |
7 | stylePath = pkgs.runCommand "style.css" { | 7 | stylePath = pkgs.runCommand "style.css" { |
8 | src = pkgs.writeText "style.scss" '' | 8 | passAsFile = [ "src" ]; |
9 | src = '' | ||
9 | window#osd { | 10 | window#osd { |
10 | padding: 12px 20px; | 11 | padding: 12px 20px; |
11 | border-radius: 999px; | 12 | border-radius: 999px; |
@@ -59,7 +60,7 @@ | |||
59 | } | 60 | } |
60 | ''; | 61 | ''; |
61 | buildInputs = with pkgs; [sass]; | 62 | buildInputs = with pkgs; [sass]; |
62 | } "scss -C --sourcemap=none --style=compact $src $out"; | 63 | } "scss -C --sourcemap=none --style=compact $srcPath $out"; |
63 | }; | 64 | }; |
64 | }; | 65 | }; |
65 | } | 66 | } |