Install flameshot

inky
Elnu 2 years ago
parent b17b7e3336
commit e172b4b140

@ -7,10 +7,25 @@ in {
# Dependencies # Dependencies
home.packages = with pkgs; [ home.packages = with pkgs; [
playerctl # pactl comes with PulseAudio playerctl # pactl comes with PulseAudio
scrot # Screnshot keybindings
xclip # Copying screenshots to clipboard 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 = { xsession.windowManager.i3 = {
enable = true; enable = true;
config = { config = {
@ -67,12 +82,9 @@ in {
"XF86AudioNext" = "exec playerctl next"; "XF86AudioNext" = "exec playerctl next";
"XF86AudioPrev" = "exec playerctl previous"; "XF86AudioPrev" = "exec playerctl previous";
# Multi-screen screenshots with scrot # Screenshots
"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 "Print" = "exec flameshot gui";
};
# 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
};
keycodebindings = { keycodebindings = {
"133" = "--release exec rofi -show run -theme"; "133" = "--release exec rofi -show run -theme";
}; };

Loading…
Cancel
Save