2014/05/04

Ubuntu 12.04 lts 32bit JWM (joe's window manager) .jwmrcの例 見た目 ルックアンドフィール



<?xml version="1.0"?>

 <JWM>

    <!-- The root menu, if this <?xml version="1.0"?>


    <!-- The root menu, if this is undefined you will not get a menu. -->
    <!-- Additional RootMenu attributes: onroot, labeled, label -->
    <RootMenu height="15" onroot="123">
       <Program icon="rxvt.png" label="端末">x-terminal-emulator</Program>
          <Program icon="firefox.png" label="インターネット">x-www-browser</Program>
      <Program label="Skype">/usr/bin/skype</Program>

 <!-- #DEBIAN unused
       <Menu icon="folder.png" label="Applications">
          <Program icon="firefox.png" label="Iceweasel">iceweasel</Program>

          <Program icon="audacious.png" label="Audacious">audacious</Program>
          <Program icon="dia.png" label="Dia">dia</Program>
          <Program icon="pidgin.png" label="Pidgin">pidgin</Program>
          <Program icon="gimp.png" label="Gimp">gimp</Program>
          <Program icon="gtk-gnutella.png" label="gtk-gnutella">
             gtk-gnutella
          </Program>
          <Program icon="gxine.png" label="gxine">gxine</Program>
          <Program icon="ooffice.png" label="Open Office">ooffice</Program>
       </Menu>
       <Menu icon="folder.png" label="Utilities">
          <Program icon="xcalc.png">xcalc</Program>
          <Program icon="xfontsel.png">xfontsel</Program>
          <Program icon="xmag.png">xmag</Program>
          <Program icon="xprop.png" label="xprop">
             xprop | xmessage -file -
          </Program>
       </Menu>
 -->
     <Menu label="プログラム">
      <Menu label="アプリケーション">
        <Menu label="アクセシビリティ">
          <Program label="Xmag" confirm="false">xmag</Program>
        </Menu>
        <Menu label="エディタ">
          <Program label="Gedit" confirm="false">/usr/bin/gedit</Program>
          <Program label="LeafPad" confirm="false">/usr/bin/leafpad</Program>
          <Program label="Nano" confirm="false">x-terminal-emulator  -T "Nano" -e sh -c "/bin/nano"</Program>
          <Program label="Xedit" confirm="false">xedit</Program>
        </Menu>
        <Menu label="オフィス">
          <Program label="LibreOffice Calc" confirm="false">/usr/bin/libreoffice --calc</Program>
          <Program label="LibreOffice Impress" confirm="false">/usr/bin/libreoffice --impress</Program>
          <Program label="LibreOffice Writer" confirm="false">/usr/bin/libreoffice --writer</Program>
        </Menu>
        <Menu label="グラフィック">
          <Program label="LibreOffice Draw" confirm="false">/usr/bin/libreoffice --draw</Program>
          <Program label="X Window Snapshot" confirm="false">xwd | xwud</Program>
        </Menu>
        <Menu label="サウンド">
          <Program label="grecord (GNOME 2.0 Recorder)" confirm="false">/usr/bin/gnome-sound-recorder</Program>
          <Program label="Rhythmbox" confirm="false">/usr/bin/rhythmbox</Program>
        </Menu>
        <Menu label="シェル">
          <Program label="Bash" confirm="false">x-terminal-emulator  -T "Bash" -e sh -c "/bin/bash --login"</Program>
          <Program label="Dash" confirm="false">x-terminal-emulator  -T "Dash" -e sh -c "/bin/dash -i"</Program>
          <Program label="Sh" confirm="false">x-terminal-emulator  -T "Sh" -e sh -c "/bin/sh --login"</Program>
        </Menu>
        <Menu label="システム">
          <Menu label="システム管理">
            <Program label="Debian Task selector" confirm="false">x-terminal-emulator  -T "Debian Task selector" -e sh -c "su-to-root -c tasksel"</Program>
            <Program label="DSL/PPPoE configuration tool" confirm="false">x-terminal-emulator  -T "DSL/PPPoE configuration tool" -e sh -c "/usr/sbin/pppoeconf"</Program>
            <Program label="Editres" confirm="false">editres</Program>
            <Program label="Gnome Control Center" confirm="false">/usr/bin/gnome-control-center</Program>
            <Program label="GNOME Network Tool" confirm="false">/usr/bin/gnome-nettool</Program>
            <Program label="LXAppearance" confirm="false">lxappearance</Program>
            <Program label="lxrandr" confirm="false">/usr/bin/lxrandr</Program>
            <Program label="Openbox Configuration Manager" confirm="false">/usr/bin/obconf</Program>
            <Program label="pppconfig" confirm="false">x-terminal-emulator  -T "pppconfig" -e sh -c "su-to-root -p root -c /usr/sbin/pppconfig"</Program>
            <Program label="Xclipboard" confirm="false">xclipboard</Program>
            <Program label="Xfontsel" confirm="false">xfontsel</Program>
            <Program label="Xkill" confirm="false">xkill</Program>
            <Program label="Xrefresh" confirm="false">xrefresh</Program>
          </Menu>
          <Menu label="セキュリティ">
            <Program label="Seahorse" confirm="false">/usr/bin/seahorse</Program>
          </Menu>
          <Menu label="ハードウェア">
            <Program label="Xvidtune" confirm="false">xvidtune</Program>
          </Menu>
          <Menu label="パッケージ管理">
            <Program label="Aptitude Package Manager (text)" confirm="false">x-terminal-emulator  -T "Aptitude Package Manager (text)" -e sh -c "/usr/bin/aptitude-curses"</Program>
          </Menu>
          <Menu label="モニタリング">
            <Program label="GNOME system monitor" confirm="false">/usr/bin/gnome-system-monitor</Program>
            <Program label="Pstree" confirm="false">x-terminal-emulator  -T "Pstree" -e sh -c "/usr/bin/pstree.x11"</Program>
            <Program label="Top" confirm="false">x-terminal-emulator  -T "Top" -e sh -c "/usr/bin/top"</Program>
            <Program label="Xconsole" confirm="false">xconsole -file /dev/xconsole</Program>
            <Program label="Xev" confirm="false">x-terminal-emulator -e xev</Program>
            <Program label="Xload" confirm="false">xload</Program>
          </Menu>
          <Menu label="言語環境">
            <Program label="Input Method Swicher" confirm="false">x-terminal-emulator  -T "Input Method Swicher" -e sh -c "/usr/bin/im-switch"</Program>
          </Menu>
        </Menu>
        <Menu label="ターミナルエミュレータ">
          <Program label="Gnome Terminal" confirm="false">/usr/bin/gnome-terminal</Program>
          <Program label="Terminal" confirm="false">/usr/bin/lxterminal</Program>
          <Program label="X-Terminal as root (GKsu)" confirm="false">/usr/bin/gksu -u root /usr/bin/x-terminal-emulator</Program>
          <Program label="XTerm" confirm="false">xterm</Program>
          <Program label="XTerm (Unicode)" confirm="false">uxterm</Program>
        </Menu>
        <Menu label="テキスト">
          <Program label="Character map" confirm="false">/usr/bin/gucharmap</Program>
        </Menu>
        <Menu label="ネットワーク">
          <Menu label="コミュニケーション">
            <Program label="Remmina" confirm="false">/usr/bin/remmina</Program>
            <Program label="Telnet" confirm="false">x-terminal-emulator  -T "Telnet" -e sh -c "/usr/bin/telnet"</Program>
            <Program label="Xbiff" confirm="false">xbiff</Program>
          </Menu>
          <Menu label="ファイル転送">
            <Program label="Transmission BitTorrent Client (GTK)" confirm="false">/usr/bin/transmission-gtk</Program>
          </Menu>
        </Menu>
        <Menu label="ビデオ">
          <Program label="Totem" confirm="false">/usr/bin/totem</Program>
        </Menu>
        <Menu label="ビュワー">
          <Program label="Evince" confirm="false">/usr/bin/evince</Program>
          <Program label="Eye of GNOME" confirm="false">/usr/bin/eog</Program>
          <Program label="Shotwell" confirm="false">/usr/bin/shotwell</Program>
          <Program label="Xditview" confirm="false">xditview</Program>
        </Menu>
        <Menu label="ファイル管理">
          <Program label="Baobab" confirm="false">/usr/bin/baobab</Program>
          <Program label="Brasero" confirm="false">/usr/bin/brasero</Program>
          <Program label="File-Roller" confirm="false">/usr/bin/file-roller</Program>
          <Program label="Nautilus" confirm="false">/usr/bin/nautilus</Program>
          <Program label="PCManFM" confirm="false">/usr/bin/pcmanfm</Program>
          <Program label="Xarchiver" confirm="false">/usr/bin/xarchiver</Program>
        </Menu>
        <Menu label="プログラミング">
          <Program label="GDB" confirm="false">x-terminal-emulator  -T "GDB" -e sh -c "/usr/bin/gdb"</Program>
          <Program label="Python (v2.7)" confirm="false">x-terminal-emulator  -T "Python (v2.7)" -e sh -c "/usr/bin/python2.7"</Program>
        </Menu>
        <Menu label="科学">
          <Menu label="数学">
            <Program label="Bc" confirm="false">x-terminal-emulator  -T "Bc" -e sh -c "/usr/bin/bc"</Program>
            <Program label="Dc" confirm="false">x-terminal-emulator  -T "Dc" -e sh -c "/usr/bin/dc"</Program>
            <Program label="galculator" confirm="false">/usr/bin/galculator</Program>
            <Program label="GCalcTool" confirm="false">/usr/bin/gcalctool</Program>
            <Program label="LibreOffice Math" confirm="false">/usr/bin/libreoffice --math</Program>
            <Program label="Xcalc" confirm="false">xcalc</Program>
          </Menu>
        </Menu>
      </Menu>
      <Menu label="ゲーム">
        <Menu label="おもちゃ">
          <Program label="Oclock" confirm="false">oclock</Program>
          <Program label="Xclock (analog)" confirm="false">xclock -analog</Program>
          <Program label="Xclock (digital)" confirm="false">xclock -digital -update 1</Program>
          <Program label="Xeyes" confirm="false">xeyes</Program>
          <Program label="Xlogo" confirm="false">xlogo</Program>
        </Menu>
        <Menu label="カードゲーム">
          <Program label="Gnome FreeCell" confirm="false">/usr/games/sol --variation freecell</Program>
          <Program label="Gnome Solitaire Games" confirm="false">/usr/games/sol</Program>
        </Menu>
      </Menu>
      <Menu label="ヘルプ">
        <Program label="Info" confirm="false">x-terminal-emulator  -T "Info" -e sh -c "info"</Program>
        <Program label="Xman" confirm="false">xman</Program>
        <Program label="yelp" confirm="false">/usr/bin/yelp</Program>
      </Menu>
      <Menu label="画面">
        <Menu label="ブランク">
          <Program label="Activate ScreenSaver (Next)" confirm="false">/usr/bin/xscreensaver-command -next</Program>
          <Program label="Activate ScreenSaver (Previous)" confirm="false">/usr/bin/xscreensaver-command -prev</Program>
          <Program label="Activate ScreenSaver (Random)" confirm="false">/usr/bin/xscreensaver-command -activate</Program>
          <Program label="Demo Screen Hacks" confirm="false">/usr/bin/xscreensaver-command -demo</Program>
          <Program label="Disable XScreenSaver" confirm="false">/usr/bin/xscreensaver-command -exit</Program>
          <Program label="Enable XScreenSaver" confirm="false">/usr/bin/xscreensaver</Program>
          <Program label="Reinitialize XScreenSaver" confirm="false">/usr/bin/xscreensaver-command -restart</Program>
          <Program label="ScreenSaver Preferences" confirm="false">/usr/bin/xscreensaver-command -prefs</Program>
        </Menu>
        <Menu label="ロック">
          <Program label="Lock Screen (XScreenSaver)" confirm="false">/usr/bin/xscreensaver-command -lock</Program>
        </Menu>
      </Menu>
    </Menu>

         <Separator/>
       <!-- <Restart label="Restart" icon="restart.png"/> -->
       <!-- <Exit label="Exit" confirm="true" icon="exit.png"/> -->
       <!-- <Program label="Shutdown" confirm="false" icon="exit.png">
         /usr/lib/jwm/jwm-poweroff.sh
      </Program> -->

    <Program icon="gnome-session-suspend.png" label="サスペンド">gnome-screensaver-command --lock && dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend</Program>
    <Program label="再起動">dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart</Program>
    <Exit label="ログアウト" confirm="true" icon="exit.png"/>
    <Program label="シャットダウン">dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop</Program>
    </RootMenu>

    <Group>
       <Class>Pidgin</Class>
       <Option>sticky</Option>
    </Group>

    <Group>
       <Name>gkrellm2</Name>
       <Option>nolist</Option>
    </Group>

    <Group>
       <Name>rxvt</Name>
       <Option>vmax</Option>
    </Group>

    <!-- Additional tray attributes: autohide, width, border, layer, layout -->
    <Tray  x="0" y="-1" height="32">

       <!-- Additional TrayButton attribute: label -->
       <TrayButton label="Menu">root:1</TrayButton>

    <TrayButton label="Files">exec:pcmanfm</TrayButton>

       <TrayButton label="_">showdesktop</TrayButton>

       <!-- Additional Pager attributes; width, height -->
       <Pager/>

       <!-- Additional TaskList attribute: maxwidth -->
       <TaskList/>

       <Dock/>

       <!-- Additional Swallow attribute: height -->
       <!-- <Swallow name="xload" width="64">
          xload -nolabel -bg black -fg red -hl white
       </Swallow> -->

       <Clock format="%H:%M">xclock</Clock>

    </Tray>

    <!-- Visual Styles -->

    <WindowStyle>

       <Font>-*-fixed-*-r-*-*-9-*-*-*-*-*-*-*</Font>
       <Width>4</Width>
       <Height>20</Height>

       <Active>
          <Text>white</Text>
          <Title>#3c3c3c:#3c3c3c</Title>
          <Corner>white</Corner>
          <Outline>black</Outline>
       </Active>

       <Inactive>
          <Text>#aaaaaa</Text>
          <Title>#7c7c7c:#7c7c7c</Title>
          <Corner>#aaaaaa</Corner>
          <Outline>black</Outline>
       </Inactive>

    </WindowStyle>

    <TaskListStyle>
       <Font>-*-fixed-*-r-*-*-10-*-*-*-*-*-*-*</Font>
       <ActiveForeground>black</ActiveForeground>
       <ActiveBackground>gray90:gray70</ActiveBackground>
       <Foreground>black</Foreground>
       <Background>gray70:gray90</Background>
    </TaskListStyle>

    <!-- Additional TrayStyle attribute: insert -->
    <TrayStyle>
       <Font>-*-fixed-*-r-*-*-10-*-*-*-*-*-*-*</Font>
       <Background>gray90</Background>
       <Foreground>black</Foreground>
    </TrayStyle>

    <PagerStyle>
       <Outline>black</Outline>
       <Foreground>gray90</Foreground>
       <Background>#808488</Background>
       <ActiveForeground>#70849d</ActiveForeground>
       <ActiveBackground>#2e3a67</ActiveBackground>
    </PagerStyle>

    <MenuStyle>
       <Font>-*-fixed-*-r-*-*-9-*-*-*-*-*-*-*</Font>
    <Outline>#f07746</Outline>
       <Foreground>black</Foreground>
       <Background>gray90</Background>
       <ActiveForeground>white</ActiveForeground>
       <ActiveBackground>#f07746:#ed5c22</ActiveBackground>
    </MenuStyle>

    <PopupStyle>
       <Font>-*-fixed-*-r-*-*-10-*-*-*-*-*-*-*</Font>
       <Outline>black</Outline>
       <Foreground>black</Foreground>
       <Background>yellow</Background>
    </PopupStyle>

    <IconPath>
       $HOME/.icons
    </IconPath>

    <!-- Virtual Desktops -->
    <!-- Desktop tags can be contained within Desktops for desktop names. -->
    <Desktops count="4">

       <!-- Default background. Note that a Background tag can be
            contained within a Desktop tag to give a specific background
            for that desktop.
        -->
 <!-- #DEBIAN change. Was bg.xpm -->
       <!-- <Background type="tile">$HOME/jwm-bg.xpm</Background> -->
    <Background type="solid">#3B0B24</Background>
    <!-- <Background type="image">/home/hoge/Pictures/wallpapers/london_street_by_seawhisper-d33pa3z.jpg</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>sloppy</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>

 <!-- #DEBIAN unused -->
    <Key mask="A" key="Tab">nextstacked</Key>
 -->
 <!-- #DEBIAN add -->
    <Key mask="A" key="Tab">next</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>

<StartupCommand>
gsettings set org.gnome.desktop.interface ubuntu-overlay-scrollbars false &
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
/usr/bin/update-notifier &
/usr/bin/nm-applet &
/usr/bin/python /opt/extras.ubuntu.com/indicator-brightness/indicator-brightness &
/usr/bin/gnome-sound-applet


</StartupCommand>

 </JWM>