Flameshot: Difference between revisions

Phobos (talk | contribs)
m Updated flameshot page for wayland config
Phobos (talk | contribs)
m minor fix
 
(3 intermediate revisions by the same user not shown)
Line 23: Line 23:
     General = {
     General = {
       useGrimAdapter = true;
       useGrimAdapter = true;
      # Stops warnings for using Grim
      disabledGrimWarning = true;
     };
     };
   };
   };
Line 28: 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] 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].
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 37: Line 39:


       # Save Path
       # Save Path
       savePath = "/mnt/internal/wintermute/Sync/Screenshots";
       savePath = "/home/user/Screenshots";
       # Tray
       # Tray
       disabledTrayIcon = true;
       disabledTrayIcon = true;
Line 46: 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 54: Line 63:
       # For Wayland (Install Grim seperately)
       # For Wayland (Install Grim seperately)
       useGrimAdapter = true;
       useGrimAdapter = true;
      # Stops warnings for using Grim
      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]]