From 0e9b4de9e0436e3910bb3c0a3db3d748812eb6d9 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Fri, 18 Mar 2022 17:49:04 +0000 Subject: [PATCH] Add screenshots --- hosts/common/graphical/default.nix | 5 +++++ user/daniel/home.nix | 2 -- user/progs/i3/default.nix | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hosts/common/graphical/default.nix b/hosts/common/graphical/default.nix index 465e6de..9426a8a 100644 --- a/hosts/common/graphical/default.nix +++ b/hosts/common/graphical/default.nix @@ -22,6 +22,11 @@ windowManager.i3 = { enable = true; package = pkgs.i3-gaps; + extraPackages = with pkgs; [ + flameshot + i3lock + i3utils + ]; }; }; } diff --git a/user/daniel/home.nix b/user/daniel/home.nix index 2ee8341..976a328 100644 --- a/user/daniel/home.nix +++ b/user/daniel/home.nix @@ -66,8 +66,6 @@ gomuks gopls helix - i3lock - i3utils iosevka mpv nerdfonts diff --git a/user/progs/i3/default.nix b/user/progs/i3/default.nix index 4f1abb2..7f3ec4c 100644 --- a/user/progs/i3/default.nix +++ b/user/progs/i3/default.nix @@ -153,6 +153,7 @@ in { "${mod}+Shift+j" = "exec --no-startup-id i3utils window move next"; "${mod}+p" = "scratchpad show"; + "${mod}+Escape" = "exec loginctl lock-session"; "XF86MonBrightnessUp" = "exec xbacklight -inc 10"; @@ -163,6 +164,8 @@ in { "XF86AudioPrev" = "exec playerctl previous"; "XF86AudioPlay" = "exec playerctl play-pause"; "XF86AudioNext" = "exec playerctl next"; + + "Mod1+Shift+4" = "exec flameshot gui -s -p ~/Pictures/screenshots"; }; modifier = mod;