From 6ee8541db0196536c935cd8c82dca1991240d38e Mon Sep 17 00:00:00 2001 From: aszlig Date: Sat, 13 Feb 2021 04:04:40 +0100 Subject: profiles/workstation: Add Flameshot So far I've almost exclusively used scrot for screenshots, but most of the time I used an image manipulation program to pixelate stuff, add descriptions or draw arrows. Flameshot combines this in a single application, so I expect that from now on I can spam-post screenshots in even a higher rate than before ;-) Signed-off-by: aszlig --- modules/user/aszlig/services/i3/default.nix | 4 ++++ modules/user/aszlig/services/i3/i3.conf | 2 ++ 2 files changed, 6 insertions(+) (limited to 'modules/user/aszlig/services') diff --git a/modules/user/aszlig/services/i3/default.nix b/modules/user/aszlig/services/i3/default.nix index 733541ee..d11140dd 100644 --- a/modules/user/aszlig/services/i3/default.nix +++ b/modules/user/aszlig/services/i3/default.nix @@ -117,6 +117,10 @@ in inherit (pkgs.xorg) xsetroot; inherit wsConfig barConfig; + # XXX: Decouple this by making the i3 bindsym directives available to + # the NixOS module system. + flameshot = config.vuizvui.user.aszlig.programs.flameshot.package; + lockall = pkgs.writeScript "lockvt.sh" '' #!${pkgs.stdenv.shell} "${pkgs.socat}/bin/socat" - UNIX-CONNECT:/run/console-lock.sock \ diff --git a/modules/user/aszlig/services/i3/i3.conf b/modules/user/aszlig/services/i3/i3.conf index 6e9307f2..1f5246fe 100644 --- a/modules/user/aszlig/services/i3/i3.conf +++ b/modules/user/aszlig/services/i3/i3.conf @@ -84,6 +84,8 @@ bindsym $mod+Shift+R restart # exit i3 (logs you out of your X session) bindsym $mod+Shift+Q exit +bindsym Print exec @flameshot@/bin/flameshot gui + # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode -- cgit 1.4.1