<?xml version="1.0"?>

<JWM>

   <!-- 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="terminal.png" label="Command">gmrun</Program>
      <Program icon="terminal.png" label="Terminal">x-terminal-emulator</Program>
      <Program icon="thunar.png" label="File Manager">x-file-manager</Program>
      <Program icon="firefox.png" label="Web Browser">x-www-browser</Program>
<!-- installer start -->
      <Separator/>
	  <Program label="Install DIY" confirm="false">su-to-root -X -c /usr/sbin/debian-installer-launcher</Program>	
<!-- installer end -->	   
      <Separator/>
      <Menu icon="folder.png" label="Settings">
          <Program label="lxrandr Screen Layout Editor" confirm="false">/usr/bin/lxrandr</Program>
          <Program label="LXappearance" confirm="false">/usr/bin/lxappearance</Program>
          <Program label="Power Manager" confirm="false">/usr/bin/xfce4-power-manager-settings</Program>
      </Menu>
      <Separator/>
      <Menu icon="folder.png" label="Accessories">
          <Program label="Calculator" confirm="false">/usr/bin/qalculate-gtk</Program>
  		  <Program label="Screenshot" confirm="false">/usr/bin/xfce4-screenshooter</Program>
  		  <Program label="Leafpad" confirm="false">editor</Program>
		  <Program icon="terminal.png" label="Terminal">x-terminal-emulator</Program>
		  <Program label="PcmanFM">x-file-manager</Program>
	  </Menu>
      <Menu icon="folder.png" label="Graphics">
          <Program label="Mirage" confirm="false">mirage</Program>
      </Menu>      
      <Menu icon="folder.png" label="Internet">
           <Program icon="firefox.png" label="Firefox">x-www-browser</Program>
           <Program label="Wicd Network Manager">/usr/bin/wicd-gtk --no-tray</Program>
      </Menu>  
      <Menu icon="folder.png" label="Multimedia">
          <Program label="SMPlayer" confirm="false">/usr/bin/smplayer</Program>
          <Program label="Audio Mixer" confirm="false">/usr/bin/x-terminal-emulator -t 'Audio Mixer' -e /usr/bin/alsamixer</Program>
          <Program label="Xfburn" confirm="false">/usr/bin/xfburn</Program>
      </Menu>      
      <Menu icon="folder.png" label="Office">
          <Program label="Pdf Viewer" confirm="false">/usr/bin/xpdf</Program>
      </Menu>      
      <Menu icon="folder.png" label="System">
		  <Program label="Alternatives Configurator" confirm="false">su-to-root -X -c /usr/bin/galternatives</Program>
		  <Program label="Htop Task Manager" confirm="false">x-terminal-emulator -T 'htop task manager' -e htop</Program>
          <Program label="Bootup-Manager" confirm="false">su-to-root -X -c /usr/bin/bum</Program>
          <Program label="Disk Manager" confirm="false">su-to-root -X -c /usr/sbin/disk-manager</Program>
		  <Program label="Gdebi Package Installer" confirm="false">su-to-root -X -c /usr/bin/gdebi-gtk</Program>
          <Program label="Gparted" confirm="false">su-to-root -X -c /usr/sbin/gparted</Program>
          <Program label="Root Terminal" confirm="false">su-to-root -X -c x-terminal-emulator</Program>
          <Program label="Root File Manager" confirm="false">su-to-root -X -c x-file-manager</Program>
          <Program label="System Information" confirm="false">/usr/bin/hardinfo</Program>
          <Program label="Synaptic Package Manager" confirm="false">su-to-root -X -c /usr/sbin/synaptic</Program>
      </Menu>
      <Separator/>
      <Restart label="Restart" icon="restart.png"/>
      <Exit label="Exit" confirm="true" icon="quit.png"/>
      <Program icon="exit.png" label="Log Out">/usr/bin/diy-exit</Program>
   </RootMenu>

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

   <Group>
      <Name>gkrellm</Name>
      <Option>nolist</Option>
      <Option>sticky</Option>
   </Group>

   <Group>
      <Name>xterm</Name>
      <Option>vmax</Option>
      <Option>icon:terminal.png</Option>
   </Group>
