From 4a195236fcd924bd2c111d606f1232dd52b88baa Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 2 Dec 2026 04:00:11 +0000 Subject: 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. --- configs/xserver/default.nix | 2 +- pkgs/haskell/xmonad-tv/src/main.hs | 2 +- pkgs/simple/flameshot-once-tv.nix | 33 ------------------------------ pkgs/simple/flameshot-once/default.nix | 2 ++ pkgs/simple/flameshot-once/profiles/tv.nix | 33 ++++++++++++++++++++++++++++++ 5 files changed, 37 insertions(+), 35 deletions(-) delete mode 100644 pkgs/simple/flameshot-once-tv.nix create mode 100644 pkgs/simple/flameshot-once/profiles/tv.nix diff --git a/configs/xserver/default.nix b/configs/xserver/default.nix index b078ade4..e1c4d7f4 100644 --- a/configs/xserver/default.nix +++ b/configs/xserver/default.nix @@ -110,7 +110,7 @@ in { }; path = [ config.tv.slock.package - pkgs.flameshot-once-tv + pkgs.flameshot-once.profiles.tv pkgs.pulseaudio.out pkgs.rxvt-unicode-unwrapped pkgs.xcalib diff --git a/pkgs/haskell/xmonad-tv/src/main.hs b/pkgs/haskell/xmonad-tv/src/main.hs index 606d03e1..beb5b8b3 100644 --- a/pkgs/haskell/xmonad-tv/src/main.hs +++ b/pkgs/haskell/xmonad-tv/src/main.hs @@ -213,7 +213,7 @@ myKeys conf = Map.fromList $ , ((_4, xK_Prior), forkFile {-pkg-}"xcalib" ["-invert", "-alter"] Nothing) - , ((0, xK_Print), forkFile {-pkg:flameshot-once-tv-}"flameshot-once" [] Nothing) + , ((0, xK_Print), forkFile {-pkg:flameshot-once.profiles.tv-}"flameshot-once" [] Nothing) , ((_C, xF86XK_Forward), forkFile {-pkg:xdpytools-}"xdpychvt" ["next"] Nothing) , ((_C, xF86XK_Back), forkFile {-pkg:xdpytools-}"xdpychvt" ["prev"] Nothing) diff --git a/pkgs/simple/flameshot-once-tv.nix b/pkgs/simple/flameshot-once-tv.nix deleted file mode 100644 index c1455a57..00000000 --- a/pkgs/simple/flameshot-once-tv.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ 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 = "`"; - }; -} 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.. + 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 = "`"; + }; +} -- cgit v1.3.1