Some changes

This commit is contained in:
EEva 2021-08-25 04:51:46 +03:00
parent 33ae468829
commit 96fcfeee3f
3 changed files with 29 additions and 20 deletions

View File

@ -23,29 +23,36 @@ singleTermAppWithName name app = Project
-- safeSpawn "nvidia-offload" ["alacritty","-e","tmux","new","-A","-s",name] -- safeSpawn "nvidia-offload" ["alacritty","-e","tmux","new","-A","-s",name]
-- } -- }
singleAppWithName :: String -> String -> Project singleAppWithName' :: String -> String -> [String] -> Project
singleAppWithName name app = Project singleAppWithName' name app args = Project
{ projectName = name { projectName = name
, projectDirectory = "/tmp" , projectDirectory = "/tmp"
, projectStartHook = Just $ do spawn app , projectStartHook = Just $ do safeSpawn app args
} }
singleAppWithName :: String -> String -> Project
singleAppWithName name app = singleAppWithName' name app []
singleApp :: String -> Project singleApp :: String -> Project
singleApp app = singleAppWithName app app singleApp app = singleAppWithName app app
singleJackApp :: String -> Project
singleJackApp app = singleAppWithName' app "pw-jack" [app]
projects :: [Project] projects :: [Project]
projects = projects =
[ singleApp "carla" [ singleApp "m8c"
, singleApp "obs" , singleApp "obs"
, singleApp "reaper"
, singleApp "m8c"
, singleApp "renoise"
, singleApp "steam" , singleApp "steam"
, singleJackApp "carla"
, singleJackApp "reaper"
, singleJackApp "renoise"
, singleAppWithName "Books" "calibre" , singleAppWithName "Books" "calibre"
, singleAppWithName "discord" "Discord" , singleAppWithName "discord" "Discord"
, singleAppWithName "element" "element-desktop" , singleAppWithName "element" "element-desktop"
, singleAppWithName "signal" "signal-desktop" , singleAppWithName "signal" "signal-desktop"
, singleAppWithName "vcv" "Rack" , singleAppWithName "youtube" "chromium"
, singleAppWithName' "vcv" "pw-jack" ["Rack"]
, singleTermAppWithName "email" "neomutt" , singleTermAppWithName "email" "neomutt"
, Project { projectName = "admin" , Project { projectName = "admin"
, projectDirectory = "~/admin/nixos-config" , projectDirectory = "~/admin/nixos-config"

View File

@ -12,7 +12,7 @@ import qualified XMonad.StackSet as W
modify :: XConfig l -> XConfig l modify :: XConfig l -> XConfig l
modify conf = conf modify conf = conf
{ manageHook = namedScratchpadManageHook pads { manageHook = manageHook conf <> namedScratchpadManageHook pads
} }
pads = pads =

View File

@ -29,24 +29,26 @@ import Scratchpad (modify)
layouts = toggleLayouts fullscreen tiled layouts = toggleLayouts fullscreen tiled
where where
smallBorder = SS.Border 5 5 5 5 smallBorder = SS.Border 5 5 5 5
fullscreen = (noBorders Full) fullscreen = noBorders Full
tiled = smarts $ resizableTall ||| (Mirror resizableTall) tiled = smarts $ resizableTall ||| Mirror resizableTall
smarts = (spacingRaw True smallBorder True smallBorder True) . smartBorders smarts = spacingRaw True smallBorder True smallBorder True . smartBorders
resizableTall = ResizableTall 1 (5/100) (1/2) [] resizableTall = ResizableTall 1 (5/100) (1/2) []
-- Use the `xprop' tool to get the info you need for these matches. -- Use the `xprop' tool to get the info you need for these matches.
-- For className, use the second value that xprop gives you. -- For className, use the second value that xprop gives you.
-------------- Here be the law of windows -------------- Here be the law of windows
myManageHook = composeOne myManageHook = composeAll
[ className =? "Pavucontrol" -?> doShift "music" [ className =? "Patchage" --> doShift "sound"
, className =? "Steam" -?> doShift "steam" , className =? "Pavucontrol" --> doShift "music"
, className =? "Renoise" -?> hasBorder False , className =? "Pinentry" --> doCenterFloat
, className =? "REAPER" -?> hasBorder False , className =? "REAPER" --> hasBorder False
, className =? "Pinentry" -?> doCenterFloat , className =? "Renoise" --> hasBorder False
, isDialog -?> doCenterFloat , className =? "Steam" --> doShift "steam"
, className =? "csgo_linux64" --> doShift "steam"
, isDialog --> doCenterFloat
-- Move transient windows to their parent: -- Move transient windows to their parent:
, transience , transience'
] ]
------------ build the full config ------------ build the full config