Skip to content

Instantly share code, notes, and snippets.

@djanatyn
Created April 18, 2024 16:51
Show Gist options
  • Save djanatyn/4801c27c467dc5e67845f45ba9102499 to your computer and use it in GitHub Desktop.
Save djanatyn/4801c27c467dc5e67845f45ba9102499 to your computer and use it in GitHub Desktop.
xmonad project configuration
-- https://xmonad.github.io/xmonad-docs/xmonad-contrib/XMonad-Actions-DynamicProjects.html
myProjects :: [Project]
myProjects =
[ Project
{ projectName = "chat",
projectDirectory = "~/",
projectStartHook = Just $ spawn "Discord"
},
Project
{ projectName =
"work",
projectDirectory = "~/",
projectStartHook = Just $ do
spawn "firefox -P work"
spawn "urxvt -title 'work terminal'"
},
Project
{ projectName = "music",
projectDirectory = "~/music",
projectStartHook = Just $ do
spawn "urxvt -e mpdas"
spawn "urxvt -e ncmpcpp"
},
Project
{ projectName = "browse",
projectDirectory = "~/",
projectStartHook = Just $ spawn "firefox -P default"
},
Project
{ projectName = "twitter",
projectDirectory = "~/",
projectStartHook = Just $ spawn "surf tweetdeck.twitter.com"
},
Project
{ projectName = "feed",
projectDirectory = "~/",
projectStartHook = Just $ spawn "surf -z 1.35 10.100.0.1:8080"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment