Screenshot-annotate.sh
This commit is contained in:
parent
7b9a972e97
commit
13da32970b
2 changed files with 13 additions and 3 deletions
|
|
@ -14,6 +14,7 @@ input {
|
||||||
|
|
||||||
// For example:
|
// For example:
|
||||||
layout "eu,ru"
|
layout "eu,ru"
|
||||||
|
//variant "dvorak,,"
|
||||||
options "grp:lctrl_toggle, ctrl:nocaps"
|
options "grp:lctrl_toggle, ctrl:nocaps"
|
||||||
|
|
||||||
// If this section is empty, niri will fetch xkb settings
|
// If this section is empty, niri will fetch xkb settings
|
||||||
|
|
@ -344,6 +345,14 @@ window-rule {
|
||||||
// This app-id regular expression will work for both:
|
// This app-id regular expression will work for both:
|
||||||
// - host Firefox (app-id is "firefox")
|
// - host Firefox (app-id is "firefox")
|
||||||
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
|
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
|
||||||
|
match app-id="com.gabm.satty"
|
||||||
|
open-floating true
|
||||||
|
open-focused true
|
||||||
|
min-width 700
|
||||||
|
min-height 400
|
||||||
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
match app-id=r#"librewolf$"# title="^Picture-in-Picture$"
|
match app-id=r#"librewolf$"# title="^Picture-in-Picture$"
|
||||||
open-floating true
|
open-floating true
|
||||||
}
|
}
|
||||||
|
|
@ -610,9 +619,8 @@ binds {
|
||||||
// Mod+Space { switch-layout "next"; }
|
// Mod+Space { switch-layout "next"; }
|
||||||
// Mod+Shift+Space { switch-layout "prev"; }
|
// Mod+Shift+Space { switch-layout "prev"; }
|
||||||
|
|
||||||
Print { screenshot; }
|
Print { spawn "screenshot-annotate.sh"; }
|
||||||
Ctrl+Print { screenshot-screen; }
|
Mod+Shift+S { spawn "screenshot-annotate.sh"; }
|
||||||
Alt+Print { screenshot-window; }
|
|
||||||
|
|
||||||
// Applications such as remote-desktop clients and software KVM switches may
|
// Applications such as remote-desktop clients and software KVM switches may
|
||||||
// request that niri stops processing the keyboard shortcuts defined here
|
// request that niri stops processing the keyboard shortcuts defined here
|
||||||
|
|
|
||||||
2
niri/bin/screenshot-annotate.sh
Executable file
2
niri/bin/screenshot-annotate.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
grim -g "$(slurp -w 0)" -t ppm - | satty --early-exit --copy-command 'wl-copy' --filename='-' -o '~/Pictures/Screenshots/Screenshot-%Y-%m-%d_%H:%M:%S.png' --initial-tool brush
|
||||||
Loading…
Add table
Add a link
Reference in a new issue