Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Nov 2017, 08:33
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Add A JWM Bookmarks Menu or Submenu/Messing Around With JWM
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 14 of 14 [201 Posts]   Goto page: Previous 1, 2, 3, ..., 12, 13, 14
Author Message
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1497
Location: nyc

PostPosted: Sat 27 Aug 2016, 04:30    Post subject: jwm-based utilities pack and word processor updated.
Subject description: allows easy configuration changes (complete sets or menu, tray, and key bank swaps)...
 

new nwp's got improved jwm config swapping and this thread's arguably the most relevant for the following post, which will hopefully adequately bridge some documentation gaps. from
nwp update improves config swapping and porting, navigation,
word processing, and documentation. uninstalls in parts, but autoinstalls geany and rox tweaks


Quote:

from
update simplifies installation, customization, portability
Subject description: (your original configs become my39 in the launcher--full nwp and functions by default.



Puppus Dogfellow wrote:
(but you can now uninstall aspects of it individually through the piecemeal submenu on mae (launcher code or in your applications folder) or the scripts in /nwp/c)
from minor nwp update (two lines on the pinstall script that lead
into this how-to on the jwm configuration quickswitches
:
Quote:

nwp-6t4.1.pet
nwp32.3.2.pet
nwp64.3.2.pet

only changes since the last batch are an update of the elp help file and the following two lines added to the pinstall scripts (that activate after the pet installation moves in the files you're adding to your system):
Code:

cp -f /root/.jwm/jwmrc-personal /nwp/root3/root39menu/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /nwp/root3/root39menu/_root_.jwmrc


these lines make your current jwm configuration (current as of the time of this nwp.pet install) your my39 quickswitch (i.e. "my39" in the launcher activates that particular set of configuration files); my39r reverses it, but only to the previous configuration. this is to say, installing, playing around with the configuration switches, and then getting back to your preinstall config while leaving the rest of the functions in tact may lead to some unfortunate backtracking--making the originals a quickswitch avoids any headaches and brings up a point about customizing your own (or sets of your own) wm features--anything you do to the contents of the root#menus folders in /nwp/root3 and their associated files will stick as a quickswitch and the feature mod (the tray, key, and menu config files for the nine extra menus (x3), the 6 keycentric configs, the thirty or so trays are all there) will be a part of the swapped in customizations, but you must mod the files in nwp/root3/, not the ones in their system-active places in root/.jwm and /etc/xdg/templates to make them portable (though you could always run the above two lines adjusted to the destination folder of your choice (or drag and drop manually--rl in the launcher then c gets you there...there's a keycut...my guess is alt plus j...(woo hoo)(rung is h for keys launcher, j for rox launcher, k for geany, l for leafpad)...---make changes, restart jwm to see if you like them, copy them to those folders in nwp/root3 if you want to make them swappable. the new menus on scroll up and down and mae (ae menu launched by that code in main launcher) have the quickswitches plus links to edit or activate the keys, trays, menus, etc. you can edit the files to include menus from elsewhere, but all the presets are fed from that folder. make a file of the above repeated for menus30-49 and you could vtg in your current settings at any time with a click of the cauliflower (etc).


from http://www.murga-linux.com/puppy/viewtopic.php?p=920193#920193:
Quote:

[...]

for the 64 bit geanytweaks to work and match up with the jwm and aemenu menus, install the following plugins:
gny125-vtg64jaewm.tar.xz
gny127-vtg64jaewm.tar.xz

unlike prior updates, this version of the nwp (either 32 or 64 bit) will autoinstall the geany tweaks, rox tweaks, and keycentric configs (my1). pinstall script for 32 bit sets the syntax back to the old style for the unicorn and precise spins. will release pae mature (5p), pae new (7x), non pae (6u, the next version of the unicorn spin), and 64 bit--6t4, which will be based on tahr64. i've been using xenial 64 and 32 on somewhat equivalent machines, and now that i know rox being overloaded is what crashes 701 (and avoid it), i have to say i'm happy with the performance of both. my earlier complaints about 32bit when using over 4gig of ram doesn't seem to hold with this newest pup--going to make a xenial spin based on the earlier x7 package since it's got the light recoll. the 64 bit spin won't include it by default, but it will have most of the features of the 32 bit spins. ETP's get chrome64 package has been modded (as anubis,get(64bit)chrome.pet)in an attempt to add some semblance of unifying theme to pux and 6t4 (or 6d4, since the debian-using xenial707-64 also works well with the nwp); i think it's there. the Word Processor and Ultimatesque Utilities Pack (and the vtg) are the anubis folder...everything's a file, a folder... Laughing Rolling Eyes Wink (...)

here's the contents of the geany64 plugin.xz's--127 is for xenial64, 125 is for tahr64 (and it should work in slacko64 as well, but you may need to add the jwm stuff manually--aemenus will work regardless):


geany-plugin-treebrowser_1.27+dfsg-2.pet
geany-plugin-extrasel_1.27+dfsg-2.pet
geany-plugin-spellcheck_1.27+dfsg-2.pet
geany-plugin-multiterm_1.27+dfsg-2.pet


geany-plugin-extrasel_1.25+dfsg-1_amd64.deb
geany-plugin-macro_1.25+dfsg-1_amd64.deb
geany-plugin-multiterm_1.25+dfsg-1_amd64.deb
geany-plugin-numberedbookmarks_1.25+dfsg-1_amd64.deb
geany-plugin-overview_1.25+dfsg-1_amd64.deb
geany-plugin-spellcheck_1.25+dfsg-1_amd64.deb
(tree browser (included in tahr64) and extrasel are the only ones the menus require, though the spell-check dictionary in nwp/wp is there because of the above plugins and their 32 bit counterparts).


jaewm! documentation and keycuts cheat sheet have been updated both in the package and in the repo's support folder.
[...]


line's boldface because i'm about to post the updated launcher code list, and now that the keycentric configs are activated upon installation by default, that list too. also, since i've got a few keyboards that aren't quite as linux compatible as i'd like (microsoft ergo 400 or something, a logitech wireless that's got no middle button, another that's got at least a dozen currently useless multimedia and/or otherwise gummy buttons), i may post an additional keys insert file with the xev mapping for one or two of them. both time-saving lists are already on the ridiculous side of lengthy or approaching it. ...thing that looks like a light switch doesn't register at all...

Re: some new shortcuts
and the previous post summarized.


Puppus Dogfellow wrote:
serf700 -- spit out serif 700 template
sans700 -- spit out sans 700 template
mono700 -- spit out mono 700 template

serl7 -- serif opened in leafpad, 700px viewport
serg7 -- serif opened in geany, 700px viewport
sanl7 -- sans opened in leafpad, 700px viewport
sang7 -- sans opened in geany, 700px viewport
monol7 -- mono opened in leafpad, 700px
monog7 -- mono opened in geany, 700px viewport
baek -- bookmarks menu (/nwp and puppy bookmarks(rox), aefull as a submenu)
baekt -- bookmarks menu (/nwp and puppy bookmarks(thunor), aefull as a submenu)
baekp -- bookmarks menu (/nwp and puppy bookmarks(pcman), aefull as a submenu)
baeks -- bookmarks menu (/nwp and puppy bookmarks(spacefm), aefull as a submenu)
mklpx (in terminal) -- make leafpad 5x5 notetaking pad in working directory (through terminal rather than launcher--it's also now a rox right click > new function).


the viewport function makes the line breaking stuff from earlier more or less obsolete. these are the pw,n launcher versions of the newer templates jwm, aemenu and rox call.

from http://www.murga-linux.com/puppy/viewtopic.php?p=918662#918662


Puppus Dogfellow wrote:
nwp-mc2.pet

fixed up some stuff in /root/.../rox..Templates, making the nwp work better as a right click utility in rox. tidying up that folder led me to condense the word processing templates to three, which are all new--they just add a help comment about the use of comments and add the viewport set to 700--Barry Kauler reported that worked well on his phone, and it's what the word processor FocusWriter also uses, and it seems to comfortably give documents a pdf layout that doesn't cut them at the margins, so it's the default, and it's now more easily accessible--the n, n1, n2, and n3 word processing menus (the latter two no longer labled as one another on the jwm and aemenus) all have the dual launchers (for simultaneous text editor plus browser viewing/work) and templates menus, and now so does rox's right click > new menu, and now they all have the 700px viewport by default option (it's a buried option in the templates > new folder--the wp folder now contains a folder of the panel frames, a set of the dual launchers, a set of templates, and a set of aemenu word processing and utilities menus--other than the pet making utilities (a new one added--it has a folder with a puppy skeleton and a drag and drop directory to pet converter), it's pretty much anything in the templates menu that could be construed as helping with word processing). the mcc make concurrent copies function has also undergone a similar cleanup--your customizations, if any, will be in the original folder as mcc-prev. i added a few more unextensioned options, plus a few for .bak and .~; the icons have been left out of the new version in the templates folder--the mc folder in /nwp still has them. all the aemenu functions are now on the baek menu (also a right click new option) as pop-off menus.

your old templates folder gets backed up as Templates-prev in its original location.
here's the new rox right click > new menu:




Puppus Dogfellow wrote:


http://i102.photobucket.com/albums/m90/augienism/nwpmenutemplatesroxjwmae_zpsa01egwnb.gif


the pets don't install the right click options by default, but /nwp/c has some scripts that will swap out (and back up) your menu2 and .gtkrc (etc) files for those necessary to make the letter shortcuts (right side of screenshot) alterable--this has shown limited success for me on existing installations, always seems to work for remastered isos, sometimes works with merely killall and restarting rox, sometimes works after an x restart---it's not included by default for a reason or two, i guess. the templates for the folder of blank word processing templates, the base mono, serif, and sans set ones, those for config2pet and the menu-here items will be available via right click whether or not the keycuts take or even if no effort is made to install them--they're simply additions made to one of rox's templates folder (seems some pups have two (more?) distinct folders for this, others rely on symlinks...anyway, this tweak doesn't work as consistently as the ae or jwm implementations).

if you want the geany customization menus to function properly, you'll need the plugins installed and the geanytweak script clicked or activated (c/geanytweak in the launcher will activate it, c in the rox launcher (rl main launcher or use the new bookmarks menus) will take you to the folder so you can poke around (mostly install scripts and the location of configurations and customizations you store for future ports/installations through the port/store/configure submenus (mae in the launcher brings one up, but there are few floating around as various jwm submenus))--it swaps in the keyboard, gui, and plugin settings they're expecting.

from
Re: composite screeny, which may be deleted due to hugeness...
shows word processing items as rox right click options, jwm and ae bookmarks menus...


this thread's launcher and keycut bits are adequately up to date, especially if you take the links into account, so i'll hold off on that for a while.


this one's behind on some of the newer stuff but okay on the keycuts and launcher codes as well. here's an updated shot of the rox right click > new menu:
nwp-rox-rtclk-new.jpg
 Description   
 Filesize   40.88 KB
 Viewed   323 Time(s)

nwp-rox-rtclk-new.jpg

Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1497
Location: nyc

PostPosted: Thu 01 Sep 2016, 02:04    Post subject: remapping and or nwping your keyboard
Subject description: using jwm, xev, xdotool, and the nwp keys folder to mess around with oem and aftermarket kbs
 

Quote:

this one's behind on some of the newer stuff but okay on the keycuts and launcher codes as well. here's an updated shot of the rox right click > new menu:


didn't realize i had started a new page so i'll repost the lists, but first the most recent updates and features (a how-to-remap-your-keyboard of sorts (get the codes from xev and use a modifier if it's a system special reserve dealie) and better word processing templates more easily accessed):

from
menu and feature update: adapting keyboards and a menu fix
word processing improvements and keyboard remapping
:

Quote:

from:
Post subject: small update plus how to nwp your auxiliary and media keys
Subject description: partially remapping, for example, a windows natural ergonomic 4000 keyboard




Puppus Dogfellow wrote:
so that you can better process words or do whatever you'd like to do. template below is very heavily modded for nwp functions, though it's got some program specific items (geany's vtg and custom menus) and some mods that should function globally (keyboard as is doesn't really allow you do undo, redo, save, etc, but the jwm file below animates those otherwise dead keys. i left the function lock alone and would have by choice (didn't mess with print screen simply because i like it as screen shot and you could add to it ala key 230 (which you'll soon see)), but i couldn't get xev to identify the light switch or the spell key. messed around with some logitech stuff and it seems to map similar. will test out adesso as well and see how much of the media assignments are universal--on the pups i've used, the volume toggles invariably work, but the browser home buttons are more often than not dead, i find (they work/generally are an unwelcomed shock in xenial64, though).

tems main template menu has been updated and given a prominet key, as have maybe too many nwp codes in general. use the cheat sheet if the function is not immediately clear. use the includes files below (or variations of it) for your own keys, but double check that things are the same with xev even if your keyboard has an envelope button, a house button, etc (identical models should behave the same and not require this step).

from
stock jwm config file has two keyboard shortcuts for default
browser; here's half a dozen for the vtg with potentially hundreds to spare


Code:
<JWM>
<!--replace the mixer lines (or comment them out) and add
this file saved as /nwp/root3/msnatkb with
<Include>/nwp/root3/msnatkb<Include> in their place
 -->
<Key mask="ACS4" keycode="160">exec:amixer sset Master toggle</Key>
<Key mask="ACS4" keycode="176">exec:amixer sset Master 1+,1+</Key>
<Key mask="ACS4" keycode="174">exec:amixer sset Master 1-,1-</Key>
<Key mask="ACS4" keycode="178">exec:defaultbrowser</Key>
<Key mask="ACS4" keycode="176">exec:defaultbrowser</Key>
<!--
<Key keycode="160">exec:amixer sset Master toggle</Key>
<Key keycode="176">exec:amixer sset Master 1+,1+</Key>
<Key keycode="174">exec:amixer sset Master 1-,1-</Key>
<Key keycode="178">exec:/nwp/duals</Key>
<Key keycode="236">exec:defaultbrowser</Key>
 -->
<Key keycode="111">exec:defaultscreenshot</Key>



<Key keycode="178">exec:window</Key>
<Key keycode="229">exec:recoll</Key>
<Key keycode="236">exec:tem</Key>

<Key keycode="183">exec:/nwp/n1</Key>
<Key keycode="184">exec:/nwp/n3</Key>
<Key keycode="93">exec:/nwp/n2</Key>
<Key keycode="131">exec:/nwp/n</Key>
<Key keycode="247">exec:/nwp/baek</Key>

<Key keycode="160">exec:1</Key>
<Key keycode="174">exec:2</Key>
<Key keycode="176">exec:0</Key>
<!--^(single, double, and supplemental windows menus) -->

<Key keycode="162">exec:/nwp/aef</Key>
<Key keycode="161">exec:galculator</Key>
<!--<Key mask="A" keycode="162">exec:/nwp/</Key>
<Key mask="A" keycode="161">window</Key>
^silver rung starting with 1--mag glass is now window button-->

<Key keycode="230">exec:/nwp/v</Key>

<Key mask="A" keycode="230">exec:/nwp/p</Key>
<Key mask="C" keycode="230">exec:/nwp/ch</Key>
<Key mask="S" keycode="230">exec:/nwp/gl</Key>
<Key mask="4" keycode="230">exec:/nwp/k</Key>
<Key mask="AC" keycode="230">exec:/nwp/ll</Key>
<Key mask="AS" keycode="230">exec:/nwp/rl</Key>
<Key mask="A4" keycode="230">exec:/nwp/pwns</Key>
<Key mask="CS" keycode="230">exec:/nwp/keys/2k</Key>
<Key mask="C4" keycode="230">exec:/nwp/keys/kch</Key>
<Key mask="S4" keycode="230">exec:/nwp/keys/kg</Key>
<Key mask="ACS" keycode="230">exec:/nwp/keys/kir</Key>
<Key mask="AC4" keycode="230">exec:/nwp/keys/kl</Key>
<Key mask="CS4" keycode="230">exec:/nwp/keys/kgi</Key>
<Key mask="ACS4" keycode="230">exec:/nwp/vtg5</Key>

<Key keycode="234">prev</Key>
<Key keycode="233">next</Key>

<Key mask="A" keycode="234">prev</Key>
<Key mask="A" keycode="233">next</Key>
<Key mask="C" keycode="234">prevstacked</Key>
<Key mask="C" keycode="233">nextstacked</Key>
<Key mask="S" keycode="234">sendl</Key>
<Key mask="S" keycode="233">sendr</Key>
<Key mask="4" keycode="234">ldesktop</Key>
<Key mask="4" keycode="233">rdesktop</Key>
<!--function rung:-->


<Key keycode="245">exec:/nwp/p</Key>
<Key keycode="135">exec:/nwp/keys/k/cz</Key>
<Key keycode="138">exec:/nwp/keys/k/cy</Key>
<Key keycode="137">exec:/nwp/keys/k/cn</Key>
<Key keycode="191">exec:/nwp/keys/k/co</Key>
<Key keycode="175">exec:/nwp/keys/k/cw</Key>
<Key keycode="228">exec:/nwp/keys/k/acswf16</Key>
<Key keycode="142">exec:/nwp/keys/k/acswf18</Key>
<Key keycode="218">exec:/nwp/keys/k/acswf17</Key>
<!--^set anchor, rectangular select to anchor, select to anchor-->
<Key keycode="213">exec:/nwp/keys/k/cs</Key>
<Key keycode="185">exec:/nwp/keys/k/cp</Key>
<Key keycode="78">exec:/nwp/lpx</Key>
<Key keycode="110">exec:/nwp/v</Key>


<Key keycode="157">exec:/nwp/keys/k/acswf15</Key>
<Key keycode="246">exec:/nwp/keys/k/acswf13</Key>
<Key keycode="251">exec:/nwp/keys/k/acswf14</Key>

<!--^move last, last used, move first-->


<Key mask="A" keycode="245">exec:/nwp/k</Key>
<Key mask="A" keycode="135">exec:/nwp/chab</Key>
<Key mask="A" keycode="138">exec:/nwp/chad</Key>
<Key mask="A" keycode="137">exec:/nwp/gab</Key>
<Key mask="A" keycode="191">exec:/nwp/gad</Key>
<Key mask="A" keycode="175">exec:/nwp/lab</Key>
<Key mask="A" keycode="228">exec:/nwp/lad</Key>
<Key mask="A" keycode="142">exec:/nwp/rab</Key>
<Key mask="A" keycode="218">exec:/nwp/rad</Key>
<Key mask="A" keycode="213">exec:/nwp/tem</Key>
<Key mask="A" keycode="185">exec:tas</Key>
<Key mask="A" keycode="78">exec:geany -i</Key>
<Key mask="A" keycode="110">exec:vtg5</Key>

<Key mask="A" keycode="157">exec:/nwp/keys/k/acswf16</Key>
<Key mask="A" keycode="246">exec:/nwp/keys/k/acswf18</Key>
<Key mask="A" keycode="251">exec:/nwp/keys/k/acswf17</Key>

<!--^set anchor, rectangular select to anchor, select to anchor-->
<!--
<Key mask="C" keycode="245">exec:</Key>
<Key mask="C" keycode="135">exec:</Key>
<Key mask="C" keycode="138">exec:</Key>
<Key mask="C" keycode="137">exec:</Key>
<Key mask="C" keycode="191">exec:</Key>
<Key mask="C" keycode="175">exec:</Key>
<Key mask="C" keycode="228">exec:</Key>
<Key mask="C" keycode="142">exec:</Key>
<Key mask="C" keycode="218">exec:</Key>
<Key mask="C" keycode="213">exec:</Key>
<Key mask="C" keycode="185">exec:</Key>
<Key mask="C" keycode="78">exec:</Key>
<Key mask="C" keycode="110">exec:</Key>
<Key mask="C" keycode="157">exec:</Key>
<Key mask="C" keycode="246">exec:</Key>
<Key mask="C" keycode="251">exec:</Key>
-->
<!--
<Key mask="4" keycode="245">exec:</Key>
<Key mask="4" keycode="135">exec:</Key>
<Key mask="4" keycode="138">exec:</Key>
<Key mask="4" keycode="137">exec:</Key>
<Key mask="4" keycode="191">exec:</Key>
<Key mask="4" keycode="175">exec:</Key>
<Key mask="4" keycode="228">exec:</Key>
<Key mask="4" keycode="142">exec:</Key>
<Key mask="4" keycode="218">exec:</Key>
<Key mask="4" keycode="213">exec:</Key>
<Key mask="4" keycode="185">exec:</Key>
<Key mask="4" keycode="78">exec:</Key>
<Key mask="4" keycode="110">exec:</Key>
<Key mask="4" keycode="157">exec:</Key>
<Key mask="4" keycode="246">exec:</Key>
<Key mask="4" keycode="251">exec:</Key>
-->

</JWM>



wasn't able to post either the comment wondering how to post beneath one's attachment or anything below the attachment, but above is a very nwp/pwn anubis heavy jwm keyboard insert file that will get back and multiply the functionality of some aftermarket keyboards (this is set to the ms ergo keyboard above--i'll eventually do remaps for some logitech products i have--an ergo wireless keyboard, a new version that's slim and has a trackpad but had no middle click function, --i figure one set to highlight the word processor/utilities pack and another to just maximize customizability and functionality--just rows of blank templates like i did with the function keys (the physical ones, not those in /nwp/keys/k).

as the comment says,

Quote:
<!--replace the mixer lines (or comment them out) and add
this file saved as /nwp/root3/msnatkb with
<Include>/nwp/root3/msnatkb<Include> in their place
-->


this will get rid of your dublicate browser shortcuts, match up some (i didn't look into send or forward because i don't do that much--those have been remapped to set anchor, rectangular select to anchor, select to anchor) of the labels with reality, and make the nwp pretty easy to use. launcher code cheat sheet should explain program codes that otherwise seem cryptic.(many keys now launch aemenus).

keycuts for keycode 230 (the star button top middle) show how you can expand down on a key just about as easily or conveniently as across--just depends on what you can manage to arrange in a way that will make sense to you.


_________
from
Post subject: reprogramming aftermarket keyboards 1: ms natural ergo 4000
Subject description: noopin' out a great natural/getting use out of some buttons



from http://i102.photobucket.com/albums/m90/augienism/remapping%20ms%20nat%20kb_zpsmtwb0s0t.jpg, an image too big to considerately post, so the text bit:

keys marked with an asterisk (home, envelope, mute toggle, volume up, volume down) are premapped by the keyboard, the machine, or possibly your windows manager. in most cases, pressing a modifier key will reveal what key code is being used--most dedicated function keys seem to be modifiers plus regular keyboard keys. you can either start your modifications with those keys modified or you can remap the originals if possible--xev can't see them when they're pressed on their own, but most reveal the base key when a modifier is added. keys that don't work in this model are the light switch looking thing, the key marked "spell," and the key that toggles the function keys. home, mute, volume up and down are part of jwm's built ins (i intend to demote the original
functions to 4 modifiers. being labeled, they'll be easy to identify, and four is an easy enough number to remember.
Code:
<Key keycode="251">exec:/nwp/keys/k/acswf14</Key>

for modified keys:
<Key mask="A" keycode="245">exec:/nwp/k</Key>

upcoming sample remap leaves a number of the global (but not in linux though many of the call codes are the same) labels active by calling their equivalent in nwp/keys/k, which is the location of the virtual keypad--cn (for control+n for the new key, co for open and the most of the rest of that row in manner called by that nwp subfolder and/or the k launcher) and similar is also a way to transfer your own oft-used keycuts to keyboard buttons. acsw=alt+control+shift+windows key. ACS4 is the jwm version of the same--seems most programs allow up to at least four modifiers...

the illustration bit:
_______

from
forgot to update the tem (templates menu) last time around
save as /nwp/tempa2

Quote:


Quote:
menu "Individual Duals and The Dual Launchers Folder"
cmd "duals folder for drag and drop/batch launching" "/nwp/duals"
cmd "geany, chrome" "/nwp/ggc"
cmd "geany new instance, chrome" "/nwp/gigc"
cmd "geany new instance, opera" "/nwp/gio"
cmd "leafpad, chromium" "/nwp/lgc"
cmd "geany new instance, firefox" "/nwp/gif"
cmd "default text editor, default browser" "/nwp/def"
cmd "geany, firefox" "/nwp/gf"
cmd "default text editor, firefox" "/nwp/tef"
cmd "leafpad, firefox" "/nwp/lff"
cmd "geany, default browser" "/nwp/gb"
cmd "geany new instance, default browser" "/nwp/gib"
cmd "leafpad, default browser" "/nwp/leb"
cmd "leafpad, seamonkey" "/nwp/leafy"
cmd "leafpad, dillo" "/nwp/dlll"
cmd "geany, dillo" "/nwp/ged"
cmd "geany, seamonkey" "nwp/ges"
cmd "leafpad, opera" "/nwp/lop"
cmd "geany, palemoon" "/nwp/gep"
cmd "geany, chromium" "/nwp/gc"
cmd "geany new instance, palemoon" "/nwp/gip"
cmd "geany new instance, chromium" "/nwp/gic"
cmd "leafpad, palemoon" "/nwp/lep"
cmd "geany new instance, dillo" "/nwp/gid"
cmd "leafpad, chromium" "/nwp/lec"
cmd "geany new instance, seamonkey" "/nwp/gis"
cmd "geany new instance, slimjet" "/nwp/gij"
cmd "geany, slimjet" "/nwp/gj"
cmd "geany, netsurf" "/nwp/gn"
cmd "geany new instance, netsurf" "/nwp/gin"
cmd "leafpad, netsurf" "/nwp/lns"
cmd "leafpad, slimjet" "/nwp/lj"
end
cmd "Templates, Two Versions:" "templates: two versions"
cmd "1. Rebuild/Spit Template Code/Convert to NWP (html):" "rebuild/spit template code"
cmd " sans serif template" "/nwp/san1"
cmd " serif template" "/nwp/serf1"
cmd " mono template" "/nwp/mono1"
cmd "spit out serif 700 template" "/nwp/serf700"
cmd "spit out sans 700 template" "/nwp/sans700"
cmd "spit out mono 700 template" "/nwp/mono700"
cmd "2. Rename And Use:" "rename and use:"
cmd " mono  opened in geany" "/nwp/mono"
cmd " mono opened in leafpad" "/nwp/monol"
cmd " sans opened in geany" "/nwp/sans"
cmd " sans opened in leafpad" "/nwp/sansl"
cmd " serif opened in geany" "/nwp/serf"
cmd " serif opened in leafpad" "/nwp/serfl"
cmd "serif opened in leafpad, 700px viewport" "/nwp/serl7"
cmd "serif opened in geany, 700px viewport" "/nwp/serg7"
cmd "sans opened in leafpad, 700px viewport" "/nwp/sanl7"
cmd "sans opened in geany, 700px viewport" "/nwp/sang7"
cmd "mono opened in leafpad, 700px" "/nwp/monol7"
cmd "mono opened in geany, 700px viewport" "/nwp/monog7"



has the updated templates and doesn't need any permissions set. just save as /nwp/tempa2, overwriting your original.


here's a pic of the mapping on the nat ergo 4000:

kbmsn.JPG
 Description   
 Filesize   48.76 KB
 Viewed   293 Time(s)

kbmsn.JPG

Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1497
Location: nyc

PostPosted: Thu 15 Sep 2016, 23:48    Post subject: another nwp update (nwp32/64.4)
Subject description: fix for edpin script (don't use it without the fix)
 

from nwp32/64.4 --set run actions and icons for your files, some
more about the launchers and file generation, a bug fix that's a how-to for the newest one.
:
Quote:


nwp64.4.pet

nwp32.4.pet

Quote:

post is long enough but in short, the main feature of the upgrade is the ability to set run actions for your word processing files (or any other, though it was put together in part to a geany-vtg type start center). from the comments on a picture in a folder in my repo:
Quote:

another use for the mcc (make concurrent copies) function is assigning text files to pairs of programs (browser-text editor) by having the copies carry an extension that will set them apart from everything else. right click in rox to set both a run action (pick something from the duals folder, to continue on the word processing bent, though that's not strictly necessary) and icon. screen shot shows...

from

Post subject: ~572.64.1/6t4.1: a 64 bit version based on tahrpup64_6.0.5
Subject description: 2 versions are essentially the same--something's up with something's compression settings somewhere
, which has no subtitle but is part of Rattlehead's set run action quickly thread):


Puppus Dogfellow wrote:
Code:
#!/bin/sh
#nwp64.4
echo application/x-def:*.mon >> /usr/share/mime/globs
echo 50:application/x-def:*.mon >> /usr/share/mime/globs2
echo application/x-def text/xml >> /usr/share/mime/subclasses
echo application/x-def >> /usr/share/mime/types
echo application/x-def:*.san >> /usr/share/mime/globs
echo 50:application/x-def:*.san >> /usr/share/mime/globs2
echo application/x-def:*.ser >> /usr/share/mime/globs
echo 50:application/x-def:*.ser >> /usr/share/mime/globs2
echo application/x-def:*.pwn >> /usr/share/mime/globs
echo 50:application/x-def:*.pwn >> /usr/share/mime/globs2
echo application/x-def:*.nwp >> /usr/share/mime/globs
echo 50:application/x-def:*.nwp >> /usr/share/mime/globs2
echo application/x-def:*.mono >> /usr/share/mime/globs
echo 50:application/x-def:*.mono >> /usr/share/mime/globs2
echo application/x-def:*.def >> /usr/share/mime/globs
echo 50:application/x-def:*.def >> /usr/share/mime/globs2
echo application/x-def2:*.def2 >> /usr/share/mime/globs
echo 50:application/x-def2:*.def2 >> /usr/share/mime/globs2
echo application/x-def2 text/xml >> /usr/share/mime/subclasses
echo application/x-def2 >> /usr/share/mime/types
echo application/x-def3:*.def3 >> /usr/share/mime/globs
echo 50:application/x-def3:*.def3 >> /usr/share/mime/globs2
echo application/x-def3 text/xml >> /usr/share/mime/subclasses
echo application/x-def3 >> /usr/share/mime/types
echo application/x-pwp:*.mons >> /usr/share/mime/globs
echo 50:application/x-pwp:*.mons >> /usr/share/mime/globs2
echo application/x-pwp text/xml >> /usr/share/mime/subclasses
echo application/x-pwp >> /usr/share/mime/types
echo application/x-pwp:*.sans >> /usr/share/mime/globs
echo 50:application/x-pwp:*.sans >> /usr/share/mime/globs2
echo application/x-pwp:*.sers >> /usr/share/mime/globs
echo 50:application/x-pwp:*.sers >> /usr/share/mime/globs2
#(copy in def pwp desktop files); fixmenus jwm -restart
#set run action:
mkdir -p /root/.config/rox.sourceforge.net/MIME-types
ln -s /usr/share/applications/pwp /root/.config/rox.sourceforge.net/MIME-types/application_x-pwp
ln -s /usr/share/applications/def /root/.config/rox.sourceforge.net/MIME-types/application_x-def
#set icon:
cp -f //usr/share/applications/icons-alt/inpare9.xpm /root/.config/rox.sourceforge.net/MIME-icons/application_x-def.png
cp -f /usr/share/applications/icons-alt/p2e0.xpm  /root/.config/rox.sourceforge.net/MIME-icons/application_x-pwp.png
[...]

Quote:
Posted: Tue 06 Sep 2016, 20:23 Post subject: alternate version of above
Subject description: untested but i think it will work. am i overlooking something?


had the names on the icons wrong for one thing (left out a -x), but that method of setting them works so inconsistently (or i confused something by repeatedly swapping back and forth so many times) i ended up putting an alt-icons folder in usr//share/applications just so i could easily right-click assign them--it's a useless part of the script. Laughing

maybe messing with that /root/.config/rox.sourceforge.net/ROX-Filer/globicons file is a better way?(
Quote:
Rattlehead
Posted: Wed 07 Sep 2016, 17:44 Post subject:
Speaking of icons...
[...]...
)

anyway, i used it in a pinstall script for a pet that was making most of a remaster and the copies all have the four extensions register as unique entities that can get their own programs and icon assignments (which is cool/i'm over the disappointment and inconvenience). Very Happy


http://www.murga-linux.com/puppy/viewtopic.php?p=923025#923025


nwp64.4.pet

nwp32.4.pet

from
fixing a bug with the auxiliary launchers or keycuts
pruning or setting drive arrays
:
Quote:

Quote:

that emboldened bit of gibberish was meant to say "as an alternative to a geany-vtg type start center." (any of the dual launcher codes prefacing a list of files will open them up in both a browser and editor. other than dragging and dropping files or groups of files onto the scripts or their .desktop representations, this seemed like the easiest way to process words (so to speak, so to speak) with the anuupuus (Word Processor (U..)Utilities Suite). now you get another way and some (i think) relatively nifty icons.

will have a bug fix pet to get rid of the ghost drives on the alternate pinboards and fix up the edit store port scripts (for now, don't use--just had the edpin wig out geany...---had to actually reboot to get out of the loop actually. lost a post and everything.)



there's no reason to issue a pet fix for the edpin problem--just use the auxiliary launchers or built-in keycuts to fix it. method one: main launcher (shift+spacebar), gl (opens the file in geany; use ll if you want to open the file in leafpad), enter, edpin, enter.

this opens up "edpin" for editing (if the file didn't exist, it would make a blank file with that name for you to save in the location of choice--gl and ll are word processing functions at least as much as configuration and maintenance tools) and presents

Code:

#!/bin/sh
geany /root/Choices/ROX-Filer/Pup*
/nwp/edpin
 


to fix it, add a pound sign to or delete the last line, making it
Code:

#!/bin/sh
geany /root/Choices/ROX-Filer/Pup*
#/nwp/edpin #--this was supposed to have been commented out
 


had i just left the /nwp/part off (comment mark would've made it the title), no real harm would've been done--it would've just made a file called "edpin" that had no set location for its contentlessness (beyond /root/edpin--root seems to be geany's default location for files made this way. the ones you create through the file > new dialog i believe get made in /tmp...). as it stood, the file as command continually reactivated itself as the last step. comment makes it back into a tile, and brings up another error, this time in documentation.

maybe i was still in shock at having to reboot (such a simple script (when done right) and geany is normally so reliable...), but i should've pointed out that the bare dual launcher codes need to be prefaced with their full path (/nwp/) because the codes aren't part of the PATH (those that are can be bare. i.e. geany -i /root/1 /etc/2 will open up those files when you activate the vtg (either through the keyboard (alt+z), the menus (vtg or the cauliflower), the tray (cauliflower)...)). so, for example, if you want geany and pale moon to open the files, use

Code:
/nwp/gp /path/to/file /path(s)/to/file(s)


Quote:

method one: main launcher (shift+spacebar), gl (opens the file in geany; use ll if you want to open the file in leafpad), enter, edpin, enter.

Quote:
modifier(s)=Alt KEY=h -- /nwp/k
modifier(s)=Alt KEY=j -- /nwp/rl
modifier(s)=Alt KEY=k -- /nwp/gl
modifier(s)=Alt KEY=l -- /nwp/ll



default shortcuts for most recent spins/nwps use the above, so method two is alt+k (or l, if if you want the file opened in leafpad), add the pound sign, save. that will fix the script so that "edpin" in the launcher opens up the six new pins. (index finger gets k for key launcher because i at one time believed it would see more use, or, if used at all, would be used somewhat heavily). if you want driveless pins, or more control over their placement than normally holds in Puppy, look for the bit that has "args" in it. those are your drive icons (i.e. <icon x="32" y="836" label="sda1" args="drive ext4">/root/.pup_event/drive_sda1</icon>)

delete the lot for driveless, copy your extant set over from PuppyPin (no extra number) to have it on each of the alternate pins. since they are now frozen with the text file, they'll remain in (odd, if you so choose) position(s) even after the auto redrawing of icons that occurs at boot and X restarts.

if you want to automount all your drives, you could drag musher0's monter5 script out of quar in Startup. since alt plus spacebar is root, one of the first things i do on a new install is activate that shortcut, then navigate to startup adn /my-applications/bin and make those (by use of ctrl plus number) rox speed dials 2 and 3. if you want to automount at a click and your discretion, leave monter5 in /quar (alt+t spacebar then 2 to get to its parent folder if you followed the quick links howto above).

rox is cool. Very Happy

(rl, the last launcher in that bank, is rox opened at /nwp/--the short names of the mostly blank directories are to provide quick cover for you and your creations--d plus enter in that one gets you a blank directory, nwp's version of My Documents, my-documents (though there's also a "docs"), etc).

have fun with it.
Very Happy



not sure if this will help clarify things, or from where you need to enter the discussion to be in need of clarification, but this update and bugfix also seems to me to be a howto and an explanation of some more of the nwp's features.

further, while it does get documents created and saved and arguably sorted and stored, and all very quickly, the formatting is best kept for pasting into more proper word processors like google docs, libreoffice, or even notecase (which can also export to html (and therefore pdf)). the print view will give you a scalable interface, but lately isn't heeding the viewport, at least not in 64 bit. haven't tested on 32 bit lately, but it doesn't seem to work as consistently (is it a browser issue?) as i remembered. for my own use, i use the nwp((as in (A NWP/A NWPUS) primarily for document creation and modification and the utilities side of things. if i need to edit more formally, i paste into libre or google. i'll make a return to the minimal versions (under 50k) in a release or two, but these last two are relatively monstrous--14mb. there may be a weight reduction pet in the future to reduce this--there's some redundant documentation and many icons that can be autogenerated if needed...)
the newer tiny noop will be in at least two versions, both smaller than the original: http://www.murga-linux.com/puppy/viewtopic.php?p=860360#860360. i'm thinking at least one version should incorporate the new Quasi-Proprietary File Type feature, possibly as an offshoot of the mcc (make concurrent copies) feature.

mcc: http://www.murga-linux.com/puppy/viewtopic.php?p=902287#902287 (attachment at the end shows it being used for this purpose)




32/64.4 pet puts the alt-icons folder in your usr/share/applications diretory. it contains the drag and drop dual launchers for word processing use and some icons--right click a file to which you added one of those extensions (pwn, pwp, sans, ser, def3, def4, mons, mon...) to set an icon and run action for it. you've got four new categories, none of which have to be actually set for word processor use.
Quote:




the six choices (pp1-6 in the launcher) are really the same 2 three times each. one's more minimal and the other's got some tools useful for getting you first set up, though it's hard for me to say which i'd choose to mod--easier to drag to one or delete from the other...

shown are some of the suggested icons for the word processor (or libre--i actually prefer that odt icon to the regular one as it sets it apart from the docx files better). [...]





mimetype-icon_change (1).gif
 Description   mcc function (indirectly) setting run action (not shown) and icon
 Filesize   26.14 KB
 Viewed   271 Time(s)

mimetype-icon_change (1).gif

Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1497
Location: nyc

PostPosted: Mon 29 May 2017, 02:40    Post subject: make caps lock control, scroll lock caps lock, and pile
Subject description: functions onto pause break (here's a map tweak for a 10keyless keyboard)
 

more keyboard fun:

Cherry lost its patent on the mx mechanical keyboard switches in 2014 (or so i think i remember reading), and now you can pick up knockoffs pretty cheap--if the tenkeyless brown switch item i just got for 24 bucks shipped is any indication, they're way better than what normally comes with the machine.

anyway, dump the code below in a terminal to get the cap locks button made into an additional control button, the scroll lock button turned into a caps lock button, and a file set up for you to add to /root/.jwm/jwmrc-personal in case you want to use the pause break button for up to 16 functions (i suppose you could make one function pause break and another scroll lock--don't think i've ever used either of those).

Code:
echo $'! backup your original map with xmodmap -pke > root/xmodmap-original.
! run xmodmap /root/xmodmap-original to undo the changes.
! move capslock to scroll lock and make the original capslock ctrl:
remove Lock = Caps_Lock
remove Control = Control_L
keycode 78 = Caps_Lock
keycode 66 = Control_L
add Lock = Caps_Lock
add Control = Control_L

' > /root/tklv1.xmodmap
echo $'#!/bin/sh
xmodmap /root/tklv1.xmodmap
#scroll lock=caps lock, caps lock=control; modify 110 key (pause break) through your wm.
' > /root/Startup/xmodtkl
chmod 755 /root/Startup/xmodtkl
/root/Startup/xmodtkl

echo $'<JWM>
<!--
add Include line below to /root/.jwm/jwmrc-personal
<Include>/root/jwmpausekey</Include>

Key bindings 
on this tenkeyless Velocifire, Pau is keycode 110. some examples:-->

<Key keycode="110">exec:xdotool key alt+ctrl+shift+super+F16</Key>
<Key mask="A" keycode="110">exec:xdotool key alt+ctrl+shift+super+F18</Key>
<Key mask="C" keycode="110">exec:leafpad</Key>
<Key mask="S" keycode="110">exec:/nwp/lpx</Key>
<Key mask="CA" keycode="110">escape</Key>
<Key mask="CS" keycode="110">select</Key>
<Key mask="AS" keycode="110">move</Key>
<Key mask="CAS" keycode="110">window</Key>
<Key mask="4" keycode="110">exec:defaultbrowser</Key>
<Key mask="4A" keycode="110">root:2</Key>
<Key mask="4C" keycode="110">root:3</Key>
<Key mask="4S" keycode="110">exec:/nwp/n</Key>
<Key mask="4CA" keycode="110">exec:rox</Key>
<Key mask="4CS" keycode="110">exec:/nwp/aef</Key>
<Key mask="4AS" keycode="110">exec:vlc</Key>
<Key mask="4CAS" keycode="110">exec:/nwp/mae</Key>

<!--
pulling a few from the /nwp/root3/9/jag menu (root2 on the last nwps):
<Program label="set anchor" icon="/nwp/keys/icons/icons-sup/as22.png">xdotool key alt+ctrl+shift+super+F16</Program>
<Program label="rectangular select to anchor" icon="/nwp/keys/icons/icons-sup/a2s.png">xdotool key alt+ctrl+shift+super+F18</Program>
<Program label="select to anchor" icon="/nwp/keys/icons/icons-sup/as222.png">xdotool key alt+ctrl+shift+super+F17</Program>
-->
</JWM>
' > /root/jwmpausekey


geany /root/jwmpausekey /root/.jwm/jwmrc-personal in a terminal to open the keyfile and the file you're adding the "includes" line to.

-----

just tested it on a more typical 101 (or so--logitech cheapo model and i didn't count--almost always 101-104 keys if it's got a number pad) key keyboard--works just the same (scroll lock, caps lock, and pause break appear to be named fairly consistently so the xmodmap part of the code should work in most things. use xev to double check or find more keycodes)

if you're thinking of getting one, 84 key models usually rely on Fn to get scroll and pause--the xmodmap part should still work fine, but you may need an extra key press for the other stuff (or it may not work at all. still have a couple in the mail--will check eventually).

xmodmap changes will take place as soon as you run the code. to incorporate your pause key tweaks into the system, you must run jwm -restart (or click it from the menu).

enjoy.
Very Happy

________
(note: to get a backup of your current keymap, xmodmap -pke > /root/xmodmap-original. to activate it, xmodmap /root/xmodmap-original.)
________
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1497
Location: nyc

PostPosted: Mon 05 Jun 2017, 05:25    Post subject: more small keyboard tweaks
Subject description: including adding some mouse functions
 

Code:
#!/bin/sh
echo $'
#!/bin/sh
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
              --title="" --window-icon="/root/my-applications/bin/icons/purwup.png" \
              --entry --entry-label="Run command:"  \
              --column="command" --entry-text "xdotool mousemove ")
[ -z "$CMDLINE" ] && exit 0

$CMDLINE &
exit 0

' > /root/my-applications/bin/mous
# example: xdotool mousemove 110 550 click 1
echo $'
#!/bin/sh
/root/my-applications/bin/mous| xdotool sleep .3 key Right
' > /root/my-applications/bin/mou
chmod 755 /root/my-applications/bin/mou /root/my-applications/bin/mous

echo $'
#!/bin/sh
xmodmap /root/my-applications/bin/81.xmodmap
#scroll lock=caps lock, caps lock=control; modify 110 through wm.
' > /root/my-applications/bin/xmod81

echo $'
remove Lock = Caps_Lock
remove Control = Control_L
keycode 78 = Caps_Lock
keycode 66 = Control_L
add Lock = Caps_Lock
add Control = Control_L
keycode 129 = Menu
! fn + media player (F1) does nothing on my machine out of the box so that's the one i'm purposing
' > /root/my-applications/bin/81.xmodmap
chmod 755 /root/my-applications/bin/xmod81

echo $'
#!/bin/sh
xmodmap /root/my-applications/bin/81b.xmodmap
#scroll lock=caps lock, caps lock=control; modify 110 through wm.
' > /root/my-applications/bin/xmod81b

echo $'
remove Lock = Caps_Lock
keycode 78 = Caps_Lock
keycode 66 = Menu
add Lock = Caps_Lock
! caps lock becomes menu, scroll lock becomes caps lock
' > /root/my-applications/bin/81b.xmodmap
chmod 755 /root/my-applications/bin/xmod81b

echo $'
remove Lock = Num_Lock
remove Lock = Caps_Lock
remove Control = Control_L
keycode 78 = Caps_Lock
keycode 66 = Control_L
add Lock = Caps_Lock
add Control = Control_L
keycode 77 = Menu
! make numlock menu, caps lock control, scroll lock caps lock
' > /root/my-applications/bin/84.xmodmap

echo $'
#!/bin/sh
' > /root/my-applications/bin/xmod84
chmod 755 /root/my-applications/bin/xmod84

#cp -f /root/my-applications/bin/xmod84 /root/Startup/xmod84
#cp -f /root/my-applications/bin/xmod81 /root/Startup/xmod81
#cp -f /root/my-applications/bin/xmod81b /root/Startup/xmod81b
#/root/Startup/xmod81b
#/root/Startup/xmod81
#/root/Startup/xmod84
#copy your xmod settings to startup and run
add to jwmrc personal:


<Key mask="4" key="1">exec:xdotool click 1</Key>
<Key mask="4" key="2">exec:xdotool click 2</Key>
<Key mask="4" key="3">exec:xdotool click 3</Key>
<Key mask="4" key="4">exec:/root/my-applications/bin/mou</Key>


or


<Key mask="4" key="space">exec:/root/my-applications/bin/mou</Key>
<Key mask="4A" key="space">exec:xdotool click 1</Key>
<Key mask="4C" key="space">exec:xdotool click 2</Key>
<Key mask="4S" key="space">exec:xdotool click 3</Key>


<!-- <Key mask="4AC" key="space">exec:/root/my-applications/bin/menu</Key>
this one wouldn't work on the key either directly or through a script--see the xmodmap scripts/files to get the menu key back on models with 84 keys or fewer (main difference between 81 and 82 seems to be a missing right control button--my eighty two is missing that, number lock and menu; 84 is missing menu but has number lock on th FN layer)
-->

(general update based on the nwp update based on the previous post:

Quote:

i couldn't get jwm to run "xdotool key Menu" from a key (works fine from a terminal), so to get it back on the abbreviated keyboards (most of my boards don't have it, just recently noticed it on a few, and have grown to like having it in a relatively short time), i opted for either the caps lock key, the number key, or a dead function key (the three variations above). next nwp will have this upgrade included.

win+1--click 1, win+2--click2, win+3--click3, win+4--mouse move launcher, mou in the launcher--mousemove launcher.


"mou" in a terminal will bring up the launcher if you're doing this non-nwp (code in the other thread writes most of the files and scripts to the nwp directory rather than my-applications/bin).

to use the launcher, just add the x coordinates of your choice, a space, then the y coordinates. (ie. 500 500). if the popup has the xdotool mousemove bit highlighted when it comes into view, hit the right arrow (and/or adjust the sleep time til it fits your setup).
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1497
Location: nyc

PostPosted: Thu 02 Nov 2017, 01:33    Post subject: two more ways to get bookmarks on your menus
Subject description: virtual multipane launches plus a close all as an example of icons through the terminal
 

a return to the motivation behind the original posts in the thread: the multi-panes are really multiple directories opened at once, so i'm using the close all rox script (it'll probably come in handy if you use anything from this post--those windows can really begin to bury you) as the example for how to get icons into your pup through the terminal.

Virtual Multi-Pane (really multiple windows/directories, but it more less functions as multi-pane) and a Close All Rox Windows Command Line Menu Install And Icon Creator/Placer. run as a script or dump into a terminal; modify and rerun as often as you like:

Code:


#!/bin/sh
#rox multipane -- 3 templates
#(since rox will use default apps for most files, you can
#use these same templates for a variety of batch launching,
#(but by then you could just swap out executables or swap in scripts))

#you could use any pic on your system for the icon if you swap in
#the correct path for it--i just went with what was in  #/usr/share/applications/ROX-Filer-file-manager.desktop

echo $'
[Desktop Entry]
Encoding=UTF-8
Name=ROX-4
Icon=/usr/share/pixmaps/puppy/open.svg
Comment=rox multipane--change number and paths of dirs belows
Exec=rox /mnt /root/.config  /root/Choices /root/Desktop
Terminal=false
Type=Application
Categories=FileManager
GenericName=rox4
' > /usr/share/applications/ROX-4.desktop
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=ROX-3
Icon=/usr/share/pixmaps/puppy/open.svg
Comment=rox multipane--change number and paths of dirs belows
Exec=rox /mnt /root/my-documents /usr/share/applications
Terminal=false
Type=Application
Categories=FileManager
GenericName=rox3
' > /usr/share/applications/ROX-3.desktop
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=ROX-2
Icon=/usr/share/pixmaps/puppy/open.svg
Comment=rox multipane--change number and paths of dirs belows
Exec=rox /root/.jwm /etc/xdg/templates
Terminal=false
Type=Application
Categories=FileManager
GenericName=rox2
' > /usr/share/applications/ROX-2.desktop
#add an icon for the next .desktop
#(rox colored (turquoise) X on a transparent background)
#default action for open as text changed transparent to black
#so i had to manually swap in the "none"

echo $'
/* XPM */
static char *cr_xpm[] = {
"21 21 2 1",
"0   c none",
"1   c #00FFFF",
"000000000000000000000",
"000000000000000000000",
"001000000000000000100",
"000100000000000001000",
"000010000000000010000",
"000001000000000100000",
"000000100000001000000",
"000000010000010000000",
"000000001000100000000",
"000000000101000000000",
"000000000010000000000",
"000000000101000000000",
"000000001000100000000",
"000000010000010000000",
"000000100000001000000",
"000001000000000100000",
"000010000000000010000",
"000100000000000001000",
"001000000000000000100",
"000000000000000000000",
"000000000000000000000"
};
' > /usr/share/pixmaps/puppy/cr.xpm

#all those "multipanes" can start to bury you in windows, so
# here's an easy way to close them all
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=Rox-CloseAll
Icon=/usr/share/pixmaps/puppy/cr.xpm
Comment=close all rox
Exec=rox -D /
Terminal=false
Type=Application
Categories=FileManager
GenericName=Rox-CloseAll
' > /usr/share/applications/Rox-CloseAll.desktop
fixmenus
jwm -reload

#other choices for menu position/category include:
#Utility;WordProcessor;FileSystem;System;Amusement;X-Internet-browser;TextEditor;Player;Recorder;X-Document;RasterGraphics
#(pick a .desktop file from /usr/share/applications whose menu position is close to what you want for your item and copy its category listing for your own .desktop), then run fixmenus; jwm -reload


the icon is just a turquoise (rox-colored) X i made in mt-paint and saved as .xpm. right click it to open it as text so you can include it in your script (you could also just point to any existing icon on your system you'd like to use).

swap out directories and how many you want launched, alter the position, sprinkle the menu with close-all-rox commands. use the same template to launch multiple files in geany or multiple windows in leafpad (as examples).

from the comments, the only problem i found from making .xpm icons this way:

Quote:
[...]
#(rox colored (turquoise) X on a transparent background)
#default action for open as text changed transparent to black
#so i had to manually swap in the "none"


when i checked to see if it worked, i noticed that my transparency was turned to black so i had to change the #000000 (black) to none.

sandwich the icons and .desktops you'd like to make with

Code:
echo $'
(content--script spits out a sample create-file-with-content template)
' > (path to file)

(cnt in the nwp's pwn launcher if you have that installed) and modify and run the file (or parts of it) as needed. the above is set for one each of a two, three, and four window launch.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 14 of 14 [201 Posts]   Goto page: Previous 1, 2, 3, ..., 12, 13, 14
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1406s ][ Queries: 13 (0.0141s) ][ GZIP on ]