Move from flameshot to grim script
This commit is contained in:
parent
e9ce42d9f5
commit
e238879bbb
|
@ -29,6 +29,13 @@ let
|
||||||
in
|
in
|
||||||
f from;
|
f from;
|
||||||
|
|
||||||
|
screenshotScript = pkgs.writeScriptBin "screenshot" ''
|
||||||
|
#! ${pkgs.fish}/bin/fish
|
||||||
|
|
||||||
|
${pkgs.grim}/bin/grim -g (${pkgs.slurp}/bin/slurp) - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ ./ibus.nix ];
|
imports = [ ./ibus.nix ];
|
||||||
|
@ -96,7 +103,6 @@ in
|
||||||
# Waybar
|
# Waybar
|
||||||
{ command = "systemctl --user restart waybar"; always = true; }
|
{ command = "systemctl --user restart waybar"; always = true; }
|
||||||
# Startup programs
|
# Startup programs
|
||||||
{ command = "${pkgs.flameshot}/bin/flameshot"; }
|
|
||||||
{ command = "${config.programs.firefox.package}/bin/firefox"; }
|
{ command = "${config.programs.firefox.package}/bin/firefox"; }
|
||||||
{ command = "${pkgs.discord}/bin/discord"; }
|
{ command = "${pkgs.discord}/bin/discord"; }
|
||||||
];
|
];
|
||||||
|
@ -114,7 +120,7 @@ in
|
||||||
"${mod}+r" = "exec ${config.wayland.windowManager.sway.config.menu}";
|
"${mod}+r" = "exec ${config.wayland.windowManager.sway.config.menu}";
|
||||||
"${mod}+Shift+r" = "mode resize";
|
"${mod}+Shift+r" = "mode resize";
|
||||||
## Screenshot
|
## Screenshot
|
||||||
"Print" = "exec ${pkgs.flameshot}/bin/flameshot gui";
|
"Print" = "exec ${screenshotScript}/bin/screenshot";
|
||||||
## Locking
|
## Locking
|
||||||
"${mod}+semicolon" = "exec ${pkgs.swaylock}/bin/swaylock"
|
"${mod}+semicolon" = "exec ${pkgs.swaylock}/bin/swaylock"
|
||||||
+ (if cfg.wallpaper == "" then "" else " -i ${cfg.wallpaper} -s fit")
|
+ (if cfg.wallpaper == "" then "" else " -i ${cfg.wallpaper} -s fit")
|
||||||
|
|
Loading…
Reference in a new issue