summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'accounts')
-rw-r--r--accounts/gkleen@sif/niri/default.nix28
1 files changed, 10 insertions, 18 deletions
diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix
index e4a93a49..302baea9 100644
--- a/accounts/gkleen@sif/niri/default.nix
+++ b/accounts/gkleen@sif/niri/default.nix
@@ -387,6 +387,8 @@ in {
387 in 387 in
388 [ (flag "prefer-no-csd") 388 [ (flag "prefer-no-csd")
389 389
390 (leaf "screenshot-path" "~/screenshots/%Y-%m-%dT%H:%M:%S.png")
391
390 (plain "hotkey-overlay" [ 392 (plain "hotkey-overlay" [
391 (flag "skip-at-startup") 393 (flag "skip-at-startup")
392 ]) 394 ])
@@ -703,27 +705,17 @@ in {
703 wl-copy "$(cut -d ':' -f 1 <<<"$FUZZEL_RES" | tr -d '\n')" && wtype -k XF86Paste 705 wl-copy "$(cut -d ':' -f 1 <<<"$FUZZEL_RES" | tr -d '\n')" && wtype -k XF86Paste
704 ''; 706 '';
705 })); 707 }));
706 "Print".action = spawn (lib.getExe (pkgs.writeShellApplication { 708 "Print".action = screenshot;
707 name = "screenshot"; 709 "Control+Print".action = screenshot-window;
708 runtimeInputs = with pkgs; [ grim slurp wl-clipboard-rs coreutils ]; 710 # "Shift+Print".action = screenshot-screen;
709 text = ''
710 grim -g "$(slurp -b 00000080 -c FFFFFFFF -s 00000000 -w 1)" - \
711 | tee "$HOME/screenshots/$(date +"%Y-%m-%dT%H:%M:%S").png" \
712 | wl-copy --type image/png
713 '';
714 }));
715 "Shift+Print".action = spawn (lib.getExe (pkgs.writeShellApplication {
716 name = "screenshot";
717 runtimeInputs = with pkgs; [ grim niri gojq wl-clipboard-rs coreutils ];
718 text = ''
719 grim -o "$(niri msg -j workspaces | jq -r '.[] | select(.is_focused) | .output')" - \
720 | tee "$HOME/screenshots/$(date +"%Y-%m-%dT%H:%M:%S").png" \
721 | wl-copy --type image/png
722 '';
723 }));
724 "Mod+B".action = with-select-window-action ".workspace_id == ($active_workspace | tonumber)" "{\"Action\":{\"FocusWindow\":{\"id\": .id}}}"; 711 "Mod+B".action = with-select-window-action ".workspace_id == ($active_workspace | tonumber)" "{\"Action\":{\"FocusWindow\":{\"id\": .id}}}";
725 "Mod+Shift+B".action = with-select-window-action "true" "{\"Action\":{\"FocusWindow\":{\"id\": .id}}}"; 712 "Mod+Shift+B".action = with-select-window-action "true" "{\"Action\":{\"FocusWindow\":{\"id\": .id}}}";
726 713
714 "Mod+Escape" = {
715 allow-inhibiting = false;
716 action = toggle-keyboard-shortcuts-inhibit;
717 };
718
727 "Mod+H".action = focus-column-left; 719 "Mod+H".action = focus-column-left;
728 "Mod+T".action = focus-window-down; 720 "Mod+T".action = focus-window-down;
729 "Mod+N".action = focus-window-up; 721 "Mod+N".action = focus-window-up;