-->

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

      <!-- Additional TrayButton attribute: label -->
      <TrayButton label="diy">root:1</TrayButton>
	  <!-- <TrayButton icon="/usr/share/tc/logo.png">root:1</TrayButton> -->
      <TrayButton label="_">showdesktop</TrayButton>
      <TrayButton label="t">exec:x-terminal-emulator</TrayButton>
      <TrayButton label="f">exec:x-file-manager</TrayButton>
      <TrayButton label="m">exec:/usr/bin/smplayer</TrayButton>
      <TrayButton label="w">exec:x-www-browser</TrayButton>

      <!-- Additional Pager attribute: labeled -->

      <TaskList maxwidth="256"/>

      <Pager labeled="true"/>

      <Dock/>
      <!-- Additional Swallow attribute: height


 
      <Swallow name="xload" width="64">
         xload -nolabel -bg black -fg red -hl white
      </Swallow>

      
      <Swallow name="volumeicon">
         volumeicon
      </Swallow>   
      <Swallow name="wicd-gtk">
         wicd-client
      </Swallow>         
      -->
    
      <Clock format="%l:%m %p">xclock</Clock>

   </Tray>

   <!-- Visual Styles -->

   <WindowStyle>

      <Font>liberation.sans-11</Font>
      <Width>2</Width>
      <Height>20</Height>

      <Active>
         <Text>#ffffff</Text>
         <Title>#398EE7</Title>
         <Outline>#404040</Outline>
      </Active>
      <Corner>#404040</Corner>

      <Inactive>
         <Text>#c0c0c0</Text>
         <Title>#202020</Title>
         <Outline>#202020</Outline>
      </Inactive>

   </WindowStyle>

	<!-- MENU PROPERTIES -->
	
	<MenuStyle>
      		<Font>liberation.sans-11</Font>
		<Foreground>#000000</Foreground>
		<Background>#ffffff</Background>
		<ActiveForeground>#ffffff</ActiveForeground>
		<ActiveBackground>#398EE7</ActiveBackground>
	</MenuStyle>

	<!-- TASK LIST PROPERTIES -->

   <TaskListStyle>
      <Font>liberation.sans-11</Font>
      <ActiveForeground>#000000</ActiveForeground>
      <ActiveBackground>#398EE7</ActiveBackground>
      <Foreground>#FFFFFF</Foreground>
      <Background>#262626</Background>
   </TaskListStyle>

	<!-- TRAY PROPERTIES -->

   <TrayStyle>
      <Font>liberation.sans-11</Font>
      <Background>#262626</Background>
      <Foreground>#ffffff</Foreground>
   </TrayStyle>

	<!-- PAGER PROPERTIES -->

   <PagerStyle>
      <Outline>#1a1a1a</Outline>
      <Foreground>#2b2b2b</Foreground>
      <Background>#0d0d0d</Background>
      <ActiveForeground>#d9d9d9</ActiveForeground>
      <ActiveBackground>#3c3c3c</ActiveBackground>
   </PagerStyle>

	<PopupStyle>
		<Font>liberation.sans-11</Font>
		<Outline>black</Outline>
		<Foreground>white</Foreground>
		<Background>darkblue</Background>
	</PopupStyle>

	<IconPath>
	/usr/share/icons/wm-icons/32x32-gant
	</IconPath>

   <!-- Virtual Desktops -->
   <!-- Desktop tags can be contained within Desktops for desktop names. -->
   <Desktops width="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="image">/export0/images/formulae.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>click</FocusModel>

   <!-- The snap mode (none, screen, or border) -->
   <SnapMode>none</SnapMode>

   <!-- The move mode (outline or opaque) -->
   <MoveMode>outline</MoveMode>

   <!-- The resize mode (outline or opaque) -->
   <ResizeMode>outline</ResizeMode>
  
    <StartupCommand>~/bin/run.sh</StartupCommand>
	<RestartCommand>~/bin/run.sh</RestartCommand>

   <!-- 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">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>
   <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>
   
   <Key mask="4" key="t">exec:x-terminal-emulator</Key>
   <Key mask="4" key="w">exec:x-www-browser</Key>
   <Key mask="4" key="f">exec:x-file-manager</Key>
   <Key mask="4" key="e">exec:editor</Key>
   <Key mask="4" key="m">exec:/usr/bin/smplayer</Key>
   <Key mask="4" key="l">exec:/usr/bin/i3lock -n -p default --color=000000</Key>
   <Key mask="4" key="x">exec:/usr/bin/oblogout</Key>
   <Key mask="4" key="d">exec:~/.config/dmenu/dmenu-bind.sh</Key>

</JWM>
