Skip to content

Commit b53f7b1

Browse files
committed
fix(flameshot): adapt to Wayland
See flameshot-org/flameshot#3779 (comment)
1 parent 7199f2d commit b53f7b1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

home/flameshot/default.nix

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
{...}: {
1+
{pkgs, ...}: let
2+
flameshotWithWaylandSupport = pkgs.flameshot.override {
3+
enableWlrSupport = true;
4+
};
5+
in {
26
services.flameshot = {
37
enable = true;
8+
package = flameshotWithWaylandSupport;
49
settings = {
510
General = {
611
copyPathAfterSave = true;

home/sway/default.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ in {
295295
"XF86AudioPrev" = "exec playerctl previous";
296296

297297
# Screenshots
298-
"Print" = "exec flameshot gui";
299-
"Shift+Print" = "exec flameshot full --clipboard --path ~/Pictures/Flameshot/";
298+
"Print" = "exec QT_SCALE_FACTOR=0.5 flameshot gui";
299+
"Shift+Print" = "exec QT_SCALE_FACTOR=0.5 flameshot full --clipboard --path ~/Pictures/Flameshot/";
300300

301301
# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps.
302302
# Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace).

0 commit comments

Comments
 (0)