:: Re: [DNG] Dng Digest, Vol 20, Issue…
Forside
Slet denne besked
Besvar denne besked
Skribent: emninger
Dato:  
Til: dng
Nye-emner: Re: [DNG] JWM: was Some questions re the devuan release
Emne: Re: [DNG] Dng Digest, Vol 20, Issue 74
Am Sat, 14 May 2016 11:21:02 +0000
schrieb Steve Litt <slitt@???>


> On Sat, 14 May 2016 00:13:28 +0200
> <emninger@???> wrote:
>
>
> > 4) As for the desktop: On another machine i use Manjaro JWM Open-RC
> > - and from a functional (and esthetical!) point of view it's
> > marvellous.
>
> JWM is wonderful. Extremely low memory, very fast performance. I
> reviewed it here:
>
> http://troubleshooters.com/lpm/201406/201406.htm#jwm
>
> The only problem I had with it was visual cues during window
> switching. If you got it to look esthetical, you know quite a bit more
> about it than I do.
>
> Do you know if JWM enables one to configure hotkeys to run programs,
> such as running xterm when you press F5 or whatever?


This is the keys file of Manjaro JWM OpenRC edition (you'll find the
iso on the manjaro site)

-------
<?xml version="1.0"?>
<JWM>

    <!-- Key bindings. -->
    <Key key="Up">up</Key>
    <Key key="Down">down</Key>
    <Key key="Right">right</Key>
    <Key key="Left">left</Key>
    <Key key="h">left</Key>
    <Key key="j">down</Key>
    <Key key="k">up</Key>
    <Key key="l">right</Key>
    <Key key="Return">select</Key>
    <Key key="Escape">escape</Key>


    <!-- Key window. -->
    <Key mask="A" key="Tab">nextstacked</Key>
    <Key mask="A" key="F4">close</Key>
    <Key mask="A" key="#">desktop#</Key>
    <Key mask="A" key="F2">window</Key>
    <Key mask="A" key="F10">maximize</Key>
    <Key mask="CA" key="Right">rdesktop</Key>
    <Key mask="CA" key="Left">ldesktop</Key>
    <Key mask="SA" key="Right">sendr</Key>
    <Key mask="SA" key="Left">sendl</Key>


    <!-- Key applications. -->
    <Key mask="4" key="w">exec:firefox</Key>
    <Key mask="4" key="e">exec:pcmanfm</Key>
    <Key mask="4" key="r">exec:gmrun</Key>
    <Key mask="4" key="t">exec:sakura</Key>
    <Key mask="4" key="d">showdesktop</Key>
    <Key mask="4" key="m">exec:gnome-mplayer</Key>
    <Key mask="4" key="x">exec:scrot -e 'mv $f ~/Screenshots'
    &amp;&amp; sleep 1 &amp;&amp; notify-send 'Screenshot has been
    saved in ~/Screenshots'</Key>


    <!-- Key system. -->
    <Key mask="4" key="F1">root:3</Key>
    <Key mask="4" key="p">exec:xterm -T Pacli /usr/bin/pacli</Key>
    <Key mask="4" key="j">exec:xterm -T JWMConf /usr/bin/jwmconf</Key>
    <Key mask="4" key="l">exec:i3lock -c bfc674</Key>
    <Key mask="4" key="u">exec:jwm -restart</Key>


    <!-- Key sound. -->
    <Key mask="4" key="Next">exec:amixer set Master 5%- </Key>
    <Key mask="4" key="Prior">exec:amixer set Master 5%+ </Key>
    <Key mask="4" key="0">exec:amixer set Master toggle</Key>


    <!-- Key toggle. -->
    <Key mask="4" key="Up">maxtop</Key>
    <Key mask="4" key="Down">maxbottom</Key>
    <Key mask="4" key="Left">maxleft</Key>
    <Key mask="4" key="Right">maxright</Key>


</JWM>
----------

Btw, you may note the jwmconf file, which is a nice ncurses utility
to configure easily jwm. Here i link you some images of the look and
feel of their jwm (holmes, a brasilian, does a phantastic job!):
https://old.forum.manjaro.org/index.php?topic=33909.0
https://old.forum.manjaro.org/index.php?topic=32847.0
https://old.forum.manjaro.org/index.php?topic=32683.0 (this is the look
of the systemd version, but it's simple to transport; not any
dependency with systemd ;) ).

As for me, i was testing jwm for a lubuntu version intended for g3 / g4
macintosh. At the time being, we had problems with the option rounded
corners. But that was it.

>
> > Why not as default desktop for Devuan?
>
> I think (and I could be wrong) that the Devuan project gets closer to
> the metal than Debian, but not as close as Slackware. JWM would be
> perfect for slackware, I would think.


I'm not sure what you mean by "closer to the metal" (sorry, not a
native here ;) )? It's curious, my linux parcour was netbsd on a mk68
Mac, Ubuntu then, but getting annoyed i went crunchbang substituting
openbox by fluxbox then siduction and as they went systemd i looked for
alternatives and used slackware the last 2,3 years, in a setup very
close to crunchbang (always with fluxbox). And i waited eagerly for a
viable Devuan (which now seems to be there).

>
> I just downloaded the Devuan JWM package. Of course it still ran
> lxsession on boot. So I changed /etc/rc5.d/S3slim to Z3slim, but same
> thing. I had to put an "exit 0" on top of /etc/init.d/slim, and then
> make an ~/.xinitrc like this:
>
> #!/bin/sh
> exec jwm
>
> It ran jwm after I ran startx, but without the nice Devuan wallpaper.
> I assume something like the following needs to be done in .xinitrc:
>
> #!/bin/sh
> gconftool-2 --set /apps/nautilus/preferences/show_desktop --type
> boolean false
> sh /usr/local/wallpaper/fehbg.command &
> exec dwm
>
> In the preceding, fehbg.command looks something like this:
>
> feh --bg-scale "/wherever/devuan_wallpaper.png"
>
> Somebody should tell instructions for how to modify slim to use jwm
> directly on bootup.


Good point! At least you could do F1 to switch between what is
in /usr/share/xsessions.

My question rather is: my ~.xinitrc was (is) empty. Is that by default?

> Be aware that Devuan's JWM package is horribly debianized. You need to
> go through two useless levels of menus (one that's just "debian")
> before you get to the stuff you really want. It's a shame the Debian
> product has screwed up such a nice window manager, but I can't say I'm
> surprised: I've been seeing them screwing up nice, simple programs
> (including my VimOutliner) for years.
>
> So if you want a Devuan JWM package, you might want to make it
> yourself rather than use Debian's.


Frankly, i do not have any problem with "stealing" the nice settings of
manjaro, you can see here:
https://old.forum.manjaro.org/index.php?topic=33049.msg273858#msg273858

Btw,it's possible to use icons in the jwm menu and to use an
xdg-menugenerator, which instantaneously updates the menu according to
new programs you install (or remove).

If there is any interest, would be fun for me to help (for what i can
do, hey, i'm not a programmer nor a power user) someone skilled to
build up a viable and gracious jwm desktop for devuan.

Cheers.