Flameshot: Difference between revisions
m minor change, added extra config line |
m minor fix |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 30: | Line 30: | ||
== Home Manager == | == Home Manager == | ||
You can configure Flameshot settings through Home Manager with the following syntax. Additional settings may be found on the [https://github.com/flameshot-org/flameshot/blob/master/flameshot.example.ini Flameshot] | You can configure Flameshot settings through Home Manager with the following syntax. Additional settings may be found on the [https://github.com/flameshot-org/flameshot/blob/master/flameshot.example.ini Flameshot] Github and adapted into Nix. See documented settings in the [https://nix-community.github.io/home-manager/options.xhtml#opt-services.flameshot.enable Home Manager Appendix - services.flameshot]. | ||
{{File|3=services.flameshot = { | {{File|3=services.flameshot = { | ||
enable = true; | enable = true; | ||
| Line 39: | Line 39: | ||
# Save Path | # Save Path | ||
savePath = "/ | savePath = "/home/user/Screenshots"; | ||
# Tray | # Tray | ||
disabledTrayIcon = true; | disabledTrayIcon = true; | ||
| Line 48: | Line 48: | ||
# Desktop notifications | # Desktop notifications | ||
showDesktopNotification = true; | showDesktopNotification = true; | ||
# Notification for cancelled screenshot | |||
showAbortNotification = false; | |||
# Whether to show the info panel in the center in GUI mode | |||
showHelp = true; | |||
# Whether to show the left side button in GUI mode | |||
showSidePanelButton = true; | |||
# Color Customization | # Color Customization | ||
| Line 58: | Line 65: | ||
# Stops warnings for using Grim | # Stops warnings for using Grim | ||
disabledGrimWarning = true; | disabledGrimWarning = true; | ||
}; | |||
}; | |||
};|name=/etc/nixos/home.nix|lang=nix}} | |||
== Setting Shortcuts == | |||
Setting shortcuts is different depending on your Desktop Environment. You can can check Flameshot CLI commands that you can use for shortcuts by running <code>man flameshot</code>. | |||
=== Sway === | |||
{{File|3=wayland.windowManager.sway = { | |||
enable = true; | |||
# Sets modifier to Super Key | |||
modifier = "Mod4"; | |||
config = { | |||
keybindings = lib.mkOptionDefault { | |||
# Manual screenshot GUI that saves to clipboard and closes on selection. | |||
"${modifier}+Shift+s" = "exec flameshot gui --clipboard --accept-on-select"; | |||
# Takes a screenshot of the screen containing the cursor. | |||
"${modifier}+Shift+a" = "exec flameshot screen --clipboard"; | |||
# Takes a manual screenshot that shows options after selection. | |||
"Print" = "exec flameshot gui"; | |||
}; | }; | ||
}; | }; | ||
};|name=/etc/nixos/home.nix|lang=nix}} | };|name=/etc/nixos/home.nix|lang=nix}} | ||
[[Category:Applications]] | [[Category:Applications]] | ||