mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: add flameshot config
This commit is contained in:
parent
6e8aae7d8d
commit
667fa26f14
3 changed files with 50 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
||||||
./wired-notify.nix
|
./wired-notify.nix
|
||||||
./discord.nix
|
./discord.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
|
./flameshot.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
./signal.nix
|
./signal.nix
|
||||||
./theme.nix
|
./theme.nix
|
||||||
|
|
48
users/myuser/graphical/flameshot.nix
Normal file
48
users/myuser/graphical/flameshot.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
colors = config.lib.stylix.colors.withHashtag;
|
||||||
|
in {
|
||||||
|
xdg.configFile."flameshot/flameshot.ini".source = (pkgs.formats.ini {}).generate "flameshot.ini" {
|
||||||
|
General = {
|
||||||
|
antialiasingPinZoom = false;
|
||||||
|
buttons = ''@Variant(\0\0\0\x7f\0\0\0\vQList<int>\0\0\0\0\x10\0\0\0\0\0\0\0\x3\0\0\0\x4\0\0\0\x5\0\0\0\x6\0\0\0\x12\0\0\0\xf\0\0\0\x13\0\0\0\a\0\0\0\t\0\0\0\x10\0\0\0\n\0\0\0\v\0\0\0\x17\0\0\0\f\0\0\0\x11)'';
|
||||||
|
checkForUpdates = false;
|
||||||
|
contrastOpacity = 190;
|
||||||
|
contrastUiColor = colors.base0A;
|
||||||
|
disabledTrayIcon = true;
|
||||||
|
drawColor = colors.base08;
|
||||||
|
filenamePattern = "%Y-%m-%dT%H:%M:%S%z";
|
||||||
|
savePath = "${config.xdg.userDirs.pictures}/screenshots";
|
||||||
|
showHelp = false;
|
||||||
|
showStartupLaunchMessage = false;
|
||||||
|
uiColor = colors.base0F;
|
||||||
|
userColors = lib.concatStringsSep "," [
|
||||||
|
"picker"
|
||||||
|
colors.base00
|
||||||
|
colors.base01
|
||||||
|
colors.base02
|
||||||
|
colors.base03
|
||||||
|
colors.base04
|
||||||
|
colors.base05
|
||||||
|
colors.base06
|
||||||
|
colors.base07
|
||||||
|
colors.base08
|
||||||
|
colors.base09
|
||||||
|
colors.base0A
|
||||||
|
colors.base0B
|
||||||
|
colors.base0C
|
||||||
|
colors.base0D
|
||||||
|
colors.base0E
|
||||||
|
colors.base0F
|
||||||
|
];
|
||||||
|
};
|
||||||
|
Shortcuts = {
|
||||||
|
TYPE_EXIT = "Q";
|
||||||
|
TYPE_REDO = "Ctrl+Y";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -91,6 +91,7 @@ in {
|
||||||
"Shift+s" = "exec --no-startup-id ${getExe pkgs.scripts.screenshot-area}";
|
"Shift+s" = "exec --no-startup-id ${getExe pkgs.scripts.screenshot-area}";
|
||||||
"F11" = "exec --no-startup-id ${getExe pkgs.scripts.screenshot-area-scan-qr}";
|
"F11" = "exec --no-startup-id ${getExe pkgs.scripts.screenshot-area-scan-qr}";
|
||||||
"F12" = "exec --no-startup-id ${getExe pkgs.scripts.screenshot-screen}";
|
"F12" = "exec --no-startup-id ${getExe pkgs.scripts.screenshot-screen}";
|
||||||
|
"Print" = "exec --no-startup-id env QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCREEN_SCALE_FACTORS='' ${getExe pkgs.flameshot} gui";
|
||||||
|
|
||||||
"Shift+r" = "reload";
|
"Shift+r" = "reload";
|
||||||
"q" = "kill";
|
"q" = "kill";
|
||||||
|
@ -203,7 +204,6 @@ in {
|
||||||
};
|
};
|
||||||
in ''
|
in ''
|
||||||
exec_always --no-startup-id ${getExe i3-per-workspace-layout} --config ${configLayouts}
|
exec_always --no-startup-id ${getExe i3-per-workspace-layout} --config ${configLayouts}
|
||||||
for_window [class="^flameshot$"] floating enable, border none
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue