Several updates bundle

This commit is contained in:
EEva (JPotier) 2019-09-28 15:55:07 +03:00
parent c2226d9e19
commit 037d8df111
3 changed files with 32 additions and 30 deletions

View file

@ -52,7 +52,7 @@ modify conf = conf
, ("M-S-<Delete>", spawn "/run/current-system/sw/bin/mpc pause; /run/current-system/sw/bin/xset s activate") , ("M-S-<Delete>", spawn "/run/current-system/sw/bin/mpc pause; /run/current-system/sw/bin/xset s activate")
, ("M-S-<Left>", shiftToPrev >> prevWS) , ("M-S-<Left>", shiftToPrev >> prevWS)
, ("M-S-<Right>", shiftToNext >> nextWS) , ("M-S-<Right>", shiftToNext >> nextWS)
, ("M-s s", spawn "/run/current-system/sw/bin/flameshot gui") , ("M-s s", spawn "flameshot gui")
, ("M-s t", spawn "/run/current-system/sw/bin/scrot /tmp/screen.png") , ("M-s t", spawn "/run/current-system/sw/bin/scrot /tmp/screen.png")
-- Workspace and tasks -- Workspace and tasks
, ("M-b", switchProjectPrompt promptConfig) , ("M-b", switchProjectPrompt promptConfig)
@ -81,7 +81,7 @@ promptConfig = def
, defaultText = "" , defaultText = ""
, fgColor = S.base02 , fgColor = S.base02
, fgHLight = S.base03 , fgHLight = S.base03
, font = "xft:Iosevka Term:style=Regular:size=8" , font = "xft:Iosevka Samae:style=Regular:size=8"
, height = 24 , height = 24
, promptBorderWidth = 5 , promptBorderWidth = 5
} }

View file

@ -52,5 +52,6 @@ mkPassPrompt label f conf = do
return . lines $ files return . lines $ files
selectPassword :: String -> X () selectPassword :: String -> X ()
selectPassword pass = spawn $ "gpg --decrypt " ++ pass ++ " | xclip -selection clipboard" selectPassword pass = spawn $ "gpg --decrypt " ++ pass ++ " | copy"
-- “copy” comes with the xmonad module in the nix configuration

View file

@ -7,11 +7,16 @@ import XMonad.Actions.DynamicProjects
import XMonad.Util.Run import XMonad.Util.Run
projects :: [Project] projects :: [Project]
projects = [ Project { projectName = "admin" projects =
[ Project { projectName = "admin"
, projectDirectory = "~/admin" , projectDirectory = "~/admin"
, projectStartHook = Just $ do safeSpawn "vim" ["-g"] , projectStartHook = Just $ do safeSpawn "vim" ["-g"]
safeSpawnProg "st" safeSpawnProg "st"
} }
, Project { projectName = "flim"
, projectDirectory = "/flims/rtorrent/download"
, projectStartHook = Just $ do safeSpawnProg "st"
}
, Project { projectName = "sound" , Project { projectName = "sound"
, projectDirectory = "/tmp" , projectDirectory = "/tmp"
, projectStartHook = Just $ do safeSpawnProg "pavucontrol" , projectStartHook = Just $ do safeSpawnProg "pavucontrol"
@ -24,10 +29,6 @@ projects = [ Project { projectName = "admin"
, projectDirectory = "/tmp" , projectDirectory = "/tmp"
, projectStartHook = Just $ do spawn "firefox" , projectStartHook = Just $ do spawn "firefox"
} }
, Project { projectName = "yt"
, projectDirectory = "/tmp"
, projectStartHook = Just $ do spawn "ytapp-launcher.sh"
}
, Project { projectName = "Diablo" , Project { projectName = "Diablo"
, projectDirectory = "/tmp" , projectDirectory = "/tmp"
, projectStartHook = Just $ do spawn "/run/current-system/sw/bin/wine '/home/eeva/.wine/drive_c/Program Files/Battle.net/Battle.net Launcher.exe'" , projectStartHook = Just $ do spawn "/run/current-system/sw/bin/wine '/home/eeva/.wine/drive_c/Program Files/Battle.net/Battle.net Launcher.exe'"