diff options
Diffstat (limited to 'pkgs/simple/flameshot-once')
| -rw-r--r-- | pkgs/simple/flameshot-once/default.nix | 2 | ||||
| -rw-r--r-- | pkgs/simple/flameshot-once/profiles/tv.nix | 33 |
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/simple/flameshot-once/default.nix b/pkgs/simple/flameshot-once/default.nix index 68a1ed6f..15e8592c 100644 --- a/pkgs/simple/flameshot-once/default.nix +++ b/pkgs/simple/flameshot-once/default.nix @@ -75,6 +75,8 @@ pkgs.symlinkJoin { ]; } // { + # Configurations, as pkgs.flameshot-once.profiles.<name>. + profiles = mylib.mapNixDir (path: pkgs.callPackage path {}) ./profiles; dev = pkgs.write "flameshot-once-tools" { "/bin/get-buttonTypes" = { executable = true; diff --git a/pkgs/simple/flameshot-once/profiles/tv.nix b/pkgs/simple/flameshot-once/profiles/tv.nix new file mode 100644 index 00000000..c1455a57 --- /dev/null +++ b/pkgs/simple/flameshot-once/profiles/tv.nix @@ -0,0 +1,33 @@ +{ pkgs }: + +pkgs.flameshot-once.override { + name = "flameshot-once-tv"; + config.imgur.enable = true; + config.imgur.createUrl = "http://ni.r/image"; + config.imgur.deleteUrl = "http://ni.r/image/delete/%1"; + config.imgur.xdg-open.browser = "/etc/profiles/per-user/tv/bin/cr"; + config.settings.General = { + autoCloseIdleDaemon = true; + captureActiveMonitor = true; + contrastOpacity = 220; + copyPathAfterSave = true; + disabledTrayIcon = true; + drawColor = "#E4002B"; + drawThickness = 8; + filenamePattern = "%FT%T%z_flameshot"; + fontFamily = "iosevka tv 2"; + savePath = "/tmp"; + savePathFixed = true; + showDesktopNotification = false; + showHelp = false; + showSidePanelButton = false; + showStartupLaunchMessage = false; + squareMagnifier = true; + uploadWithoutConfirmation = true; + useX11LegacyScreenshot = true; + }; + config.settings.Shortcuts = { + TYPE_COPY = "Return"; + TYPE_TOGGLE_PANEL = "`"; + }; +} |
