nwp32.4.pet
frompost 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...
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):
http://www.murga-linux.com/puppy/viewto ... 025#923025Puppus Dogfellow wrote:Code: Select all
#!/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 [...]
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.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?
maybe messing with that /root/.config/rox.sourceforge.net/ROX-Filer/globicons file is a better way?()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).
nwp64.4.pet
nwp32.4.pet
from
fixing a bug with the auxiliary launchers or keycuts
pruning or setting drive arrays:
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.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: Select all
#!/bin/sh geany /root/Choices/ROX-Filer/Pup* /nwp/edpin
to fix it, add a pound sign to or delete the last line, making ithad 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.Code: Select all
#!/bin/sh geany /root/Choices/ROX-Filer/Pup* #/nwp/edpin #--this was supposed to have been commented out
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: Select all
/nwp/gp /path/to/file /path(s)/to/file(s)
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.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.
(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.
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/viewto ... 360#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/viewto ... 287#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.
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). [...]