Add flameshot
This commit is contained in:
parent
2e5e3cba52
commit
24c8bf4587
7 changed files with 30 additions and 11 deletions
26
modules/desktop/flameshot.nix
Normal file
26
modules/desktop/flameshot.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -9,6 +9,7 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
home-manager.users.${config.user.name} = {
|
||||
services.picom = {
|
||||
enable = true;
|
||||
backend = "glx";
|
||||
vSync = true;
|
||||
opacityRules = [
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
sleep 0.2; scrot -s -e 'mv $f ~/Pictures/Screenshots'
|
||||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -53,14 +53,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
services.picom.enable = true;
|
||||
|
||||
home = {
|
||||
file.".xmonad/scripts" = {
|
||||
source = ./scripts;
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
packages = with pkgs.unstable; [
|
||||
i3lock
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue