flake update and add screenshotter

This commit is contained in:
2026-05-05 18:49:35 +02:00
parent 113834a397
commit 6f63018f30
4 changed files with 40 additions and 37 deletions

View File

@@ -259,7 +259,8 @@ binds {
// Mod+Space { switch-layout "next"; }
// Mod+Shift+Space { switch-layout "prev"; }
Print { screenshot; }
//Print { screenshot; }
Mod+Shift+P { spawn-sh "set -e; grim -t ppm -g \"$(slurp -o -d -F monospace)\" - | satty --filename - --copy-command=wl-copy --annotation-size-factor 2.0 --output-filename=\"$(xdg-user-dir PICTURES)/Screenshots/Screenshot from %Y-%m-%d %H:%M:%S.png\" --actions-on-enter=\"save-to-clipboard,exit\" --brush-smooth-history-size=5 --disable-notifications"; }
Ctrl+Print { screenshot-screen; }
Alt+Print { screenshot-window; }
@@ -279,5 +280,5 @@ binds {
// Powers off the monitors. To turn them back on, do any input like
// moving the mouse or pressing any other key.
Mod+Shift+P { power-off-monitors; }
//Mod+Shift+P { power-off-monitors; }
}

View File

@@ -322,10 +322,10 @@ prefer-no-csd
// You can change the path where screenshots are saved.
// A ~ at the front will be expanded to the home directory.
// The path is formatted with strftime(3) to give you the screenshot date and time.
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
// screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
// You can also set this to null to disable saving screenshots to disk.
// screenshot-path null
screenshot-path null
// Animation settings.
// The wiki explains how to configure individual animations: