Install flameshot

inky
Elnu 2 years ago
parent b17b7e3336
commit e172b4b140

@ -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,11 +82,8 @@ 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";

Loading…
Cancel
Save