about summary refs log tree commit diff
path: root/modules/user/aszlig/services
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2021-02-13 04:04:40 +0100
committeraszlig <aszlig@nix.build>2021-02-13 04:40:38 +0100
commit6ee8541db0196536c935cd8c82dca1991240d38e (patch)
tree63402221b32d18a3d57108a2db80bd5527cd7f36 /modules/user/aszlig/services
parentc7e86fadd27d30ebcf56cb311ce9661e5b244f2a (diff)
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 <aszlig@nix.build>
Diffstat (limited to 'modules/user/aszlig/services')
-rw-r--r--modules/user/aszlig/services/i3/default.nix4
-rw-r--r--modules/user/aszlig/services/i3/i3.conf2
2 files changed, 6 insertions, 0 deletions
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