Introducing sawfish.wm.prg.{trayer,xmobar}

Christopher Roy Bratusek <[email protected]>
Newsgroups gmane.comp.window-managers.sawfish
Message-ID <3446034.E8nJL4IDbT@ambassador>
Hi all,

two new modules arrived in Sawfish:

sawfish.wm.prg.trayer
sawfish.wm.prg.xmobar

Those two can handle a trayer/xmobar instance during a sawfish session.
Initialization is pretty simple, in sawfishrc add:

(require 'sawfish.wm.prg.trayer)
(require 'sawfish.wm.prg.xmobar)
(add-hook 'after-initialization-hook start-trayer t)
(add-hook 'after-initialization-hook start-xmobar t)

start-xmobar support #:config key that allows you to set the absoulate file-path 
to xmobar configuration-file, if you don't use $HOME/.xmobarrc.

start-trayer supports any command-line option of trayer as key. for example: 
#:widthtype #:height or #:setdocktype. Adjust to your liking. NOTE: boolean 
values must be passed as "true" or "false", eg: #:transparent "false", not 
#:transparent nil.

There's also
(stop-trayer) (stop-xmobar).

Those two also check whether trayer or xmobar actually exist in $PATH and 
through a message at you, if they don't. (requires librep 0.92.3 from GIT for 
new 'program-exists-p' function).

comments, suggestions (eg: idea for another sawfish.wm.prg*), etc. welcome.

Regards,
Chris

*maybe something like xsettingsd might be useful? though it doesn't seem to be 
updated for GTK3 settings (yet), though it's fully fine for GTK2.
signature.asc (application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAABAgAGBQJQSpKgAAoJEEudM3UFdUni9d8H/RkoZ4CCy1cV35mGKcOiko6C
zmDRa75nwi99yDbEdqwJAqI/WawcHuD+h0GJHeTFbQPgNe69ierAo44Lo5Uesx23
y/c9YK+qTlUZOd6GFSZbnfxuTxapDYNwG9neYNTWX0LS9cnM3ZXlqewh3lDhdB/s
O6ys5QBTfcUFlkg2v6Tsa8GGfAjMdzMa4ZLwuXpEgybPtGdFT9j8oaekowg4KB3k
HNCcgtw3OG8LnGfBtQkl6yfp1VA5S0GHwRYsmpktDoTr/rZOrOD6zAAcZc4PZymc
SSR6/7XdDZY2cC+AkBfCtmGdDPFgfgOZC2mJ6rH1Rst2ItyQFSFqZIMC7e6AytU=
=hc+7
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.