Skip to content

Instantly share code, notes, and snippets.

@torgeir torgeir/torg.ds
Last active Feb 17, 2019

Embed
What would you like to do?
devilspie workspace layout
/*
Lookup geometry: /usr/bin/xwininfo
Backup: https://gist.github.com/torgeir/401084929e678640b0cd36b3c92b5f03
*/
(and (is (application_name) "Firefox")
(begin
(set_workspace 1)
(geometry "1387x1138+0-32")))
(and (is (application_name) "emacs-snapshot")
(is (window_name) "*scratch* ()")
(begin
(set_workspace 2)
(maximize)))
(and (is (application_name) "Spotify")
(begin
(set_workspace 3)))
(and (is (application_name) "Yoshimi")
(begin
(set_workspace 4)
(geometry "387x496+1533+58")))
(and (contains (application_name) "Yoshimi")
(contains (application_name) ":")
(begin
(set_workspace 4)
(geometry "782x606+1138+585")))
(and (is (application_name) "jack-rack")
(begin
(set_workspace 4)
(geometry "622x496+911+31")))
(and (is (application_name) "Patchage")
(begin
(set_workspace 4)
(geometry "911x928+0+31")))
(and (is (application_name) "JACK Audio Connection Kit [torg] Started.")
(begin
(set_workspace 4)
(geometry "466x210+0--0")))
(and (is (application_name) "Qsynth - A fluidsynth Qt GUI Interface [Qsynth1]")
(begin
(set_workspace 4)))
(and (is (application_name) "Thunderbird")
(begin
(set_workspace 5)
(maximize)))
(and (is (application_name) "corebird")
(begin
(geometry "583x1221--26+8")))
/*
Logical operations
"is"
"contains"
"matches"
Matchers-- these give you some info about the window that opens
"window_name"
"window_role"
"window_class"
"application_name"
Actions
"debug"
"print"
"geometry"
"fullscreen"
"focus"
"center"
"maximize"
"maximize_vertically"
"maximize_horizontally"
"minimize"
"shade"
"unshade"
"close"
"pin"
"unpin"
"set_workspace"
"skip_pager"
(debug)
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.