diff --git a/users/myuser/graphical/default.nix b/users/myuser/graphical/default.nix index 32ce6c5..fcd0ca8 100644 --- a/users/myuser/graphical/default.nix +++ b/users/myuser/graphical/default.nix @@ -9,6 +9,7 @@ ./wired-notify.nix ./discord.nix ./firefox.nix + ./flameshot.nix ./kitty.nix ./signal.nix ./theme.nix diff --git a/users/myuser/graphical/flameshot.nix b/users/myuser/graphical/flameshot.nix new file mode 100644 index 0000000..bd86409 --- /dev/null +++ b/users/myuser/graphical/flameshot.nix @@ -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\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"; + }; + }; +} diff --git a/users/myuser/graphical/i3.nix b/users/myuser/graphical/i3.nix index f4ab752..762c14b 100644 --- a/users/myuser/graphical/i3.nix +++ b/users/myuser/graphical/i3.nix @@ -91,6 +91,7 @@ in { "Shift+s" = "exec --no-startup-id ${getExe pkgs.scripts.screenshot-area}"; "F11" = "exec --no-startup-id ${getExe pkgs.scripts.screenshot-area-scan-qr}"; "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"; "q" = "kill"; @@ -203,7 +204,6 @@ in { }; in '' exec_always --no-startup-id ${getExe i3-per-workspace-layout} --config ${configLayouts} - for_window [class="^flameshot$"] floating enable, border none ''; };