Strumenti Utente

Strumenti Sito


jwm

JWM

Che dire… lo uso spesso… partii con un'alternativa a fluxbox e a quella psicopatica configurazione noiosa. Con questo ho risolto… o almeno lo credo, per il momento…

Linux/*BSD/altro

Cioè, come costruirsi un ottimo wm pulito su un sistema… le basi:

 1) jwm
 2) pmount
 3) udevil
 4) zenity (facoltativo)
 5) spacefm (oppure pcmanfm libfm-tools), smbclient, (cifs-utils curlftpfs sshfs)
 6) conky
 7) mousepad
 8) sakura
 9) xorg
10) scrot
11) grun
12) ffmpegthumbnailer
13) default-jre (si, me ne dimentico spesso... lo scrivo così lo ricordo)
14) connman o wicd a piacere!

Sarebbe da preferire spacefm a pcmanfm, ma alle volte su altri OS, non è disponibile. (netbsd… openbsd..)

Per la stampa, non c'è alternativa… usare cups: http://127.0.0.1:631 o vuoi installare roba inutile in più?

os/Deb

Tutta sta roba qua:

apt-get install xorg jwm udevil pmount mc spacefm cups sakura grun scrot synaptic gparted xfsprogs mtools mousepad connman-ui default-jre ffmpegthumbnailer smbclient cifs-utils curlftpfs sshfs

Spero di non aver dimenticato nulla…

xdgmenumaker

Aggiungere app ogni volta può tediare, senza sbattersi troppo, c'è roba qui https://github.com/gapan/xdgmenumaker una volta aggiunto al sistema, metterlo all' avvio del wm, così aggiunge automaticamente le app installate con le icone. il file da scrivere è il file /etc/system.jwmrc dentro il root menù

Dipendenze principali su .deb:

python-xdg
python-gtk2

Su altri sistemi cercare il nome simile o corrispondente dei pacchetti su pkgin/pkgsrc, ports, portage, slackbuild

Compilarlo come segue:

make && make install

percorso differente..

make install DESTDIR=/my/custom/installation/target PREFIX=/usr

Disinstallarlo

make uninstall

Configurazione:

<JWM>
    <!-- The root menu. -->
    <RootMenu height="18" onroot="123">
        <Include>exec: xdgmenumaker -nif jwm</Include>                   <---------- qui
        <Program icon="terminal.png" label="Terminal">xterm</Program>
        <Menu icon="folder.png" label="Applications">
        ....

Utile anche l' uso di skel

cp /etc/system.jwmrc /home/utente/.jwmrc

grun

Far partire dei comandi. Come configurarlo?

<!-- The root menu. -->
<RootMenu height="18" onroot="123">
   <Include>exec: xdgmenumaker -nif jwm</Include>
   <Separator/>
   <Program icon="terminal.png" label="Terminal">sakura</Program>
   <Program icon="run.png" label="Command">grun</Program>                    <------ qui!!
   <Separator/>

scrot

Screenshot del desktop? Pulsante stamp!!! Dopo aver installato scrot configurarlo

 <Key mask="A" key="Tab">nextstacked</Key>
 <Key mask="A" key="F4">close</Key>
 <Key mask="A" key="#">desktop#</Key>
 <Key mask="A" key="F1">root:1</Key>
 <Key mask="A" key="F2">window</Key>
 <Key mask="" key="Print">exec:scrot %T.png;xmessage -timeout 2 "foto fatta"</Key>     <----- qui!!!
 <Key mask="A" key="F10">maximize</Key>
 <Key mask="A" key="Right">rdesktop</Key>
 <Key mask="A" key="Left">ldesktop</Key>
 <Key mask="A" key="Up">udesktop</Key>
 <Key mask="A" key="Down">ddesktop</Key>
</JWM>

A schermo intero? No, grazie

In alcune distro trovo fastidioso l' aerosnap di default, lo tolgo dal mio .jwmrc, ma se mi dovesse tornare utile:

<Group>
    <Option>tiled</Option>
    <Option>aerosnap</Option>
</Group>

Una volta mi schizzavo a configurare fluxbox… dopo l' ultima paresi facciale ho preferito un comodo tool Funziona anche per jwm

http://menumaker.sourceforge.net/

Il comando:

mmaker jwm

Backup .jwmrc

un backup del config di base

<?xml version="1.0"?>
<JWM>
<!-- The startup command (usare.xinitrc è uguale, ma qui è più figo) -->
<StartupCommand>setxkbmap it</StartupCommand>
<StartupCommand>pcmanfm --desktop</StartupCommand>
<StartupCommand>connman-ui-gtk</StartupCommand>
<StartupCommand>conky</StartupCommand>
<!-- The root menu. -->
<RootMenu height="18" onroot="123">
   <Include>exec: xdgmenumaker -nif jwm</Include>
   <Separator/>
   <Program icon="terminal.png" label="Terminal">sakura</Program>
   <Program icon="run.png" label="Command">grun</Program>
   <Separator/>
   <Restart label="Restart" icon="restart.png"/>
   <Menu icon="exit.png" label="Exit">
   <Exit label="Exit" confirm="false" icon="exit.png"/>
   <Program icon="reboot.png" label="Reboot">reboot</Program>
   <Program icon="shutdown.png" label="Shutdown">halt</Program>
   </Menu>
</RootMenu>
    
<!-- Options for program groups. -->
<Group>
   <Class>Pidgin</Class>
   <Option>sticky</Option>
</Group>
<Group>
   <Name>xterm</Name>
   <Option>vmax</Option>
</Group>
<Group>
   <Name>xclock</Name>
   <Option>drag</Option>
   <Option>notitle</Option>
</Group>
<!-- Tray at the bottom. -->
<Tray x="0" y="-1" height="32" layer="500" autohide="off">
   <TrayButton icon="jwm-blue">root:1</TrayButton>
   <Spacer width="2"/>
   <TrayButton label="@">showdesktop</TrayButton>
   <Spacer width="2"/>
   <Pager labeled="true"/>
   <TaskList maxwidth="256"/>
   <Dock/>
   <Clock format="%D - %H:%M"><Button mask="123">exec:xclock</Button></Clock>
   <TrayButton >exec:amixer set PCM toggle</TrayButton>
   <TrayButton >exec:amixer set PCM 5%- unmute</TrayButton>
   <TrayButton >exec:amixer set PCM 5%+ unmute</TrayButton>
</Tray>
<!-- Visual Styles -->
<WindowStyle>
    <Font>Sans-9:bold</Font>
    <Width>5</Width>
    <Height>23</Height>
    <Corner>3</Corner>
    <Foreground>#FFFFFF</Foreground>
    <Background>#555555</Background>
    <Outline>#000000</Outline>
    <Opacity>0.5</Opacity>
    <Active>
        <Foreground>#FFFFFF</Foreground>
        <Background>#0077CC</Background>
        <Outline>#000000</Outline>
        <Opacity>1.0</Opacity>
    </Active>
</WindowStyle>
<TrayStyle group="true" list="all">
    <Font>Sans-9</Font>
    <Background>#333333</Background>
    <Foreground>#FFFFFF</Foreground>
    <Outline>#000000</Outline>
    <Opacity>0.75</Opacity>
</TrayStyle>
<TaskListStyle>
  <Font>Sans-9</Font>
  <Active>
    <Foreground>#FFFFFF</Foreground>
    <Background>#555555</Background>
  </Active>
  <Foreground>#FFFFFF</Foreground>
  <Background>#333333</Background>
</TaskListStyle>
<PagerStyle>
    <Outline>#000000</Outline>
    <Foreground>#555555</Foreground>
    <Background>#333333</Background>
    <Text>#FFFFFF</Text>
    <Active>
        <Foreground>#0077CC</Foreground>
        <Background>#004488</Background>
    </Active>
</PagerStyle>
<MenuStyle>
    <Font>Sans-10</Font>
    <Foreground>#FFFFFF</Foreground>
    <Background>#333333</Background>
    <Outline>#000000</Outline>
    <Active>
        <Foreground>#FFFFFF</Foreground>
        <Background>#0077CC</Background>
    </Active>
    <Opacity>0.85</Opacity>
</MenuStyle>
<PopupStyle enabled="false">
    <Font>Sans-12:bold</Font>
    <Foreground>#000000</Foreground>
    <Background>#999999</Background>
</PopupStyle>
<!-- Path where icons can be found.
     IconPath can be listed multiple times to allow searching
     for icons in multiple paths.
  -->
<IconPath>
    /usr/share/icons/wm-icons/32x32-aquafusion
</IconPath>
<IconPath>
    /usr/share/jwm
</IconPath>
<!-- Virtual Desktops -->
<!-- Desktop tags can be contained within Desktops for desktop names. -->
<Desktops width="2" height="2">
    <!-- Default background. Note that a Background tag can be
          contained within a Desktop tag to give a specific background
          for that desktop.
     -->
    <Background type="a">#111111</Background>
</Desktops>
<!-- Double click speed (in milliseconds) -->
<DoubleClickSpeed>400</DoubleClickSpeed>
<!-- Double click delta (in pixels) -->
<DoubleClickDelta>2</DoubleClickDelta>
<!-- The focus model (sloppy or click) -->
<FocusModel>click</FocusModel>
<!-- The snap mode (none, screen, or border) -->
<SnapMode distance="10">border</SnapMode>
<!-- The move mode (outline or opaque) -->
<MoveMode>opaque</MoveMode>
<!-- The resize mode (outline or opaque) -->
<ResizeMode>opaque</ResizeMode>
<!-- 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 mask="A" key="Tab">nextstacked</Key>
<Key mask="A" key="F4">close</Key>
<Key mask="A" key="#">desktop#</Key>
<Key mask="A" key="F1">root:1</Key>
<Key mask="A" key="F2">window</Key>
<Key mask="" key="Print">exec:scrot %T.png;xmessage -timeout 2 "foto fatta"</Key>
<Key mask="A" key="F10">maximize</Key>
<Key mask="A" key="Right">rdesktop</Key>
<Key mask="A" key="Left">ldesktop</Key>
<Key mask="A" key="Up">udesktop</Key>
<Key mask="A" key="Down">ddesktop</Key>
</JWM>
jwm.txt · Ultima modifica: 2020/05/08 16:38 da amnesia