mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
fix: replace flameshot-once by regular flameshot
This commit is contained in:
@@ -1,25 +1,22 @@
|
|||||||
{ lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
{
|
||||||
inherit (import <niveum/lib>) defaultApplications;
|
home-manager.users.me = {
|
||||||
flameshot-once =
|
services.flameshot.enable = true;
|
||||||
pkgs.callPackage <stockholm/krebs/5pkgs/simple/flameshot-once> {};
|
|
||||||
in {
|
|
||||||
nixpkgs.overlays = [
|
|
||||||
(self: super: {
|
|
||||||
xwaitforwindow =
|
|
||||||
super.callPackage <stockholm/krebs/5pkgs/simple/xwaitforwindow.nix> { };
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = [
|
home.file.".config/Dharkael/flameshot.ini".source = (pkgs.formats.ini {}).generate "flameshot.ini" {
|
||||||
(flameshot-once.override {
|
General = {
|
||||||
config.imgur = {
|
disabledTrayIcon = true;
|
||||||
enable = true;
|
drawColor = ''@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\xff\xff\0\0)'';
|
||||||
createUrl = "http://p.r/image";
|
drawThickness = 0;
|
||||||
deleteUrl = "http://p.r/image/delete/%1";
|
filenamePattern = "shot_%F_%T";
|
||||||
xdg-open.browser = (defaultApplications pkgs).browser;
|
|
||||||
};
|
};
|
||||||
config.timeout = 200;
|
};
|
||||||
})
|
|
||||||
];
|
systemd.user.services.flameshot.Unit.Requires = lib.mkForce [];
|
||||||
|
systemd.user.services.flameshot.Environment = {
|
||||||
|
IMGUR_CREATE_URL = "https://p.krebsco.de/image";
|
||||||
|
IMGUR_DELETE_URL = "https://p.krebsco.de/image/delete/%1";
|
||||||
|
PATH = "${config.home-manager.users.me.home.profileDirectory}/bin";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ in {
|
|||||||
"${modifier}+F11" = "exec ${pkgs.xcalib}/bin/xcalib -invert -alter";
|
"${modifier}+F11" = "exec ${pkgs.xcalib}/bin/xcalib -invert -alter";
|
||||||
"${modifier}+F12" = "exec ${klem}/bin/klem";
|
"${modifier}+F12" = "exec ${klem}/bin/klem";
|
||||||
|
|
||||||
"Print" = "exec flameshot-once";
|
"Print" = "exec flameshot gui -p /tmp";
|
||||||
"XF86AudioLowerVolume" =
|
"XF86AudioLowerVolume" =
|
||||||
"exec --no-startup-id ${pkgs.pamixer}/bin/pamixer -d 5";
|
"exec --no-startup-id ${pkgs.pamixer}/bin/pamixer -d 5";
|
||||||
"XF86AudioMute" = "exec --no-startup-id ${pkgs.pamixer}/bin/pamixer -t";
|
"XF86AudioMute" = "exec --no-startup-id ${pkgs.pamixer}/bin/pamixer -t";
|
||||||
|
|||||||
Reference in New Issue
Block a user