diff options
| author | tv <tv@krebsco.de> | 2026-12-02 04:00:11 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-02 04:00:22 +0000 |
| commit | c4c797aa34a0691b017e139ffff518555708ecf6 (patch) | |
| tree | 63897653331f238ee6ca268da2d73cdb6137db44 /pkgs/simple/flameshot-once | |
| parent | 4a9590e4816199b7586a6351cd3dd4d1b2e64754 (diff) | |
flameshot-once-tv: move to flameshot-once.profiles.tv
pkgs/simple/flameshot-once-tv.nix becomes flameshot-once's profiles/tv.nix.
flameshot-once offers each file in profiles/ by its name.
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 = "`"; + }; +} |
