<?xml version="1.0"?>

<JWM>

<!-- version flag for rc.update -->
<!-- When updating change number here and in rc.update -->
<!-- XDG_JWMRC_VERSION_003 -->

<!-- IMPORTANT, ONLY EDIT /etc/xdg/templates/_root_.jwmrc -->

<RootMenu label="z" labeled="false" height="24" onroot="z"><Include>exec:/usr/local/jwmdesk/menu_utilities_build</Include></RootMenu>
<RootMenu label="x" labeled="false" height="24" onroot="x"><Include>exec:/usr/local/jwmdesk/menu_places_build</Include></RootMenu>

<!-- jwm menus for puppy Linux -->
<RootMenu label="Menu" labeled="false" height="24" onroot="9">
<Menu label="Desktop" icon="x48.png" height="24">
<Program label="Display Control" icon="/usr/local/dcontrol/icons/monitor.svg" tooltip="Set screen tint and brightness">/usr/local/dcontrol/dcontrol</Program>
<Program label="JWMdesk" icon="/usr/local/jwmdesk/icons/jwmdesk64.png" tooltip="Manage JWM desktop">jwmdesk</Program>
<Program label="JWMdesk Theme Manager" icon="/usr/local/jwmdesk/icons/jwm_themes.svg" tooltip="Change colors of JWM desktop">/usr/local/jwmdesk/jcc</Program>
<Program label="Xlock setup" icon="/usr/share/pixmaps/puppy/screen_lock.svg" tooltip="Configure Xlock screen locking">/usr/local/apps/Xlock/AppRun -configure</Program>
 <Separator/> 
<Program label="Chooselocale" icon="/usr/share/pixmaps/puppy/country_language.svg" tooltip="Choose your country localisation">chooselocale</Program>
 <Separator/> 
<Program label="Font viewer" icon="/usr/share/pixmaps/puppy/font.svg" tooltip="Font viewer">gfontsel</Program>
</Menu>
<Menu label="System" icon="pc48.png" height="24">
<Program label="Bluetooth Manager" icon="blueman.svg" tooltip="Blueman Bluetooth Manager">blueman-manager</Program>
<Program label="IPInfo" icon="/usr/share/pixmaps/puppy/network.svg" tooltip="Network information">ipinfo</Program>
<Program label="Pup-SysInfo" icon="/usr/local/Pup-SysInfo/icons/Pup-SysInfo48.png" tooltip="System information utility">Pup-SysInfo</Program>
<Program label="Task Manager" icon="execute.svg" tooltip="Manage running processes">lxtask</Program>
 <Separator/> 
<Program label="Event manager" icon="/usr/share/pixmaps/puppy/execute.svg" tooltip="Configure sevices running in the background">eventmanager</Program>
<Program label="Htop" icon="htop.png" tooltip="Show System Processes">rxvt -title 'Htop' -e sh -c 'htop'</Program>
<Program label="pSchedule" icon="/usr/share/pixmaps/puppy/clock_interval.svg" tooltip="Set up a task on a given time">/usr/local/bin/pschedule</Program>
 <Separator/> 
<Program label="GParted" icon="gparted" tooltip="Create, reorganize, and delete partitions">/usr/bin/gparted</Program>
 <Separator/> 
<Program label="Login manager" icon="/usr/share/pixmaps/puppy/user_login.svg" tooltip="Configure login and security">loginmanager</Program>
<Program label="Xlock" icon="/usr/share/pixmaps/puppy/screen_lock.svg" tooltip="Lock screen">puplock -locknow</Program>
</Menu>
<Menu label="Setup" icon="configuration48.png" height="24">
<Program label="Dependency checker" icon="/usr/share/pixmaps/puppy/package_inspect.svg" tooltip="Check dependencies for installed packages">/usr/local/petget/check_deps_gui.sh</Program>
<Program label="Package manager" icon="/usr/share/pixmaps/puppy/package_add.svg" tooltip="Install/uninstall apps">/usr/local/petget/pkg_chooser.sh</Program>
<Program label="Puppy setup" icon="/usr/share/pixmaps/puppy/puppy_config.svg" tooltip="Configure your Puppy OS">wizardwizard</Program>
<Program label="QuickSetup" icon="/usr/share/pixmaps/puppy/puppy_config.svg" tooltip="First-run setup of resolution, country and network">quicksetup</Program>
<Program label="SFS-Load" icon="squashfs-image.png" tooltip="Load squash files on-the-fly">sfs_load</Program>
<Program label="Set default apps" icon="/usr/share/pixmaps/puppy/execute_inspect.svg" tooltip="Configure what apps that are the default choice">puppyapps</Program>
 <Separator/> 
<Program label="Internet connection wizard" icon="/usr/share/pixmaps/puppy/internet_connect.svg" tooltip="Configure internet connection ">connectwizard</Program>
<Program label="Menu manager" icon="/usr/share/pixmaps/puppy/menu.svg" tooltip="Configure the main menu">menumanager</Program>
 <Separator/> 
<Program label="Puppy installer" icon="/usr/share/pixmaps/puppy/power.svg" tooltip="Install OS and applications">/usr/sbin/dotpup1</Program>
<Program label="Remaster Puppy" icon="/usr/share/pixmaps/puppy/puppy_remaster.svg" tooltip="Remaster Puppy live-CD">/usr/sbin/remasterpup2</Program>
<Program label="Remove builtin packages" icon="/usr/share/pixmaps/puppy/package_remove.svg" tooltip="Remove builtin packages">/usr/sbin/remove_builtin</Program>
</Menu>
<Separator/>
<Menu label="Utility" icon="utility48.png" height="24">
<Program label="ListDD" icon="/usr/local/ListDD/icons/listdd.svg" tooltip="List dynamic dependencies">listdd_wrapper</Program>
<Program label="PeasyDiff compare two files/folders" icon="/usr/share/pixmaps/peasydiff.png" tooltip="compare two files/folders">peasydiff</Program>
<Program label="Xarchiver" icon="xarchiver" tooltip="A GTK+ only archive manager">xarchiver</Program>
<Program label="Xdelta" icon="/usr/share/pixmaps/puppy/file_compare.svg" tooltip="File difference manager">xdelta_gui</Program>
 <Separator/> 
<Program label="MoManager" icon="/usr/share/pixmaps/puppy/country_language.svg" tooltip="Create non-English translations">momanager</Program>
 <Separator/> 
<Program label="Pudd" icon="/usr/share/pixmaps/puppy/copy_disk.svg" tooltip="Copy complete drive/partition">Pudd</Program>
<Program label="Pupsave Backup" icon="/usr/share/pixmaps/puppy/copy_disk.svg" tooltip="Quick backup of your Puppy savefiles">pupsave-backup</Program>
<Program label="Resize personal storage" icon="/usr/share/pixmaps/puppy/puppy_increase.svg" tooltip="Resize the personal storage file">resizepfile.sh</Program>
 <Separator/> 
<Program label="Gexec" icon="/usr/share/pixmaps/puppy/execute.svg" tooltip="execute a command">gexec</Program>
<Program label="LXTerminal" icon="/usr/share/pixmaps/puppy/terminal.svg" tooltip="Use the command line">lxterminal</Program>
 <Separator/> 
<Program label="Document Viewer" icon="org.gnome.Evince.svg" tooltip="View multi-page documents">evince</Program>
</Menu>
<Menu label="Filesystem" icon="folder48.png" height="24">
<Program label="ROX-Filer" icon="/usr/share/pixmaps/puppy/open.svg" tooltip="File manager">rox</Program>
 <Separator/> 
<Program label="FileMnt" icon="/usr/share/pixmaps/puppy/cdrom.svg" tooltip="Unmount disk image files">filemnt -manager</Program>
<Program label="Pmount" icon="/usr/share/pixmaps/puppy/harddisk.svg" tooltip="Mount/unmount partitions">pmount</Program>
 <Separator/> 
<Program label="pFind" icon="/usr/share/pixmaps/puppy/find.svg" tooltip="Find files on your system">pfind</Program>
 <Separator/> 
<Program label="Partview" icon="/usr/share/pixmaps/puppy/partition.svg" tooltip="Show size and free space of partitions">partview</Program>
</Menu>
<Menu label="Graphic" icon="paint48.png" height="24">
<Program label="mtPaint" icon="mtpaint.png" tooltip="Painting program to create pixel art and manipulate digital photos">mtpaint</Program>
<Program label="Xournal++" icon="com.github.xournalpp.xournalpp" tooltip="Take handwritten notes">xournalpp</Program>
 <Separator/> 
<Program label="Image Viewer" icon="gpicview" tooltip="View your images easily">gpicview</Program>
 <Separator/> 
<Program label="Gcolor2" icon="/usr/share/pixmaps/puppy/graphics.svg" tooltip="Color chooser and picker">gcolor2</Program>
</Menu>
<Menu label="Document" icon="word48.png" height="24">
<Program label="AbiWord" icon="abiword" tooltip="Compose, edit, and view documents">abiword</Program>
 <Separator/> 
<Program label="Geany" icon="geany" tooltip="A fast and lightweight IDE using GTK+">geany</Program>
<Program label="L3afpad" icon="l3afpad" tooltip="Simple text editor">l3afpad</Program>
 <Separator/> 
<Program label="puppyPDF" icon="/usr/share/pixmaps/puppy/pdf.svg" tooltip="Convert file to PDF">puppypdf</Program>
</Menu>
<Menu label="Business" icon="spread48.png" height="24">
<Program label="Gnumeric" icon="gnumeric" tooltip="Calculation, Analysis, and Visualization of Information">gnumeric</Program>
 <Separator/> 
<Program label="Galculator" icon="galculator.xpm" tooltip="Perform simple and scientific calculations">galculator</Program>
<Program label="gMeasures" icon="currency_dollar" tooltip="Weights and measures converter">gmeasures</Program>
</Menu>
<Menu label="Personal" icon="date48.png" height="24">
<Program label="Figaro's Password Manager 2" icon="fpm2" tooltip="Manage passwords">fpm2</Program>
<Program label="Xpad" icon="xpad" tooltip="Jot down notes for later">xpad</Program>
 <Separator/> 
<Program label="Osmo" icon="osmo" tooltip="Personal Organizer">osmo</Program>
 <Separator/> 
<Program label="pClock" icon="/usr/share/pixmaps/puppy/clock.svg" tooltip="Time tools">pclock</Program>
<Program label="pTiming" icon="/usr/share/pixmaps/puppy/clock_stopwatch.svg" tooltip="Event timer system">ptiming</Program>
</Menu>
<Menu label="Network" icon="connect48.png" height="24">
<Program label="Firewall Setup" icon="/usr/share/pixmaps/puppy/firewall.svg" tooltip="Firewall Setup">firewall_ng</Program>
</Menu>
<Menu label="Internet" icon="www48.png" height="24">
<Program label="Palemoon" icon="palemoon" tooltip="Palemoon web browser">palemoon</Program>
 <Separator/> 
<Program label="WeeChat" icon="weechat" tooltip="Extensible chat client">rxvt -title 'WeeChat' -e sh -c 'weechat'</Program>
 <Separator/> 
<Program label="Claws Mail" icon="claws-mail" tooltip="Lightweight and Fast GTK based Mail Client">claws-mail</Program>
 <Separator/> 
<Program label="Transmission" icon="transmission" tooltip="Download and share files over BitTorrent">transmission-gtk</Program>
 <Separator/> 
<Program label="Pup-Advert-Blocker" icon="/usr/share/pixmaps/puppy/dialog_stop.svg" tooltip="Blocks many online adverts">pup-advert-blocker</Program>
</Menu>
<Menu label="Multimedia" icon="multimedia48.png" height="24">
<Program label="DeaDBeeF" icon="deadbeef" tooltip="Listen to music">deadbeef</Program>
<Program label="mpv" icon="mpv" tooltip="Media Player">mpv --player-operation-mode=pseudo-gui</Program>
 <Separator/> 
<Program label="PulseAudio Volume Control" icon="sound_mixer.svg" tooltip="Adjust the volume level">pavucontrol</Program>
</Menu>
<Separator/>
<Program label="Help" icon="help48.png">/usr/sbin/puppyhelp</Program>
<Program label="Leave" icon="shutdown48.png">/usr/sbin/logout_gui</Program>
</RootMenu>

<!-- General classes -->
<Group>
<Class>splashwindow</Class>
<Option>nolist</Option>
<Option>layer:above</Option>
<Option>nopager</Option>
<Option>nofocus</Option>
</Group>

<Group>
<Class>applet</Class>
<Option>layer:below</Option>
<Option>noborder</Option>
<Option>notitle</Option>
<Option>sticky</Option>
<Option>nolist</Option>
<Option>nopager</Option>
</Group>

<Group>		<Class>ontop</Class>		<Option>layer:above</Option>		</Group>
<Group>		<Class>maximized</Class>	<Option>maximized</Option>		</Group>
<Group>		<Class>fullscreen</Class>	<Option>fullscreen</Option>		</Group>
<Group>		<Class>nolist</Class>		<Option>nolist</Option>			</Group>
<Group>		<Class>noborder</Class>		<Option>noborder</Option>		</Group>
<Group>		<Class>notitle</Class>		<Option>notitle</Option>		</Group>
<Group>		<Class>sticky</Class>		<Option>sticky</Option>			</Group>

<!-- 130630 joe added support disable flashing in tray, all apps -->
<Group>
	<Option>noturgent</Option>
</Group>

<Group>
	<Class>gtkdialog-splash</Class>
	<Option>nolist</Option>
	<!-- <Option>layer:above</Option> -->
	<Option>nofocus</Option>
</Group>

<!-- Styles -->
<WindowStyle>
	<Font>DejaVu Sans-10</Font>
	<Width>3</Width>
	<Height>22</Height>     
	<Foreground>#aaaaaa</Foreground>
	<Background>#fffa71:#ffda51</Background>
	<Corner>4</Corner>
	<Outline>gray70</Outline>
	<Active>
		<Foreground>black</Foreground>
		<Background>#ffda51:#ffa100</Background>
		<Outline>black</Outline>
	</Active>
</WindowStyle> 

<PagerStyle>
	<Outline>black</Outline>
	<Foreground>#ffc100</Foreground>
	<Background>#ffc100</Background>
	<Active>
		<Foreground>#ff8100</Foreground>
		<Background>#ffa100</Background>
	</Active>
</PagerStyle>

<MenuStyle>
	<Font>DejaVu Sans-10</Font>
	<Foreground>black</Foreground>
	<Background>#ffda51</Background>
	<Active>
		<Foreground>black</Foreground>
		<Background>#ffda51:#ffa100</Background>
	</Active>
</MenuStyle>

<PopupStyle>
	<Font>DejaVu Sans-10</Font>
	<Outline>black</Outline>
	<Foreground>black</Foreground>
	<Background>yellow</Background>
</PopupStyle>

<!-- <Icons> -->
<IconPath>/usr/share/pixmaps</IconPath>
<IconPath>/usr/share/icons/hicolor/48x48/apps</IconPath>
<IconPath>/usr/share/icons/hicolor/32x32/apps</IconPath>
<IconPath>/usr/share/icons/hicolor/64x64/apps</IconPath>
<IconPath>/usr/local/lib/X11/pixmaps</IconPath>
<IconPath>/usr/local/share/pixmaps</IconPath>
<IconPath>/usr/share/pixmaps/puppy</IconPath>
<IconPath>/usr/share/icons/hicolor/scalable/apps</IconPath>
<IconPath>/usr/local/lib/X11/mini-icons</IconPath>
<IconPath>/var/lib/flatpak/exports/share/icons/hicolor/48x48/apps</IconPath>
<IconPath>/var/lib/flatpak/exports/share/icons/hicolor/scalable/apps</IconPath>
<!-- </Icons> -->

<StartupCommand>xdg_autostart.sh</StartupCommand>

<!-- Virtual Desktops -->
<!-- Name tags can be contained within Desktops for desktop names.  BK: syntax change with jwm 500... -->
<Desktops  width="3" height="1"/>

<!-- Double click speed (in milliseconds) -->
<DoubleClickSpeed>400</DoubleClickSpeed>

<!-- Double click delta (in pixels) -->
<DoubleClickDelta>3</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="4" key="Up">maximize</Key>
<Key mask="4" key="Down">minimize</Key>
<Key mask="4" key="Left">maxleft</Key>
<Key mask="4" key="Right">maxright</Key>

<Key mask="A" key="equal">maximize</Key>
<Key mask="A" key="minus">minimize</Key>
<Key mask="A" key="bracketleft">maxleft</Key>
<Key mask="A" key="bracketright">maxright</Key>

<Key mask="A" key="Tab">nextstacked</Key>
<Key mask="AS" key="Tab">prevstacked</Key>
<Key mask="A" key="F4">close</Key>
<Key mask="CA" key="Right">rdesktop</Key>
<Key mask="CA" key="Left">ldesktop</Key>
<Key mask="CA" key="Up">udesktop</Key>
<Key mask="CA" key="Down">ddesktop</Key>
<Key mask="A" key="F1">root:3</Key>
<Key mask="A" key="F2">exec:gexec</Key>
<Key mask="A" key="F3">window</Key>
<Key mask="CA" key="t">exec:defaultterminal</Key>

<!-- Include external rc files -->
<Include>/root/.jwmrc-tray</Include>
<Include>/root/.jwm/jwmrc-theme</Include>
<Include>/root/.jwm/jwmrc-personal</Include>
<Include>/root/.jwm/jwmrc-wallpaper</Include>
<Include>/root/.jwm/jwmrc-places</Include>
<Include>/root/.jwm/jwmrc-utilities</Include>
</JWM>
