ops/nixos: enable flameshot on graphical-client hosts
This commit is contained in:
parent
e11229d070
commit
21fe79c904
2 changed files with 6 additions and 4 deletions
|
@ -22,5 +22,8 @@ in
|
||||||
|
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
hardware.pulseaudio.enable = true;
|
hardware.pulseaudio.enable = true;
|
||||||
|
|
||||||
|
services.dbus.packages = [ depot.nix.pkgs.flameshot ];
|
||||||
|
systemd.packages = [ depot.nix.pkgs.flameshot ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, depot, lib, config, ... }:
|
||||||
{
|
{
|
||||||
imports = [ ./client.nix ];
|
imports = [ ./client.nix ];
|
||||||
|
|
||||||
|
@ -33,8 +33,7 @@
|
||||||
executable = true;
|
executable = true;
|
||||||
text = ''
|
text = ''
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euxo pipefail
|
exec ${depot.nix.pkgs.flameshot}/bin/flameshot gui
|
||||||
import png:/dev/stdout | pngquant - | xclip -t image/png -selection clipboard -in
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
home.file.".xprofile".text = ''
|
home.file.".xprofile".text = ''
|
||||||
|
@ -56,7 +55,7 @@
|
||||||
modifier = config.xsession.windowManager.i3.config.modifier;
|
modifier = config.xsession.windowManager.i3.config.modifier;
|
||||||
in lib.mkOptionDefault {
|
in lib.mkOptionDefault {
|
||||||
"${modifier}+l" = "exec loginctl lock-session";
|
"${modifier}+l" = "exec loginctl lock-session";
|
||||||
"${modifier}+p" = "exec screencap";
|
"${modifier}+p" = "exec ${depot.nix.pkgs.flameshot}/bin/flameshot gui";
|
||||||
};
|
};
|
||||||
startup = [
|
startup = [
|
||||||
{ command = "xss-lock --transfer-sleep-lock -- i3lock --nofork"; notification = false; }
|
{ command = "xss-lock --transfer-sleep-lock -- i3lock --nofork"; notification = false; }
|
||||||
|
|
Loading…
Reference in a new issue