Add flameshot

This commit is contained in:
Paul-Henri Froidmont 2023-03-28 18:35:58 +02:00
parent 2e5e3cba52
commit 24c8bf4587
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
7 changed files with 30 additions and 11 deletions

View file

@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.desktop.flameshot;
in {
options.modules.desktop.flameshot = { enable = mkBoolOpt false; };
config = mkIf cfg.enable {
home-manager.users.${config.user.name} = { config, ... }: {
services.flameshot = {
enable = true;
settings = {
General = {
showStartupLaunchMessage = false;
showHelp = false;
showDesktopNotification = false;
filenamePattern = "%F_%T";
savePath = "${config.home.homeDirectory}/Pictures/Screenshots";
saveAfterCopy = true;
uiColor = "#83A598";
};
};
};
};
};
}

View file

@ -9,6 +9,7 @@ in {
config = mkIf cfg.enable {
home-manager.users.${config.user.name} = {
services.picom = {
enable = true;
backend = "glx";
vSync = true;
opacityRules = [

View file

@ -1,3 +0,0 @@
#!/usr/bin/env bash
sleep 0.2; scrot -s -e 'mv $f ~/Pictures/Screenshots'

View file

@ -93,7 +93,7 @@ myAdditionalKeys = [
("M-n", spawn $ myTerminal ++ " -e newsboat"),
("M-c", spawn "rofi -show calc -modi calc -no-show-match -no-sort"),
("<Print>", spawn "scrot -e 'mv $f ~/Pictures/Screenshots'"),
("S-<Print>", spawn "~/.xmonad/scripts/screenshot.sh"),
("S-<Print>", spawn "flameshot gui"),
("M-S-a", spawn $ myTerminal ++ " -e pulsemixer"),
("M-S-p", spawn "rofi -show p -modi p:rofi-power-menu"),
("M-<Return>", spawn myTerminal),

View file

@ -53,14 +53,7 @@ in {
};
};
services.picom.enable = true;
home = {
file.".xmonad/scripts" = {
source = ./scripts;
recursive = true;
};
packages = with pkgs.unstable; [
i3lock