Install flameshot
This commit is contained in:
parent
b17b7e3336
commit
e172b4b140
1 changed files with 19 additions and 7 deletions
26
i3.nix
26
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";
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue