From e172b4b140191a19ca2506a289e6543db3312db7 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sun, 8 Jan 2023 13:12:05 -0800 Subject: [PATCH] Install flameshot --- i3.nix | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/i3.nix b/i3.nix index eb629d8..d3d5929 100644 --- a/i3.nix +++ b/i3.nix @@ -7,10 +7,25 @@ in { # Dependencies home.packages = with pkgs; [ playerctl # pactl comes with PulseAudio - scrot # Screnshot keybindings xclip # Copying screenshots to clipboard ]; + # Screenshots + services.flameshot = { + enable = true; + settings = { + General = { + disabledTrayIcon = true; + showStartupLaunchMessage = false; + showHelp = false; + showSidePanelButton = false; + uiColor = "${colors.background-alt}"; + contrastUiColor = "${colors.background}"; + drawColor = "#ffffff"; + }; + }; + }; + xsession.windowManager.i3 = { enable = true; config = { @@ -67,12 +82,9 @@ in { "XF86AudioNext" = "exec playerctl next"; "XF86AudioPrev" = "exec playerctl previous"; - # Multi-screen screenshots with scrot - "Print" = "exec scrot 'screenshot_%Y%m%d_%H%M%S.png' -e 'mkdir -p ~/Pictures/screenshots && mv $f ~/Pictures/screenshots && xclip -selection clipboard -t image/png -i ~/Pictures/screenshots/`ls -1 -t ~/Pictures/screenshots | head -1`"; # All screens - - # OSX-like area selection screenshots - "Shift+Print" = "exec scrot -s 'screenshot_%Y%m%d_%H%M%S.png' -e 'mkdir -p ~/Pictures/screenshots && mv $f ~/Pictures/screenshots && xclip -selection clipboard -t image/png -i ~/Pictures/screenshots/`ls -1 -t ~/Pictures/screenshots | head -1`'"; # Area selection - }; + # Screenshots + "Print" = "exec flameshot gui"; + }; keycodebindings = { "133" = "--release exec rofi -show run -theme"; };