diff options
| author | tv <tv@krebsco.de> | 2023-02-05 02:28:29 +0100 | 
|---|---|---|
| committer | tv <tv@krebsco.de> | 2023-02-05 02:39:44 +0100 | 
| commit | 5cfd880000c9af2bb75f55fa83baae4f006facf7 (patch) | |
| tree | debcdf7eace68658f896ff87bf33bcaf41e8c2b2 | |
| parent | 1d1ab286f4fda352d3e598a4b2addc3992c02e85 (diff) | |
tv flameshot-once-tv: init
| -rw-r--r-- | tv/2configs/xserver/default.nix | 8 | ||||
| -rw-r--r-- | tv/5pkgs/haskell/xmonad-tv/src/main.hs | 2 | ||||
| -rw-r--r-- | tv/5pkgs/simple/flameshot-once-tv.nix | 48 | 
3 files changed, 50 insertions, 8 deletions
| diff --git a/tv/2configs/xserver/default.nix b/tv/2configs/xserver/default.nix index f534b55..f10ccb1 100644 --- a/tv/2configs/xserver/default.nix +++ b/tv/2configs/xserver/default.nix @@ -120,13 +120,7 @@ in {      };      path = [        config.tv.slock.package -      (pkgs.flameshot-once.override { -        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.timeout = 200; -      }) +      pkgs.flameshot-once-tv        pkgs.pulseaudio.out        pkgs.rxvt_unicode        pkgs.xcalib diff --git a/tv/5pkgs/haskell/xmonad-tv/src/main.hs b/tv/5pkgs/haskell/xmonad-tv/src/main.hs index 118f2da..b3b411b 100644 --- a/tv/5pkgs/haskell/xmonad-tv/src/main.hs +++ b/tv/5pkgs/haskell/xmonad-tv/src/main.hs @@ -206,7 +206,7 @@ myKeys font conf = Map.fromList $      , ((_4, xK_Prior), forkFile {-pkg-}"xcalib" ["-invert", "-alter"] Nothing) -    , ((0, xK_Print), forkFile {-pkg-}"flameshot" [] Nothing) +    , ((0, xK_Print), forkFile {-pkg:flameshot-once-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/tv/5pkgs/simple/flameshot-once-tv.nix b/tv/5pkgs/simple/flameshot-once-tv.nix new file mode 100644 index 0000000..e3a9f9a --- /dev/null +++ b/tv/5pkgs/simple/flameshot-once-tv.nix @@ -0,0 +1,48 @@ +{ 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; +    buttons = [ +      "TYPE_ARROW" +      "TYPE_CIRCLE" +      "TYPE_CIRCLECOUNT" +      "TYPE_COPY" +      "TYPE_DRAWER" +      "TYPE_IMAGEUPLOADER" +      "TYPE_MARKER" +      "TYPE_MOVESELECTION" +      "TYPE_PENCIL" +      "TYPE_PIXELATE" +      "TYPE_RECTANGLE" +      "TYPE_SAVE" +      "TYPE_SELECTION" +      "TYPE_TEXT" +    ]; +    checkForUpdates = false; +    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; +  }; +  config.settings.Shortcuts = { +    TYPE_COPY = "Return"; +    TYPE_TOGGLE_PANEL = "`"; +  }; +} | 
