[Sawfish] Print rep data in shell
[
Thread Index
|
Date Index
|
More lists.tuxfamily.org/sawfish Archives
]
To
:
sawfish@xxxxxxxxxxxxxxxxxxx
Subject
: [Sawfish] Print rep data in shell
From
: Deric Bytes <
dericbytes@xxxxxxxxx
>
Date
: Sun, 26 Feb 2012 17:42:46 +0000
Authentication-results
: mr.google.com; spf=pass (google.com: domain of
dericbytes@xxxxxxxxx
designates 10.52.27.70 as permitted sender) smtp.mail=
dericbytes@xxxxxxxxx
; dkim=pass header.i=
dericbytes@xxxxxxxxx
Dkim-signature
: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=Pjr9f7Ytd8l70s+EdpIRCZgdnkoljYSRwOi4pj08Cr0=; b=Q5Kvff7V/zkqfdqSN+Wuq0SncYbGESqpA777Kx6cCpjBguqmmZP19PTknLFMC4qTvR Os2KvfjY30O/aHqoNVEL2tiUAp7R51tJx03kG+wyftqVlX+RldwsHQ2RT0v6HbeYXe4o thSAskUY8mqVFYUzX6jkqBy1MKBUg0hLEYlTo=
I have a selection of rep scripts, that I wish to also call from bash. With the addition of extra formatting when called from bash
An example rep script that I call is below.
------------------------------------------
;; file: list-names-of-managed-windows.jl
(setq windows (mapcar (lambda (win) (window-name win)) (managed-windows)))
-------------------------------------------
When called from bash I post process the output into a newline formatted list
------------------------
sawfish-client -e "$(cat list-names-of-managed-window.jl)" | sed -e 's/[()]//g' -e 's/" "/"\n"/g' -e 's/"//g'
----------------------------
Is there a better way?
i.e.
# -l load file and run code
# -p pretty print output
sawfish-client -lp list-names-of-managed-windows.jl
(also, out of curiosity can the above example be wrapped in a bash alias?)
Follow-Ups
:
Re: [Sawfish] Print rep data in shell
From:
Michal Jaegermann
Messages sorted by:
[
date
|
thread
]
Prev by Date:
Re: [Sawfish] Emacs does not open fullscreen using sawfish
Next by Date:
Re: [Sawfish] Print rep data in shell
Previous by thread:
Re: [Sawfish] Emacs does not open fullscreen using sawfish
Next by thread:
Re: [Sawfish] Print rep data in shell
Mail converted by
MHonArc
2.6.19+
http://listengine.tuxfamily.org/