Revert "Use flameshot again, it's good now"

Nvm it's actually so bad

This reverts commit c90e130948.
This commit is contained in:
Natsu Kagami 2022-11-09 20:26:27 +01:00
parent 8e49a68efb
commit 21c62cd1e1
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51

View file

@ -29,11 +29,11 @@ let
in in
f from; f from;
flameshot = pkgs.unstable.flameshot.overrideAttrs screenshotScript = pkgs.writeScriptBin "screenshot" ''
(attrs: { #! ${pkgs.fish}/bin/fish
nativeBuildInputs = attrs.nativeBuildInputs ++ (with pkgs.unstable; [ libsForQt5.kguiaddons ]);
cmakeFlags = [ "-DUSE_WAYLAND_CLIPBOARD=true" ]; ${pkgs.grim}/bin/grim -g (${pkgs.slurp}/bin/slurp) - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png
}); '';
ignored-devices = [ "Surface_Headphones" ]; ignored-devices = [ "Surface_Headphones" ];
playerctl = "${pkgs.playerctl}/bin/playerctl --ignore-player=${strings.concatStringsSep "," ignored-devices}"; playerctl = "${pkgs.playerctl}/bin/playerctl --ignore-player=${strings.concatStringsSep "," ignored-devices}";
@ -128,8 +128,6 @@ in
{ command = "systemctl --user restart waybar"; always = true; } { command = "systemctl --user restart waybar"; always = true; }
# Startup programs # Startup programs
{ command = "${cfg.browser}"; } { command = "${cfg.browser}"; }
# Screenshot
{ command = "${flameshot}/bin/flameshot"; }
] ++ (if cfg.discord != null then [ ] ++ (if cfg.discord != null then [
{ command = "${cfg.discord}"; } { command = "${cfg.discord}"; }
] else [ ]); ] else [ ]);
@ -146,7 +144,7 @@ in
"${mod}+r" = "exec ${config.wayland.windowManager.sway.config.menu}"; "${mod}+r" = "exec ${config.wayland.windowManager.sway.config.menu}";
"${mod}+Shift+r" = "mode resize"; "${mod}+Shift+r" = "mode resize";
## Screenshot ## Screenshot
"Print" = "exec ${flameshot}/bin/flameshot gui"; "Print" = "exec ${screenshotScript}/bin/screenshot";
## Locking ## Locking
"${mod}+semicolon" = "exec ${cfg.lockCmd}"; "${mod}+semicolon" = "exec ${cfg.lockCmd}";
## Multimedia ## Multimedia
@ -582,7 +580,5 @@ in
qt5.qtwayland qt5.qtwayland
# For waybar # For waybar
font-awesome font-awesome
flameshot
]); ]);
} }