Add screenshot -> editor key
This commit is contained in:
parent
fe4ab2f063
commit
0c0a1d0fc9
|
@ -36,6 +36,12 @@ let
|
||||||
${pkgs.grim}/bin/grim -g (${pkgs.slurp}/bin/slurp) - | ${pkgs.wl-clipboard}/bin/wl-copy
|
${pkgs.grim}/bin/grim -g (${pkgs.slurp}/bin/slurp) - | ${pkgs.wl-clipboard}/bin/wl-copy
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
screenshotEditScript = pkgs.writeScriptBin "screenshot" ''
|
||||||
|
#! ${pkgs.fish}/bin/fish
|
||||||
|
|
||||||
|
${pkgs.grim}/bin/grim -g (${pkgs.slurp}/bin/slurp) - | ${pkgs.swappy}/bin/swappy -f -
|
||||||
|
'';
|
||||||
|
|
||||||
ignored-devices = [ "Surface_Headphones" ];
|
ignored-devices = [ "Surface_Headphones" ];
|
||||||
playerctl = "${pkgs.playerctl}/bin/playerctl --ignore-player=${strings.concatStringsSep "," ignored-devices}";
|
playerctl = "${pkgs.playerctl}/bin/playerctl --ignore-player=${strings.concatStringsSep "," ignored-devices}";
|
||||||
|
|
||||||
|
@ -217,6 +223,7 @@ in
|
||||||
"${mod}+Shift+r" = "mode resize";
|
"${mod}+Shift+r" = "mode resize";
|
||||||
## Screenshot
|
## Screenshot
|
||||||
"Print" = "exec ${screenshotScript}/bin/screenshot";
|
"Print" = "exec ${screenshotScript}/bin/screenshot";
|
||||||
|
"Shift+Print" = "exec ${screenshotEditScript}/bin/screenshot";
|
||||||
## Locking
|
## Locking
|
||||||
"${mod}+semicolon" = "exec ${cfg.lockCmd}";
|
"${mod}+semicolon" = "exec ${cfg.lockCmd}";
|
||||||
## Multimedia
|
## Multimedia
|
||||||
|
|
Loading…
Reference in a new issue