tv xmonad: add flameshot-once

This commit is contained in:
tv 2020-05-05 17:37:18 +02:00
parent ebecabd517
commit c077a4155f
3 changed files with 16 additions and 1 deletions

View File

@ -108,6 +108,13 @@ in {
}; };
path = [ path = [
config.tv.slock.package 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.fzmenu pkgs.fzmenu
pkgs.pulseaudioLight.out pkgs.pulseaudioLight.out
pkgs.rxvt_unicode pkgs.rxvt_unicode

View File

@ -3,6 +3,9 @@ module Paths where
import Helpers.Path import Helpers.Path
flameshot :: FilePath
flameshot = findExecutable "flameshot-once"
otpmenu :: FilePath otpmenu :: FilePath
otpmenu = findExecutable "otpmenu" otpmenu = findExecutable "otpmenu"

View File

@ -22,7 +22,8 @@ import qualified XMonad.StackSet as W
import Data.Map (Map) import Data.Map (Map)
import qualified Data.Map as Map import qualified Data.Map as Map
import XMonad.Hooks.UrgencyHook (SpawnUrgencyHook(..), withUrgencyHook) import XMonad.Hooks.UrgencyHook (SpawnUrgencyHook(..), withUrgencyHook)
import XMonad.Hooks.ManageHelpers (doCenterFloat) import XMonad.Hooks.ManageHelpers (doCenterFloat,doRectFloat)
import Data.Ratio
import XMonad.Hooks.Place (placeHook, smart) import XMonad.Hooks.Place (placeHook, smart)
import XMonad.Actions.PerWorkspaceKeys (chooseAction) import XMonad.Actions.PerWorkspaceKeys (chooseAction)
@ -66,6 +67,8 @@ mainNoArgs = do
composeAll composeAll
[ appName =? "fzmenu-urxvt" --> doCenterFloat [ appName =? "fzmenu-urxvt" --> doCenterFloat
, appName =? "pinentry" --> doCenterFloat , appName =? "pinentry" --> doCenterFloat
, title =? "Upload to Imgur" -->
doRectFloat (W.RationalRect 0 0 (1 % 8) (1 % 8))
, placeHook (smart (1,0)) , placeHook (smart (1,0))
] ]
, startupHook = , startupHook =
@ -163,6 +166,8 @@ myKeys conf = Map.fromList $
, ((_4, xF86XK_AudioMute), pavucontrol []) , ((_4, xF86XK_AudioMute), pavucontrol [])
, ((_4, xK_Prior), forkFile Paths.xcalib ["-invert", "-alter"] Nothing) , ((_4, xK_Prior), forkFile Paths.xcalib ["-invert", "-alter"] Nothing)
, ((0, xK_Print), forkFile Paths.flameshot [] Nothing)
] ]
where where
_4 = mod4Mask _4 = mod4Mask