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 Mon 18 Dec 2017, 05:07
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
A NWP/A NWPUS--A Noob's Word Processor and Utilities Suite
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 6 [87 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Sat 13 Jun 2015, 05:45    Post subject:  

amigo wrote:
Where does word processing come into this?


you need to process words to use it? it's a play on anubis, and mythology is where text editing/word-processing meet with literature, culture, and thought?

i do see your point in that it's grown so far past its original intention (from http://www.murga-linux.com/puppy/viewtopic.php?p=784160#784160, which is a link in the first post) :

Puppus Dogfellow wrote:
an ethereally minimalistic word processor:

Quote:
[...]

some background from here:
Quote:



Puppus Dogfellow wrote:
http://www.murga-linux.com/puppy/viewtopic.php?t=79573


Quote:
nooby
PostPosted: Sat 31 May 2014, 12:11 Post subject: [Note] I want to be bold with a small text editor.
For many months now I have tried to find a small text editor
that can do something like this without me needing html code
by hand?
<b> Bold</b> to actual do the manual edit.Bold
I had hoped that Geany could if I just get an easy instruction
and maybe it can but I don't know how to do it.

I guess Abiword should be able to but fail to get how one does it there too.


found it, nooby. third and fourth posts of that thread.

NWP (the nooby word processor)

the above zipped folder is miriam's bold script plus several others made from it: italics, superscript, subscript, underline, strike through, small, large...i think that's it. they work best when dragged to a panel or the desktop. i included some icons i just made, but they're fairly lame.

tested in geany, xpad, and leafpad.

(Nooby's word processor is a wrapper around a text processor. it works well despite being thrown together by a noob. geany can export as html, and google drive, for example, can convert that into an actual word processing file. text processors are extremely reliable from what i've seen...and geany's got its own file tree view, tabs, and pull down menu...)

thanks for the inspiration, nooby (and the code, miriam). it's something i've wondered about myself, "why can't i just use the text editor for word processing..."

wonder if it's possible to get it to export to rtf or something like that...

the required xdotools.pet is included in the 47kb download.


[forgot that part of the forum isn't open access. that was one of nooby's last posts. maybe it can be of use to someone/someone can make it useful. think i'll eventually make a four panel frame for it and some icons that are less lame. when i figure out what's reasonable to ask of this project, i'll make a request at another part of this board for a pop up toolbar to be made from those eight scripts and/or ask for whatever additional functionality/toolbars the community can come up with. perhaps a button each for export to pdf, odt, rtf, etc.]


[...]


***


quoting myself may not have been the best way to go about this, but it was likely the easiest... Smile


Anyway, my request is for those able to make pop up toolbars or meaningful contributions to the point that this can be called a project. dragging the scripts as icons to the desktop or panels, or making them buttons on popups (outside my range of abilities) can turn, or lead towards turning, any text editor/note-taker into a word processor. that's the theory anyway. i'm asking for toolbars and features.

thanks in advance.


but the core menu is still based on that idea:

Quote:

menu "nwp"

cmd "poetry" "/nwp/htmltemplatepref"
cmd "other" "/nwp/htmltxtwptemplate"
cmd "#!/bin/sh" "/nwp/scripttemplate"
cmd "vgt" "/nwp/vgt"
cmd "NWP/VGT help" "geany /root/my-applications/bin/nwp.readme /root/my-applications/bin/vgt.readme"

menu "paste and place"
cmd "Bold" "/nwp/swnwpb"
cmd "Italics" "/nwp/swnwpi"
cmd "Underline" "/nwp/swnwpu"
cmd "Subscript" "/nwp/swnwpsub"
cmd "Superscript" "/nwp/swnwpsup"
cmd "Strikethrough" "/nwp/swnwpstrk"
cmd "Big" "/nwp/swnwpbig"
cmd "Small" "/nwp/swnwpsm"
cmd "linebreak" "/nwp/linebreak"
cmd "#!/bin/sh" "/nwp/scripttemplate"
cmd "comment" "/nwp/snwpcomment"

cmd "preserved breaks and spaces" "/nwp/preotry"

cmd "paragraph" "/nwp/paragraph"
cmd "parleft" "/nwp/parleft"
cmd "parright" "/nwp/parright"
cmd "parcenter" "/nwp/parcenter"
cmd "parjustify" "/nwp/parjustify"

cmd "nwpbkmrk" "/nwp/nwpbkmrk"
cmd "blockquote" "/nwp/nwpblockquote"
cmd "quote" "/nwp/quote"

cmd "heading1" "/nwp/snwph1"
cmd "heading2" "/nwp/snwph2"
cmd "heading3" "/nwp/snwph3"
cmd "heading4" "/nwp/snwph4"
cmd "heading5" "/nwp/snwph5"
cmd "heading6" "/nwp/snwph6"
end

cmd "get css codes" "defaultbrowser http://www.w3schools.com/html/html_css.asp"



menu "highlight text then click to apply"
cmd "preserved breaks and spaces" "/nwp/preformatted"
cmd "heading1" "/nwp/nwph1"
cmd "heading2" "/nwp/nwph2"
cmd "heading3" "/nwp/nwph3"
cmd "heading4" "/nwp/nwph4"
cmd "heading5" "/nwp/nwph5"
cmd "heading6" "/nwp/nwph6"


cmd "comment" "/nwp/nwpcomment"

cmd "Bold" "/nwp/nwpb"
cmd "Italics" "/nwp/nwpi"
cmd "Underline" "/nwp/nwpu"
cmd "Subscript" "/nwp/nwpsub"
cmd "Superscript" "/nwp/nwpsup"
cmd "Strikethrough" "/nwp/nwpstrk"
cmd "Big" "/nwp/nwpbig"
cmd "Small" "/nwp/nwpsm"
cmd "paragraph" "/nwp/paragraphhl"
cmd "nwpleft" "/nwp/nwpleft"
cmd "nwpright" "/nwp/nwpright"
cmd "nwpcenter" "/nwp/nwpcenter"
cmd "nwpjustify" "/nwp/nwpjust"

end

end


To keep with the puppy ethos of small, quick and fast, and to work on an idea Nooby had about using a text editor to do word processing, i came up with the above menu(s) based on a script by miriam (ht-b--highlight something, click to apply bold tags). changing the interface is something all good word processors allow--so do (some) of my menus. helper programs (like look up color codes or font names or search for files or definitions or open up something that can read this stuff as formatted text or open up something that's good for briefly recording words and ideas, etc) struck me as a good thing to include as part of the working core of the menu system, and so i did:


Code:

menu "supplemental 2" # beginning of menu
cmd "chromium" "chromium"
cmd "firefox" "firefox"

cmd "slocate search all" "slac"
cmd "slocate search limited" "sloc"
cmd "slocate update databases" "sluc"
cmd "gcolor2" "gcolor2"
cmd "gfnrename" "gfnrename"
cmd "gfontsel" "gfontsel"
cmd "goldendict" "goldendict"
cmd "google-chrome" "google-chrome"
cmd "palemoon" "palemoon"
cmd "pfind" "pfind"
cmd "recoll" "recoll"
cmd "xpad-backup" "xpad-backup"
cmd "xpad-clear" "xpad-clear"
cmd "xpad" "xpad"

cmd "close all desktop instances" "cadi" # program to launch
cmd "close current desktop instances" "ccdi" # program to launch
end # end of menu


and your files are in folders, part of some sort of filing system it would be a good idea to be able to access:

Code:

menu "rox"
cmd "rox /" "rox /"
cmd " ~ ROX-Filer ~" "rox ~"
cmd " Close All Rox" "cr"
cmd " rox Recents " "rr"
cmd " rox Bookmarks" "rb"
cmd "applications" "rox /usr/share/applications"
cmd "/etc" "rox /etc"
cmd "/mnt" "rox /mnt"
cmd "/mnt/home" "rox /mnt/home"
cmd "my-applications" "rox /root/my-applications/bin"
cmd "my-documents" "rox /root/my-documents"
cmd "rox /tmp" "rox /tmp"
cmd "rox /root/.Trash" "rox /root/.Trash"

menu "panels"
cmd "panel frame set1" "/nwp/p1"
cmd "panel frame set2" "/nwp/p2"
cmd "panel frame set3" "/nwp/p3"
cmd "panel frame set4" "/nwp/p4"
cmd "panel frame set5" "/nwp/p5"
cmd "panel frame set6" "/nwp/p6"
cmd "panel frame set7" "/nwp/p7"
cmd "panel frame set8" "/nwp/p8"
cmd "panel frame set9" "/nwp/p9"
end



menu "pinboards"
cmd "pinboard 1" "/nwp/pp1"
cmd "pinboard 2" "/nwp/pp2"
cmd "pinboard 3" "/nwp/pp3"
cmd "pinboard 4" "/nwp/pp4"
cmd "pinboard 5" "/nwp/pp5"
cmd "pinboard 6" "/nwp/pp6"
end

end


---i even make it easy to manipulate and change your work spaces, another thing that can prove helpful when it comes to arranging, cutting, and otherwise manipulating texts or pieces thereof.

there's also the following from the first post
Quote:

nwpRC1.readme:

Quote:
(orchestrate helper programs to) make any window that can accept text into a potential word processor/introducing NWP/NWPUS--a minimalistic word processor/robust and extensible utilities suite)



just place /nwp under / and launch with the nwpus script

(you can change the path, but you'll have to do a substitution in the nwpmenu file in /nwp and alter nwpus to reflect the change in the location of the menu file it's reading.)

requires aemenu, wmctrl, and xdotool (included)

unpack aemenu.tar.bz2 and place contents of that and the nwpus script into /root/my-applications/bin or similar PATH directory. install wmctrl and xdotool (included) if you have not already done so.


to be able to launch with gexec (original intention of most of the scripts and why so many have such short titles), highlight the contents (check mark on rox tool bar), and drag to /root/my-applications/bin, selecting link (relative or absolute) from the pop up. this will place the scripts in your PATH (i.e. terminals will also be able to call them) without taking up any of your savefile space. even if you're not running frugal, the speed of linking over copying makes this method preferable.



and lower down in the second post is the following, which i had as part of the first, but the forum software didn't allow it so...:

Quote:


recreates the stock desktop, adds a number of shortcuts, pastes html code so that formatted text can then be copied and pasted into a regular word processing program, a note-taker like notecase, or a cloud based word processor like google docs, which can be used to easily convert the text to odt, docx, rtf, etc. basically, it's a way to use geany, xpad, or leafpad for word processing since those programs are super quick and sip resources. personally, i like the tabs and other aspects of the geany interface. also, i predominately use it to aid my failing my memory (a number of scripts merely ask xdotool to type something out for you), to resize and position windows, and to call on some programs i've come to find essential. and just as i use spacefm to give peace of mind should i find myself trying to break rox, MochiMoppel's Winswitcher plus this alternate menu system seems like a capable backup should my main windows manager (jwm) die during a session for whatever reason.


but i realize that much of this may not be clear, adequate, processed, or processable.

amigo, to tell you the truth, when i get this more sorted, i'm thinking of putting it together as the gaexec paexec (aemenu plus gexec/pexec (utilities) pack), which would admit that it's more of a utilities suite than anything, but i'd still use the /nwp folder under / for its brevity, its nod to nooby and the origins of the project, and its acknowledgement of the ubiquity of word processing (done well or poorly, with good intentions or bad, the way it's more or less identical to thought processing except for the records left behind...) in our lives. i'm not dying at any accelerated rate, but this type of philosophical musing/idea processing seemed to be how nooby spent much of his waking time, at least the time he shared with us.

i had no real or great connection with him, but i think of this menu suite as the word processor i started to put together for him as he died or seemingly just as soon as notification came that he had passed. but i'm a little deranged in that i think of us all as organisms that are essentially apparatuses processing our environments and (aware of it or not) our internal representations of them. yes, there are myriad more aspects to what defines humanity, but amigo, my friend, we truly are a buncha word-processing creatures.


soooo, ya think i should request it be moved? desktop or utilities? i view you as an expert (alien2pet thread alone was enough to convince me), but i think witnessing me plod through this stuff can be of benefit to those who are even less experienced than i, especially if the stuff works. it's much faster to open and close these text processing windows than full blown word processors, and hopefully familiarity with text editors will help lead the uninitiated into a comfort zone containing scripts and terminals and the like. so, nooby word processing also in terms of a newbie getting a grasp and then hopefully some mastery of the content (how to linux, how to html (--the wp codes are more or less html cheat sheet codes--), how to use a text editor/geany, how to make formatted text, how to add items to this menu system...) needed to further customize and take control of his/her computing experience.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Sat 13 Jun 2015, 20:59    Post subject: a way to launch the programs in /nwp directly with pex/gexec
Subject description: without adding the folder to the PATH or symlinking hundreds of scripts
 

here's a way to launch the programs in /nwp directly with pexec or gexec without adding the folder to the PATH or symlinking hundreds of scripts:


Code:



#!/bin/sh

pexec| xdotool sleep .7s type '/nwp/'



adds the folder's path automatically to the pexec launcher when it pops up (you may be able to use less than a .7 second delay--if you use another launcher, you may have to adjust it regardless (i needed 1.2 for prun on my slowest machine but 1 was fine for pexec/gexec--didn't try lower*), allowing you to use, for example, rr to get to the rox recents or x1520 to position a window on the x axis. see a little further down in http://www.murga-linux.com/puppy/viewtopic.php?p=846711#846711 for more on terminal shortcuts/the briefly named scripts.


hopefully you'll find this method of calling programs and files fits in with the flow of your work and is easy to get used to. at any rate, it's a way to save on keyboard shortcuts while sacrificing very little speed compared to dedicated key assignments.

right click on the script dragged to the desktop to give it a rox keyboard short cut (edit > set keyboard shortcut). the syntax for it as a jwm keyboard shortcut is

(here making it windows key plus spacebar:)
Code:

<Key mask="4" key="space">exec:pexec| xdotool sleep .7s type '/nwp/'</Key>


add to /root/.jwm/jwmrc-personal.


*edit:
on my slowest computer (a dell netbook with 1gig ram, 1.6 ghz dual core something or other, 24 open browser tabs, mostly with flashblock, many already opened to how-tos, wikis, and videos of ants--at the time there was enough background noise to consume over 750mb of the 1000 total) i was able to reduce the delay to .3--no failures or misteps in roughly ten goes. .2 fails without exception (on the 1.6 dell but is okay on a machine somewhat over ~2.2).


____________
here's the dash-0.5.6.pet, which is required by pexec-001.pet.

here's gexec-0.4-pup1.pet

here are some separate wmctrl and xdotoo packages (32 bit already included in nwpus.tar.xz): wmctrl-1.07-6_i386.pet (check your package manager if you need the 64 bit wmctrl), xdotool-2.20110530.1-3.pet, and 64 bit xdotool-2.20110530.1-3.1.2.x86_64.rpm

Last edited by Puppus Dogfellow on Mon 15 Jun 2015, 01:03; edited 1 time in total
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Sun 14 Jun 2015, 17:36    Post subject: nwpsup1.tar.xz: a few reworked menus, a few updated scripts,
Subject description: some shorter shortcuts, and an attempt to make the thing as self contained as possible
 

nwpsup1.tar.xz

contents (overwrite conflicts in /nwp):

1 g lwr5p300a lwr5p900 mn nwp rs topmid3a upl3x555 upl4x444a upl5x1000a upperrightmargin4a upr4x1444a w wp3 2 h lwr5p600 lwr5p900a mv o s upl3x400 upl3x555a upl4x888 upl5x345a upr3ma upr5p450a wn x botmid3a lwr5p300 lwr5p600a maxminmovwinreq.readme mx owm sup upl3x400a upl4x444 upl4x888a upl5x790a upr3tomargina upr5p950a wp1 y


maxminmovwinreq.readme:
Quote:

the pexec/gexec/aemenu shortcuts for resize (res), maximize(max), minimize (min), windows menu (win), and move (mov) require the following keyboard shortcuts to be added to /root/.jwm/jwmrc-personal

you can open it in a terminal with:
geany /root/.jwm/jwmrc-personal

then search for "key" and paste the following in that section:

Code:


<Key mask="A" key="Escape">fullscreen</Key>
<Key mask="C" key="Escape">showdesktop</Key>
<Key mask="S" key="Escape">window</Key>
<Key mask="AC" key="Escape">move</Key>
<Key mask="AS" key="Escape">minimize</Key>
<Key mask="CS" key="Escape">maximize</Key>   
<Key mask="SAC" key="Escape">resize</Key>



(see below for the shorter shortcuts)
################################

add the contents of the folder containing this readme to /nwp

s will activate a version of the supplemental menu and o will launch the original windows menu (an old jwm project) when the pxc script below is run:


Code:


#!/bin/sh
#name pxc
pexec| xdotool sleep .3s type '/nwp/'


#(trying to keep the thing self contained and distro/spin independent, but that shortcut really works best when activated with the keyboard, something jwm does especially easily it seems to me.)



__________
new shortcuts with the above pexec script searching through /nwp/:

1 single monitor menu
2 double monitor menu
g grid menu
x x axis menu
y y axis menu
w width menu
h height menu
mv move
wn windows menu
mx maximize window
o old windows manipulation menu
s new version of supplemental menus


(all items are set to work on active window)

********

here is the owm menu (launch with the pxc script/shortcut key and o):

Code:

cmd "Top Half" "/nwp/tophalf"
cmd "Half Width and Height, Middle Top" "/nwp/topmid3a"
cmd "Left Half" "/nwp/lefthalf2"
cmd "Right Half" "/nwp/righthalf2"
cmd "Bottom Half" "/nwp/bottomhalf2"
cmd "Half Width and Height, Middle Bottom" "/nwp/botmid3a"

cmd "Upper Left Quadrant" "/nwp/upperleftquadrant2"
cmd "Upper Right Quadrant" "/nwp/upperrightquadrant2"
cmd "Lower Left Quadrant" "/nwp/lowerleftquadrant2"
cmd "Lower Right Quadrant" "/nwp/lowerrightquadrant2"

menu "/3"
cmd "Upper Left Margin" "/nwp/upl3a"
cmd "Upper Left, 400 pixels to the Right" "/nwp/upl3x400a"
cmd "Upper Left, 555 pixels to the Right" "/nwp/upl3x555a"
cmd "Upper Right, Start at Midpoint" "/nwp/upr3a"
cmd "Upper Upper Right Margin" "/nwp/upr3ma"

cmd "Lower Left Margin" "/nwp/lwl3a"
cmd "Lower Left, 500 pixels to the Right" "/nwp/lwl3x500a"
cmd "Lower Right, Start at Midpoint" "/nwp/lwr3a"
cmd "Lower Right Margin" "/nwp/lwr3ma"
end

menu "Left Side Placement"
cmd "lower left /2" "/nwp/lwl2a"
cmd "lower left /3" "/nwp/lwl3a"
cmd "lower left /4" "/nwp/lwl4a"
cmd "lower left /5" "/nwp/lwl5a"
cmd "upper left /2" "/nwp/upl2a"
cmd "upper left /3" "/nwp/upl3a"
cmd "upper left /4" "/nwp/upl4a"
cmd "upper left /5" "/nwp/upl5a"
end

menu "Right Side Placement"
cmd "lower right /2" "/nwp/lwr2a"
cmd "lower right /3" "/nwp/lwr3a"
cmd "lower right /4" "/nwp/lwr4a"
cmd "lower right /5" "/nwp/lwr5a"
cmd "upper right /2" "/nwp/upr2a"
cmd "upper right /3" "/nwp/upr3a"
cmd "upper right /4" "/nwp/upr4a"
cmd "upper right /5" "/nwp/upr5a"
end

menu "/4"
cmd "Upper Left Margin" "/nwp/upl4a"
cmd "Upper Left, 444 pixels to the Right" "/nwp/upl4x444a"
cmd "Upper Left, 888 pixels to the Right" "/nwp/upl4x888a"
cmd "Upper Right, Start at Midpoint" "/nwp/upr4x1444a"
cmd "Upper Right Margin" "/nwp/upperrightmargin4a"

cmd "Lower Left Margin" "/nwp/lwl4 a"
cmd "Lower Left, 400 pixels to the Right" "/nwp/lwl4x400a"
cmd "Lower left, 900 pixels to the Right" "/nwp/lwl4x900"a
cmd "Lower Right, Start at Midpoint" "/nwp/lwr4a"
cmd "Lower Right, midpt. plus 400" "/nwp/lwr4p400a"
cmd "Lower Right Margin" "/nwp/lwr4rghtmrgna"
end

menu "/5"
cmd "Upper Left Margin" "/nwp/upl5"
cmd "Upper Left, 345 pixels to the Right" "/nwp/upl5x345a"
cmd "Upper Left, 790 pixels to the Right" "/nwp/upl5x790a"
cmd "Upper Left, 1000 pixels to the Right" "/nwp/upl5x1000a"
cmd "Upper Right, Start at Midpoint" "/nwp/upr5a"
cmd "Upper Right, midpt. plus 450" "/nwp/upr5p450a"
cmd "Upper Right, midpt. plus 950" "/nwp/upr5p950a"

cmd "Lower Left Margin" "/nwp/lwl5"
cmd "Lower Left, 333 pixels to the Right" "/nwp/lwl5x333a"
cmd "Lower Left, 666 pixels to the Right" "/nwp/lwl5x666a"
cmd "Lower Left, 999 pixels to the Right" "/nwp/lwl5x999a"
cmd "Lower Right, Start at Midpoint" "/nwp/lwr5a"
cmd "Lower Right, midpt. plus 300" "/nwp/lwr5p300a"
cmd "Lower Right, midpt. plus 600" "/nwp/lwr5p600a"
cmd "Lower Right, midpt. plus 900" "/nwp/lwr5p900a"
end





here is the sup menu (launched with (the pxc script plus) s):

Code:

 cmd " vgt" "vgt"
 cmd "xpad" "xpad"
 cmd "winswitcher" "winswitcher"
 

cmd "close all desktop instances" "cadi" # program to launch
cmd "close current desktop instances" "ccdi" # program to launch
cmd "partview" "partview" # program to launch
cmd "lxtask" "lxtask" # program to launch
cmd "htop" "htop" # program to launch

cmd "jwm -restart" "jwm -restart"
cmd "5copies" "5copies"
cmd "5copiesDir" "5copiesDir"
cmd "nwp" "wp"
cmd "left full" "b5"
cmd "right full" "b10"
cmd "slocate search all" "slac"
cmd "slocate search limited" "sloc"
cmd "slocate update databases" "sluc"


menu "supplemental 2" # beginning of menu
cmd "chromium" "chromium"
cmd "firefox" "firefox"
cmd "galculator" "galculator"
cmd "gcolor2" "gcolor2"
cmd "gfnrename" "gfnrename"
cmd "gfontsel" "gfontsel"
cmd "goldendict" "goldendict"
cmd "google-chrome" "google-chrome"
cmd "palemoon" "palemoon"
cmd "pfind" "pfind"
cmd "recoll" "recoll"
cmd "xpad-backup" "xpad-backup"
cmd "xpad-clear" "xpad-clear"

cmd "spacefm" "spacefm"
 menu "rox"
 cmd "rox /" "rox /"
  cmd " ~ ROX-Filer ~" "rox ~"
 cmd " Close All Rox" "cr"
  cmd "  rox Recents  " "rr"
  cmd " rox Bookmarks" "rb"
  cmd "applications" "rox /usr/share/applications" 
  cmd "/etc" "rox /etc"
 cmd "/mnt" "rox /mnt"
 cmd "/mnt/home" "rox /mnt/home"
cmd "my-applications" "rox /root/my-applications/bin"
cmd "my-documents" "rox /root/my-documents"
cmd "rox /tmp" "rox /tmp"
cmd "rox /root/.Trash" "rox /root/.Trash"

 menu "panels"
cmd "panel frame set1" "/nwp/p1"
cmd "panel frame set2" "/nwp/p2"
cmd "panel frame set3" "/nwp/p3"
cmd "panel frame set4" "/nwp/p4"
cmd "panel frame set5" "/nwp/p5"
cmd "panel frame set6" "/nwp/p6"
cmd "panel frame set7" "/nwp/p7"
cmd "panel frame set8" "/nwp/p8"
cmd "panel frame set9" "/nwp/p9"
end



menu "pinboards"
cmd "pinboard 1" "/nwp/pp1"
cmd "pinboard 2" "/nwp/pp2"
cmd "pinboard 3" "/nwp/pp3"
cmd "pinboard 4" "/nwp/pp4"
cmd "pinboard 5" "/nwp/pp5"
cmd "pinboard 6" "/nwp/pp6"
end

end   
  menu "jwm menu maker" # beginning of menu
cmd "jwmxx-leafpad-grab executables" "cd  /usr/share/applications; grep Exec= *.desktop | grep -o 'Exec=.*' | cut -f2- -d'=' > /root/my-documents/Text/jwmxx; leafpad /root/my-documents/Text/jwmxx
cmd "jwmxx-geany-grab executables" "cd  /usr/share/applications; grep Exec= *.desktop | grep -o 'Exec=.*' | cut -f2- -d'=' > /root/my-documents/Text/jwmxx; geany /root/my-documents/Text/jwmxx
 cmd "make a menu entry" "jwmkr"
cmd "add the menu template" "jwmenuplate"

cmd "ae menu item maker" "aeae"
cmd "ae menu slot maker" "aeaem"

end


end # end of menu 
 
menu "defaults/original puppy desktop"
menu "launchers and consoles" # beginning of menu
cmd "findnrun" "fnr"
cmd "gexec" "gexec"
cmd "grun" "grun"
cmd "lxterminal" "lxterminal"
 cmd "pexec" "pexec"
cmd "prun" "prun"
cmd "roxterm" "roxterm"
cmd "rxvt" "rxvt"
cmd "sakura" "sakura" # program to launch
cmd "urxvt" "urxvt"
end # end of menu   

cmd " audiomixer" defaultaudiomixer
cmd " audioplayer" defaultaudioplayer
cmd " browser" defaultbrowser
cmd " calendar" defaultcalendar
cmd " cdplayer" defaultcdplayer
cmd " chat" defaultchat
cmd " chmviewer" defaultchmviewer
cmd " ~ 'Chooser' ~" /usr/bin/defaults-chooser
cmd " connect" defaultconnect
cmd "console" "urxvt"
cmd " contact" defaultcontact
cmd " draw" defaultdraw
cmd " email" defaultemail
cmd " htmleditor" defaulthtmleditor
cmd " htmlviewer" defaulthtmlviewer
cmd " imageviewer" defaultimageviewer
cmd " mediaplayer" defaultmediaplayer
cmd " notecase" notecase
cmd " paint" defaultpaint
cmd "puppy package manager" "ppm"
cmd "puppy control panel" "pcp"
cmd " spreadsheet" defaultspreadsheet
cmd "screen shot" "tas"
cmd " texteditor" defaulttexteditor
cmd " textviewer" defaulttextviewer
cmd " videoplayer" defaultvideoplayer
cmd " wizardwizard" wizardwizard
cmd " wordprocessor" defaultwordprocessor
cmd "Xlock setup" "/usr/local/apps/Xlock/AppRun -configure"
cmd  "Xlock lock screen" "/usr/local/apps/Xlock/AppRun -locknow"


end



the /3 /4 /5 refer to the screen dimensions and the thirds, quarters, or fifths of that the command reduces the window to as it positions it.

forgot to include the shorter versions of the main nwpus launcher and the launcher for the two main versions of the nwp word processing section; my suggested titles are n, n1, and n2 respectively--you can copy the versions from /root/my-applications bin over to /nwp with that as the new name or just enter

Code:
geany /nwp/n  /nwp/n1  /nwp/n2


into a terminal and copy each of the following to the correct file. you'll probably have to run
Code:
chmod 755 /nwp/n  /nwp/n1  /nwp/n2
afterward since it's unlikely the permissions will be set correctly (text is green in stock puppy if all is well). you could also go there with rox, right click > permissions > yes or quiet.

anyway, here's the filling for the three files:
Code:

 #!/bin/sh
 #n2
aemenu -rc /nwp/wp2

-----------------

#!/bin/sh
 #n1
aemenu -rc /nwp/wp1

-----------------
#!/bin/sh
 #n
aemenu -rc /nwp/nwpmenu
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Mon 15 Jun 2015, 00:59    Post subject:  last of the word processor menus until i learn css code...
Subject description: paste and place submenu: prominent on n and sole occupant of n3
 

it's often quicker to have the machine spit out the tags and leave the placement to you rather than have it auto delete then recreate the the text with the tags in place. the following menu just pastes the beginning and end tags for various formatting functions--it's up to you to paste them and/or follow the instructions that get printed along with them ("instructions" usually something no more than "delete this and put your text here to preserve breaks and spaces. all this other stuff is not visible when the document is viewed in a browser," and frequently something a good deal less.)

n3:

Code:
#!/bin/sh
aemenu -rc /nwp/pst
#name n3. n is the original nwpus menu, n1 is the full word-processing menu without any of the supplementals. it has n2 and n3 as submenus but gives some prominence to the overall document formatting commands from from n3; n2 is just the highlight and click to apply word processing/html code section, and n3 is the paste and place section of the main (word processing) menu. place this and the following pst menu in /nwp


pst:


Code:

cmd   "poetry" "/nwp/htmltemplatepref"
cmd   "other" "/nwp/htmltxtwptemplate"
cmd   "preserved breaks and spaces" "/nwp/preotry"

cmd   "Bold" "/nwp/swnwpb"
cmd   "Italics" "/nwp/swnwpi"
cmd   "Underline" "/nwp/swnwpu"

cmd   "vgt" "/nwp/vgt"
cmd   "NWP/VGT help" "geany /nwp/nwp.readme /nwp/vgt.readme"

cmd   "Subscript" "/nwp/swnwpsub"
cmd   "Superscript" "/nwp/swnwpsup"
cmd   "Strikethrough" "/nwp/swnwpstrk"
cmd   "Big" "/nwp/swnwpbig"
cmd   "Small" "/nwp/swnwpsm"
cmd   "linebreak" "/nwp/linebreak"
cmd   "#!/bin/sh" "/nwp/scripttemplate"
cmd   "comment" "/nwp/snwpcomment"
cmd   "get css codes" "defaultbrowser http://www.w3schools.com/html/html_css.asp"

cmd   "paragraph" "/nwp/paragraph"
cmd   "parleft" "/nwp/parleft"
cmd   "parright" "/nwp/parright"
cmd   "parcenter" "/nwp/parcenter"
cmd   "parjustify" "/nwp/parjustify"

cmd   "nwpbkmrk" "/nwp/nwpbkmrk"
cmd   "blockquote" "/nwp/nwpblockquote"
cmd   "quote" "/nwp/quote"
    
cmd   "heading1" "/nwp/snwph1"
cmd   "heading2" "/nwp/snwph2"
cmd   "heading3" "/nwp/snwph3"
cmd   "heading4" "/nwp/snwph4"
cmd   "heading5" "/nwp/snwph5"
cmd   "heading6" "/nwp/snwph6"



so, just put both of those in /nwp and launch with the pxc launcher...

*******

following has come in handy:

Code:
#!/bin/sh
xdotool type 'aemenu -rc /nwp/'
#name ael (ae(menu)launcher) and place in /nwp to launch with pxc


___________

all upgrades updates (minus the menu launchers originally for /root/my-applications/bin) plus:
aemenu.tar.bz2, wmctrl-1.07-6_i386.pet, dash-0.5.6.pet, xdotool-2.20110530.1-3.1.2.x86_64.rpm, gexec-0.4-pup1.pet, xdotool-2.20110530.1-3.pet, pexec-001.pet, the updated nwp folder, the pxc launcher, and the ael launcher-maker: Gaexec_Paexack.tar.xz

----

edit two: some minor bug fixes (one of sets of vgt help/nwp help only opened blank files) and the addition of about 40 largely jwm specific configuration files and menus:

Gaexec_Paexack-jwm.tar.xz
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Wed 17 Jun 2015, 12:38    Post subject: alternate version of the pexec/pxc launcher.
Subject description: no timing issues but no history file either
 

Puppus Dogfellow wrote:
more legible font for the comments:

modified version of pexec launcher to use with the gaexec paexack and the nwp/nwpus directory/word processing/"word processing" functions. use if the original pxc is giving you time delay grief; this version doesn't have xdotool type anything, so timing and system idiosyncrasies don't come into play. arrow right to access the scripts in /nwp, type to enter a regular run command ("/nwp/" is already entered, but it's highlighted. typing overwrites it, the arrow key brings you to the end so you can enter the short script name). i suggest adding the two scripts that follow this one to your chosen PATH location or /nwp. since there doesn't appear to be any system conflict with a program named f or t, this would be the simplest way to quickly make up for the autoclosing pexec's lack of tab complete--findandrun does a nice job of that and you can choose whatever shortcut you want to be able to quickly reach a terminal from pxc or np, which is what i'm calling this script at the moment.


Code:
#!/bin/dash

#modified version of pexec launcher to use with the gaexec paexack and the nwp/nwpus directory/word processing/"word processing" functions. use especially if the original pxc is giving you time delay grief; this version doesn't have xdotool type anything. arrow right to access the scripts in /nwp, type to enter a regular run command. i suggest adding the two scripts that follow this one to your chosen PATH location or /nwp. since there doesn't appear to be any system conflict with a program named f or t, this would be the simplest way to quickly make up for the autoclosing pexec's lack of tab complete--findandrun does a nice job of that and you can chose whatever shortcut you want to be able to quickly reach a terminal from pxc or nwpp (which is what i'm calling the script at the moment, though i suppose pwn and np are both arguably more inspirational).


# edit line below to preload other commands, i.e. history=/nwp/s1/ will start the search in a subdirectory of nwp...
[ -z "$history" ] && history="/nwp/"

# create and run dialog
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
              --title="nwpp" --window-icon="gtk-execute" \
              --entry --entry-label="Run command:" --editable \
              --column="command" --entry-text $history)

# if the command line is empty, exit now
[ -z "$CMDLINE" ] && exit 0

 

# run the command
$CMDLINE &

exit 0


Code:

#!/bin/sh
#name t and place in root/my-applications/bin  and/or /nwp
#lxterminal
#roxterminal
#urxvt
#sakura
#evilvte
#vte
#uncomment the terminal of your choice
rxvt




Code:
#!/bin/sh
#name f and place in root/my-applications/bin  and/or /nwp
findnrun
#grun
#pexec
#pxc
#prun
#gexec
#uncomment the launcher of your choice


here's the original pexec thread


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


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Wed 17 Jun 2015, 18:19    Post subject: the missing five step increments
Subject description: squares to 1205, x and y axes to 3005 and 2005 respectively
 

x5y53000.tar.xz

x5y53000s.tar.xz


batch with the s contains the select-to-click versions. copy files to /nwp. either version of np/pxc launcher will be able to force windows into squares from 100 to 1205 pixels by entering the desired dimension. add an s if you want the cursor to change into a cross hair/work on the next item to be clicked. default for both these and the x and y axes is the active window.

x# from 0-3005 --send window to that point on x axis.
y# from 0-2005 --send window to that point on y axis.

tip: it's quicker to resize height and width for windows oriented portrait and landscape by doing bare number then second dimension than by doing it width/height then height/width (you save a key press Shocked )

as usual, enjoy.
Laughing


(i don't know, i'm kind of getting a kick out of moving around and resizing the windows this way...losing this ability would really annoy me... Wink




)



from the readme:

Quote:



the missing 5 increment steps for 100--1205 (px) squares, a 0-2005 y axis, a 0-3000 x axis (ten steps fleshing out from 2000-3000 also added, which will overwrite five or six files in /nwp), an alternate, non xdotool-dependent launcher, and launcher shortcuts for goldendict (gd), findnrun (f), the new launcher (np, pwn, nwpp--all the same; use as a template to search in specific folders for executables), and notecase (nc).

s version of this folder contains the click-to-select versions of the scripts

copy or symlink files to nwp. 19kb compressed, 130kb uncompressed. (30 with gz compression, if anyone's interested. 925 files (x2) not including the readme).
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Fri 19 Jun 2015, 17:59    Post subject: a few updates
Subject description: and PAX, an improved (quicker) nwp launcher based on pexec
 

vgt2

the above link contains the updated /nwp folder, aemenus, and a good deal more. it's a 1.5 megabyte download and has all the geany plugins for 1.24.1 and some jwm tweaks that also make it easy to access the nwpus functions (which you don't need to use. there's a setup script in the folder, but mostly all you need is the /nwp folder and the launcher if you've already added the dependencies (in a subfolder of the compressed download).

the launcher relies on two separate scripts (five attempts at combining them to one all failed. any suggestions?):

Code:

#!/bin/sh
# name pax, pwn, px3 or whatever you like and place in both root/applications/bin and /nwp
np| xdotool sleep .3s key Right
#use this to launch the commands and menus in /nwp
#requires the following script, named np and also placed in both root/applications/bin and /nwp (you should also copy f and t over to both. this will allow you to access the terminal and findandrun regardless of whether or not the time delay worked as it should. this version of the script is slightly quicker than the other versions that take you directly to the end of the /nwp/ command. sometimes the first run of the script is a little delayed compared to those that follow, so you may want to name a copy of pax "p" for root/applications/bin so you can quickly rerun it and get rid of whatever delay may exist. i'm leaving the delay at .3, but my 2.4 GHz is okay with .1, and my 1.6 GHz with .2...


script 2:
Code:

#!/bin/dash
# name np an place in both root/applications/bin and /nwp
[ -z "$history" ] && history="/nwp/"

# create and run dialog
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
              --title="np" --window-icon="gtk-execute" \
              --entry --entry-label="Run command:" --editable \
              --column="command" --entry-text $history)
             

# if the command line is empty, exit now
[ -z "$CMDLINE" ] && exit 0

 

# run the command
$CMDLINE &

exit 0




from the comments:


#use this to launch the commands and menus in /nwp

#requires the following script, named np and also placed in both root/applications/bin and /nwp (you should also copy f and t over to both. this will allow you to access the terminal and findandrun regardless of whether or not the time delay worked as it should. this version of the script is slightly quicker than the other versions that take you directly to the end of the /nwp/ command. sometimes the first run of the script is a little delayed compared to those that follow, so you may want to name a copy of pax "p" for root/applications/bin so you can quickly rerun it and get rid of whatever delay may exist. i'm leaving the delay at .3, but my 2.4 GHz is okay with .1, and my 1.6 GHz with .2..


here's geany-1.24.1-1-i686.pet if you want or need to upgrade your geany. thanks to slavvo and tested in precise 5.5, 571, and ~572. compiled in slacko, i believe 5.7...
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Sat 20 Jun 2015, 23:55    Post subject: here are some scripts retitled for use with the pax launcher
Subject description: copy each to /nwp/ and set permissions
 

beginning of a series of renamed formatting commands for the pax launcher. change to suit your tastes, but my suggested titles are in the second lines of the scripts.

pack of highlight then click to apply:

Code:
#! /bin/sh
#bh
# miriam  2012-09-06
# adds bold tags around a selection of text in any text editor
xclip -o | sed 's/^/<b>/' | sed 's/$/<\/b>/' | xclip -selection clipboard
xdotool type "`xclip -out -selection clipboard`"


Code:
#! /bin/sh
# based on ht_b by miriam  2012-09-06
#uh   underline
# adds underline tags around a selection of text in any text editor
xclip -o | sed 's/^/<u>/' | sed 's/$/<\/u>/' | xclip -selection clipboard
xdotool type "`xclip -out -selection clipboard`"

Code:
#! /bin/sh
# based on ht_b by miriam  2012-09-06
# sth strikethrough
# adds strikethrough tags around a selection of text in any text editor
xclip -o | sed 's/^/<s>/' | sed 's/$/<\/s>/' | xclip -selection clipboard
xdotool type "`xclip -out -selection clipboard`"


Code:
#! /bin/sh
# based on ht_b by miriam  2012-09-06
# ih italics
# adds italics tags around a selection of text in any text editor
xclip -o | sed 's/^/<i>/' | sed 's/$/<\/i>/' | xclip -selection clipboard
xdotool type "`xclip -out -selection clipboard`"



pack of paste and place:

Code:
#! /bin/sh
#bb  print out bold tags
xdotool type '<b></b>'

Code:
#! /bin/sh
#ii   print out italics tags
xdotool type '<i></i>'


Code:
#! /bin/sh
#ul  print out underline tags
xdotool type '<u></u>'

Code:

#! /bin/sh
#st  print out strikethrough tags
xdotool type '<s></s>'


Code:

#! /bin/sh
#cmt
xdotool type '<!-- -->'



for installed programs:

Code:

#! /bin/sh
#rn
gfnrename


Code:

#! /bin/sh
#sk
sakura #lx and lxt for lxtask and lxterminal...



paste in /nwp/ for the nwp launchers or /root/my-applications/bin to use any terminal.

here are some of the commands already included in the vgt pack:


s# send active window to desktop#
s#s send next clicked window to desktop#
d# go to desktop#
c plus a single letter is normally a close command--cr, close rox; cu, close urxvt terminals; ct, close rxvt Terminal.
pp# --change pinboard
p# --change/toggle four panel set frame (can be altered down to one)
my# --swap out custom jwm configurations
gea3 --edit custom jwm configurations
la, lb, lm ---layer above, below, middle/normal for active window
las,lbs, lms ---layer above, below, middle/normal for selected window
stk, ustk --stick unstick active (add an s for the click to select version)
pv2--partview and rox /mnt
rr --rox recently visited
rb1 --four (iirc) rungs down on the rox bookmarks menu
rup --three rungs up from the bottom of the rox bookmarks menu
wp-- access the nwp area of one of the root menus
w5 --access the quadrants, halves, and wholes area of one of the root (jwm) menus
pcp --access pup control
fnr --find and run
hlx -- htop in an urvxt window and lx task ...
ppm is a built in for package manager (will work without pxc launcher or anything having been symlinked to /root/my-applications/bin)
x#-- move to # on x-axis (increments of 5)
y# --move to # on y-axis (increments of 5)
h# --height (increments of 5)
w# --width (increments of 5)
rs --resize
t --terminal (set for my-applications/bin, so launchable from terminal or np/nwp/pxc launcher)
f --findandrun (also set for my-apps/bin)
np --nwpus launcher2
sd --speeddials
sdr --speed dials recent list only
gnysys --open a slew of config files in geany
3but -- speed dials and a version of winswitcher
ws -- winswitcher (also ctrl plus spacebar).
galc -- galculator
nc-- notecase
gd -- goldendict
5c -- print out the template command for making multiple copies of a file
5cd -- print out the template command for making multiple copies of a directory
7c -- print out the command for changing permissions of a script to executable (kind of lazy--chmod 755 isn't that involved...).
1 -- single monitor menu
2 -- double monitor menu
g -- grid menu
x -- x axis menu
y -- y axis menu
w -- width menu
h -- height menu
mv -- move
wn -- windows menu
mn -- minimize
mx -- maximize window
o -- old windows manipulation menu
s -- new version of supplemental menus
n -- the original nwpus menu
n1 -- the full word-processing menu without any of the supplementals. it has n2 and n3 as submenus but gives some prominence to the overall document formatting commands from n3
n2 -- just the highlight and click to apply word processing/html code section
n3 -- the paste and place section of the main (word processing) menu.
slac -- search all databases
sloc -- search selected database with option to print results
sluc --update all slocate databases/create databases (thanks to musher0 for the slocate wrapper and the three scripts i've renamed here)

Last edited by Puppus Dogfellow on Thu 25 Jun 2015, 01:54; edited 2 times in total
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Sun 21 Jun 2015, 14:15    Post subject: nwp file manager menus (aemenu popups) for spacefm, thunar,
Subject description: pcman, and a stand alone for rox file menu. place menus and launchers in /nwp
 

support for file managers other than rox:

Quote:


and your files are in folders, part of some sort of filing system it would be a good idea to be able to access:

Code:

menu "rox"
cmd "rox /" "rox /"
cmd " ~ ROX-Filer ~" "rox ~"
cmd " Close All Rox" "cr"
cmd " rox Recents " "rr"
cmd " rox Bookmarks" "rb"
cmd "applications" "rox /usr/share/applications"
cmd "/etc" "rox /etc"
cmd "/mnt" "rox /mnt"
cmd "/mnt/home" "rox /mnt/home"
cmd "my-applications" "rox /root/my-applications/bin"
cmd "my-documents" "rox /root/my-documents"
cmd "rox /tmp" "rox /tmp"
cmd "rox /root/.Trash" "rox /root/.Trash"

[...]





nwp file manager menus (aemenu popups) for spacefm, thunar, pcman, and a stand alone for rox file menu. add locations by copying the lines and changing the titles (first set of quotation marks) and paths (second set--the one that includes the name of your choice of file manager). place these menus and the launchers in /nwp. set permissions with

Code:
chmod 755 /nwp/rae /nwp/tae /nwp/pae /nwp/spae /nwp/dae


and launch with pax and (these are only my suggested commands/file names. alter the launcher names to whatever you feel is better, quicker, easier to remember, etc.):

pae
rae
dae
tae
sae


menus (place in /nwp):


Code:
Code:


menu "spacefm"
cmd "spacefm /" "spacefm /"
cmd " ~ spacefm-Filer ~" "spacefm ~"


cmd "applications" "spacefm /usr/share/applications"
cmd "/etc" "spacefm /etc"
cmd "/mnt" "spacefm /mnt"
cmd "/mnt/home" "spacefm /mnt/home"
cmd "my-applications" "spacefm /root/my-applications/bin"
cmd "my-documents" "spacefm /root/my-documents"
cmd "spacefm /tmp" "spacefm /tmp"
cmd "spacefm /root/.Trash" "spacefm /root/.Trash"
end
# name this menus spacefmae and place in nwp. launch with pax and "spae" or any launcher/terminal with /nwp/spae


Code:

Code:
menu "rox"
cmd "rox /" "rox /"
cmd " ~ ROX-Filer ~" "rox ~"
cmd " Close All Rox" "cr"
cmd " rox Recents " "rr"
cmd " rox Bookmarks" "rb"
cmd "applications" "rox /usr/share/applications"
cmd "/etc" "rox /etc"
cmd "/mnt" "rox /mnt"
cmd "/mnt/home" "rox /mnt/home"
cmd "my-applications" "rox /root/my-applications/bin"
cmd "my-documents" "rox /root/my-documents"
cmd "rox /tmp" "rox /tmp"
cmd "rox /root/.Trash" "rox /root/.Trash"
end
# name this menu roxae and place in nwp. launch with pax and "rae" or any launcher/terminal with /nwp/rae



Code:
Code:
menu "pcman"
cmd "pcman /" "pcman /"
cmd " ~ pcman-Filer ~" "pcman ~"


cmd "applications" "pcman /usr/share/applications"
cmd "/etc" "pcman /etc"
cmd "/mnt" "pcman /mnt"
cmd "/mnt/home" "pcman /mnt/home"
cmd "my-applications" "pcman /root/my-applications/bin"
cmd "my-documents" "pcman /root/my-documents"
cmd "pcman /tmp" "pcman /tmp"
cmd "pcman /root/.Trash" "pcman /root/.Trash"
end
# name this menu pcmanae and place in nwp. launch with pax and "pae" or any launcher/terminal with /nwp/pae



Code:
Code:



menu "thunar"
cmd "thunar /" "thunar /"
cmd " ~ thunar-Filer ~" "thunar ~"


cmd "applications" "thunar /usr/share/applications"
cmd "/etc" "thunar /etc"
cmd "/mnt" "thunar /mnt"
cmd "/mnt/home" "thunar /mnt/home"
cmd "my-applications" "thunar /root/my-applications/bin"
cmd "my-documents" "thunar /root/my-documents"
cmd "thunar /tmp" "thunar /tmp"
cmd "thunar /root/.Trash" "thunar /root/.Trash"
end
# name this menu thunarae and place in nwp. launch with pax and "tae" or any launcher/terminal with /nwp/tae


launchers (also to be placed in /nwp):

Code:
#!/bin/sh
aemenu -rc /nwp/roxae  #name rae


Code:
#!/bin/sh
aemenu -rc /nwp/spacefmae  #name sae


Code:
#!/bin/sh
aemenu -rc /nwp/pcmanae  #name pae


Code:
#!/bin/sh
aemenu -rc /nwp/thunarae  #name tae


Code:
#!/bin/sh
aemenu -rc /nwp/doublecommander  #name dae--not included (don't know if "doublecommander" is the exec command for it--seems sort of long), but it would follow the same pattern
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Thu 25 Jun 2015, 02:28    Post subject: for 64 bit puppies
Subject description: tested in Quirky April 7.0.4.1
 

64bit aemenu (tested in quirky april 7041)
[thanks to musher0 for the file]


unpack, set the permissions, and place in a bin (overwrite or delete the other if you've tried the 32 bit package in a 64 bit distro).

the 64bit wmctrl appears to work fine for the resizing, sending, and desktop hopping commands, but it doesn't work as well with MochiMoppel's WinSwitcher as the 32 bit version does.

another 64 bit xdotool package has become available. (tested in Quirky April64. the one in the compressed folder was tested in Slacko64).
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Tue 11 Aug 2015, 05:02    Post subject: the bold tags don't quite work
Subject description: but what does led me to a rather convenient discovery
 

Quote:
nwp-improvement_pack


included nwp commands:

bb2 -- span tags for bold fonts or other, non default font choices (bold tags don't appear to work though the nwp's underlining and italics tags show the expected results. default is for monospace, same as po1, po2, po4 (the latter two are templates, po1 is an xdotool "spit this code" script.
gpo -- open the browser, leafpad, and geany configuration files for the nwp word processor plus the default default templates in geany.# geany /nwp/po1 /nwp/po2 /nwp/po3 /nwp/po4 /nwp/po5 /nwp/po6 /nwp/gpo /nwp/lpo /nwp/bpo /nwp/bb2

pb -- closest i can come to html page breaks--doesn't appear this bit will translate well to pdf conversions--more a visual aid and bookmark than anything.
po -- open po2
po1 -- print out an improved version of the preotry template
po2 -- (template--po1 without the mini-wait--use clone (under documents menu) or save as to preserve the file)
po3 -- geany /nwp/po4 /nwp/po5 /nwp/po6 /nwp/po2
po4 -- template as 14 pt monospace
po5 -- template as 14 pt sans
po6 -- template as 14 pt serif
pr -- print out paragraph tags
prc -- print out paragraph centered tags
prj -- print out paragraph justified tags
prl -- print out paragraph left tags
prr -- print out paragraph right tags
v -- activate vtg
lpo -- leafpad /nwp/po2| leafpad /nwp/po4 /nwp/po5| leafpad /nwp/po6| leafpad /nwp/lpo (open the wp template files in leafpad; open the file that determines what leafpad opens
bpo -- open the default template files in a browser so you can see the line spacing, highlighting, etc. use gpo to edit what the command calls and what browser gets opened.


Code:

#! /bin/sh
#bb2
#print out bold span tags--change for the font family, size, color or your choice. the underline and italics tags use what ever the outermost span tag is set to.
xdotool type '<span style="font-size: 14pt; color:black; font-weight:bold; font-family: monospace new">
</span>'



Code:
#!/bin/sh
#pb
#admittedly not much of a solution to the problem, but it should help you find where they should be come editing time. there's also the double down arrow. that's supposed to do something...

xdotool type '<<<<<<<p__a___g__e___<!-- find by bbbb (etc) -->↡______b_r__e__a__k_______>>>>>>>'



Code:
#!/bin/sh
#bpo
#you may want to open the files in dillo or another lightweight, not-necessarily-primary browser (swap out dillo for your choice). left click select and middle click paste/copy-paste in general from the browser's view to the word processor (online or otherwise) of your choice. lpo and gpo mostly open up template files in geany, but the files needed to configure what gets opened are also opened. po1 spits out the template code, and while xdotool types at about eight words a second, it's still faster to open a file with the necessary formatting in already in place. use save as or clone (under document) to preserve the included templates. alter the gpo, lpo, and bpo scripts that pop up with the gpo command to reflect your stash of files and their locations.
dillo /nwp/po2 /nwp/po4 /nwp/po5 /nwp/po6


what po1 spits out:

Quote:

<!DOCTYPE HTML>
<html>
<head>
<title></title>

</head>
<body>
<pre>
<span style="font-size: 14pt; color:black; font-weight:normal; font-family: monospace">



(delete this and place your content here. adjust the line above for the general text formatting of your document)




</span>
</pre>
</body>
</html>


see toward bottom of this post for the line spacing issue


from here

(not sure if anyone using this is using the/a launcher set to shift plus spacebar, but i highly recommend it...)

***

while the underlining (ul), italics (ii) and other tags worked in all the browsers i tried, the bold tags worked in none, leading me to discover the span tag. this allows easy control of the default font for the document as a whole while also allowing for easy switching up of text size, color, format, etc. line spacing is set by your actual key presses--the pre tag makes sure what you do is what you get as far as how it's all laid out on the page, but you can swap spacing in sections or whole documents with the search and replace function (in geany--leafpad's a bit more limited, i think) and regular expressions (i.e. to switch single spacing to double, replace \n with \n \n--new to it, but i think it will work. choose whole document or selection, tick the "use regular expressions" box.)

Very Happy



better solution for page breaks
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Thu 13 Aug 2015, 23:17    Post subject: now with puup....an even more miniminalistic word processor
Subject description: that's an improvement pack but also functions stand alone.
 

puup!.tar.gz (19kb)
also in xz flavor: puup!.tar.xz(17kb)
from the readme:

Quote:
a minimalistic word processor that uses built in apps (text editors and browsers). copy the nwp directory to /; requires xdotool and dash (full nwp requires aemenu and wmctrl as well). use shift plus spacebar or something else that's easily pressed to launch the launcher. I give you pu(/)up! (actually, i think it's pretty good). anyway, here's the newest update and documentation:


all wp codes launch paste and place version of nwp commands rather than the highlight and apply versions. included nwp commands:

bb -- bold
bb2 -- span tags for bold fonts or other, non default font choices (bold tags don't appear to work though the nwp's underlining and italics tags show the expected results). default is for monospace, same as po1, po2, po4 (the latter two are templates, po1 is an xdotool "spit this code" script/a backup of the main (monospace) template).
book -- older version of one of the docs--customize if you like
bpo -- open the default template files in a browser so you can see the line spacing, highlighting, etc. use gpo to edit what the command calls and what browser gets opened
bq -- block quote tags
f - findnrun, optional but recommended
gpo -- open the browser, leafpad, and geany configuration files for the nwp word processor plus the default default templates in geany.# geany /nwp/po1 /nwp/po2 /nwp/po3 /nwp/po4 /nwp/po5 /nwp/po6 /nwp/gpo /nwp/lpo /nwp/bpo /nwp/bb2
h1-h6 -- print out tags for headings 1-6
her -- open the hr template in geany
herl -- open the hr template in leafpad
hero -- open the hr template in geany
hr -- print out hr tags
hr0 -- open the hr template in geany
hr0l -- open the hr template in leafpad
hr1 -- spit out hr doc template
hrl -- <hr> tag, 35%, grey left side
hrr -- <hr> tag, 10%, grey right side
hrt -- template for autopage breaks with hr tag. called by other scripts.
ii -- italics tags
link -- external form of the toc tags
lp -- launch leafpad
lpo -- leafpad /nwp/po2| leafpad /nwp/po4 /nwp/po5| leafpad /nwp/po6| leafpad /nwp/lpo (open the wp template files in leafpad; open the file that determines what leafpad opens
mono -- open monospace template with geany
mono1 -- spit out monospace doc template
monol -- open monospace template with leafpad
monot -- monospace template
np02 -- pu(/)up launcher (configured to begin with a highlighted /nwp/)
p -- pu(/)up launcher configured to start at the end of /nwp/
pb -- <par style="page-break-after: always"></par>
pba -- <par style="page-break-before: always"></par> (a=above)
po -- open po2
po1 -- print out an improved version of the preotry template
po2 -- (template--po1 without the mini-wait--use clone (under documents menu) or save as to preserve the file)
po3 -- geany /nwp/po4 /nwp/po5 /nwp/po6 /nwp/po2
po4 -- template as 14 pt monospace
po5 -- template as 14 pt sans
po6 -- template as 14 pt serif
pr -- print out paragraph tags
prc -- print out paragraph centered tags
prj -- print out paragraph justified tags
prl -- print out paragraph left tags
prr -- print out paragraph right tags
q -- cite tags
san1 -- spit out sans serif doc template
sans -- open sans template with geany
sansl -- open sans template with leafpad
sanst -- sans serif doc template
ser1 -- spit out serif doc template
serf -- open serf template with geany
serfl -- open serf template with leafpad
sert -- serif doc template
sub -- subscript tags
sup -- superscript tags
t -- launch terminal of your choice (delete/comment sakura and uncomment or add your choice)

toc and tic paste bookmark/hyperlink codes. good for tables of contents, master documents, etc. on the editing side, you can make bookmarks in geany with ctrl+m, which will also toggle it off. ctrl plus comma is previous bookmark, control plus period is next bookmark. the plugin for numbered bookmarks makes a list on the side panel (unless that's default and i can't just can't figure out how to work/access the plug in version):

tic -- tic same page template and anchor --new tab
tic1 -- external page or same or external file, no anchor -- same tab
tic2 -- external page or same or external file with anchor -- same tab
toc -- toc same page template and anchor, same tab (general bookmarks). look up your text editor's method for bookmarking for the edit text (also non formatted) view.
toc1 -- external page or same or external file, no anchor -- new tab
toc2 -- external page or same or external file with anchor -- new tab

to open files in geany at specific location, append :line#:column# to the file, i.e. geany /nwp/docs/file1:50:14

ul -- underline
v -- activate vtg
xp -- launch xpad/new xpad

to easily get a dual view of a document, highlight some of the files you're working on and paste (middle click) in a geany document. add geany in front of the lot you want to open in tabs. copy the line and swap the geany for your choice of browser to open those same files in tabs with that program. open either with the vtg (alt+z or one of the menu or tray buttons), v in the launcher (with the previous pack), or by pasting the code into a terminal. refresh to see the updates/don't refresh to keep older versions and views hanging around/open the tabs in more than one window to create a time machine of versions (adapted from here.).

(you don't need to use geany to gather paths--leafpad actually is easier as it doesn't automatically open files dragged to it--it, like xpad, just records the full paths of files dragged to its windows.

vtg thread



------------------


templates:
#geany -i /nwp/templates/0 /nwp/templates/00 /nwp/templates/01 /nwp/templates/02 /nwp/templates/03 /nwp/templates/04 /nwp/templates/05 /nwp/templates/06 /nwp/templates/hero /nwp/templates/hr01 /nwp/templates/mono01 /nwp/templates/readme /nwp/templates/sans01 /nwp/templates/serf01


tip: use geany -i to open whole directories or other large batches of files each in their own instance of geany. save
tip two: right click on a blank space in a rox window, click new, customize, and then drag selected contents of the included templates window to the folder that popped up--you will now be able to make new docx, odt (these two if supported by your system's installed applications) nwp documents (four templates) with a right click in any rox folder.
tip 3: highlight and middle click in geany or highlight and drag to xpad or leafpad windows to gather paths for easy batch-launching in the future.

***




to get rid of the headers and footers that most browsers are set by default to use, file > print >options and alter the six boxes to your liking (method works for seamonkey, firefox, chromium. can't find print on dillo, haven't as yet tried palemoon or opera or ...).

pick a browser and editor to use--other than the vtg specific command and the two that call other programs, all these wp commands should work on pretty much anything.


........

dependencies: dash, xdotool

copy or symlink files to /nwp or /root/my-applications/bin.

(locations other than /nwp will need a few tweaks, though /root/my-applications/bin should be virtually effortless. off path locations for the folder of commands require additional tweaks to two other files...

***

also of potential use/interest:

while the underlining (ul), italics (ii) and other tags worked in all the browsers i tried, the bold tags worked in none, leading me to discover the span tag. this allows easy control of the default font for the document as a whole while also allowing for easy switching up of text size, color, format, etc. line spacing is set by your actual key presses--the pre tag makes sure what you do is what you get as far as how it's all laid out on the page, but you can swap spacing in sections or whole documents with the search and replace function (in geany--leafpad's a bit more limited, i think) and regular expressions (i.e. to switch single spacing to double, replace \n with \n \n--new to it, but i think it will work. choose whole document or selection, tick the "use regular expressions" box.) from http://www.murga-linux.com/puppy/viewtopic.php?p=860113#860113


to take fullest advantage of the speed and simplicity of nwp and pu(/)up, the launcher should be given a shortcut such as shift plus space bar.


---p.dogfellow, 8/15

(double u instead of w because of the optional, yet to be released but you have it if you add this version of nwp to the last version and subsequent updates Utilities Pack, i.e. it's not just a Word Processor.)




good to know: most browsers can save as pdf it seems.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Sun 16 Aug 2015, 22:11    Post subject: minor update that includes some icons and advice.
Subject description: continued testing shows promise...it's working well...
 

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

Quote:

Puppus Dogfellow wrote:

for these spins it's just a drop in improvement pack--add to nwp, overwrite conflicts. if you know in advance rox's asking if it's okay to overwrite will get on your nerves (it shouldn't--i think there are fewer than ten conflicts) use spacefm for the move.


don't copy over sup, use sp and sb (for super and subscript) instead; both are included in the attached upgrade pack. the fixed sup menu is also included in the update in case you overwrote it or want a bug fix (some of the entries called scripts from /my-applications/bin instead of /nwp/).

tip: to easily edit or access specific files in /nwp (if you know the code to call them, you know their names and the path is already there for you), add the command, press home, add rox, geany, leafpad (or a browser* if you're viewing a word processing file), then a space, then hit enter. the program you chose will open the file. to manually fix the menu called by aemenu when s is pressed in the launcher, add /nwp/ to the non-system commands in the text file, /nwp/sup.


tip: to easily edit or access specific files in /nwp (if you know the code to call them, you know their names and the path is already there for you), add the command, press home, add rox, geany, leafpad (or a browser* if you're viewing a word processing file), then a space, then hit enter. the program you chose will open the file. to manually fix the menu called by aemenu when s is pressed in the launcher, add /nwp/ to the non-system commands in the text file, /nwp/sup.


make a launch bed of geany launchers: get a print out of what you're working on, edit it, convert it to syntax the vtg or a terminal can use with find and replace > \n with space:

geany --list-documents > /root/my-documents/Text/list.txt; geany /root/my-documents/Text/list.txt--make a table of launchers/tables of content launchers. place geany or geany -i in front to launch a batch separately or to add to what you've already got open.

for more specific control in *read/formatting/print preview mode, use

Firefox options: firefox --new-window; firefox --new-tab; firefox --private-window (no history);
Palemoon options: palemoon -new-window; palemoon new-tab
SeaMonkey options: -new-window; -new-tab; -new-instance (from the help, "open new instance, not a new window in running instance.")

i.e. browser (options) [url] (or [file path]).


here's some useful vgt (and otherwise) code that's also a preview of sorts. to make multiple directories, including nested and nested-in-as-yet-non-existant-locales, use, for example:


Code:
mkdir -p /tmp/nwp/{docs/{0,text,vids,pics,icons,ncd,software,odt,pdf,html,docx,internet,tem2,z},templates,tem,root3,wp,uu} /dwn

which is what i used to make a mock-up of a new possible structure of /nwp. you can use brace expansion to get numbered directories (i.e. take away the / after "docs" and and the machine will prepend "docs" to everything in the series until the brace ends. use something like dir{2..6}ectory to make a series with numbers popping out of its members' backs. add additional braces to make series of series...

so i'm thinking about using that as the new structure of the /nwp folder, the idea being to avoid the save file/folder as much as possible (provide an off-location alternative). i see /tem as a sort of /tmp and /uu as possibly a /bin of sorts, although i also see them as an additional templates folder and another easily accessible, character-brief main location. /dwn because i never download to the download folder in root, additional templates folders or tmp (temporary; workshop) folders because both are project folders in essence, and getting the templates to your liking is possibly akin to categorizing your uses for them. while not quite the same approach as running in ram and avoiding save folders altogether by remastering when needed, this does make it easy to take your system changes with you for upgrades down the line and makes it possible to easily call scripts not in the PATH.


with regards to the templates, you could use the icons to make file associations--make a .tnr for a times new roman based template (or your template one, since it's so default or default-seeming...), a .cour or .mon or .ser or .san etc and right click run associate, right click set icon for type--this way the document "types" will be clear at a glance. anyway, one more minor update before the full update, which will include better help files. possibly. here's the updated pu/up: https://drive.google.com/file/d/0ByUDhE3nQF8uQWU0bEpvT3hLNTQ/view?usp=sharing

it's got some icons for the launcher, the templates, the folders, as templates for you to alter, ...



----------

a couple of screen shots...




icons aren't so great--you're not missing much by not visiting the link.

Last edited by Puppus Dogfellow on Mon 17 Aug 2015, 21:42; edited 2 times in total
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Sun 16 Aug 2015, 22:19    Post subject: reserved for definitive shortcut cheat sheet
Subject description: (this is the post formerly known as please delete, double post). take 2 of version 3:
 

trying to get together the shortcut commands from each of the packs, correct errors, fix omissions, prune the deprecated. a work in progress...

bb -- bold
bb2 -- span tags for bold fonts or other, non default font choices (bold tags don't appear to work though the nwp's underlining and italics tags show the expected results). default is for monospace, same as po1, po2, po4 (the latter two are templates, po1 is an xdotool "spit this code" script/a backup of the main (monospace) template).
book -- older version of one of the tocs/tics--customize if you like
bpo -- open the default template files in a browser so you can see the line spacing, highlighting, etc. use gpo to edit what the command calls and what browser gets opened
bq -- block quote tags
f - findnrun, optional but recommended
gpo -- open the browser, leafpad, and geany configuration files for the nwp word processor plus the default default templates in geany.# geany /nwp/po1 /nwp/po2 /nwp/po3 /nwp/po4 /nwp/po5 /nwp/po6 /nwp/gpo /nwp/lpo /nwp/bpo /nwp/bb2
h1-h6 -- print out tags for headings 1-6
her -- open the hr template in geany
herl -- open the hr template in leafpad
hero -- open the hr template in geany
hr -- print out hr tags
hr0 -- open the hr template in geany
hr0l -- open the hr template in leafpad
hr1 -- spit out hr doc template
hrl -- <hr> tag, 35%, grey left side
hrr -- <hr> tag, 10%, grey right side
hrt -- template for autopage breaks with hr tag. called by other scripts.
ii -- italics tags
link -- external form of the toc tags
lp -- launch leafpad
lpo -- leafpad /nwp/po2| leafpad /nwp/po4 /nwp/po5| leafpad /nwp/po6| leafpad /nwp/lpo (open the wp template files in leafpad; open the file that determines what leafpad opens
mono -- open monospace template with geany
mono1 -- spit out monospace doc template
monol -- open monospace template with leafpad
monot -- monospace template
np02 -- pu(/)up launcher (configured to begin with a highlighted /nwp/)
p -- pu(/)up launcher configured to start at the end of /nwp/
pb -- <par style="page-break-after: always"></par>
pba -- <par style="page-break-before: always"></par> (a=above)
po -- open po2
po1 -- print out an improved version of the preotry template
po2 -- (template--po1 without the mini-wait--use clone (under documents menu) or save as to preserve the file)
po3 -- geany /nwp/po4 /nwp/po5 /nwp/po6 /nwp/po2
po4 -- template as 14 pt monospace
po5 -- template as 14 pt sans
po6 -- template as 14 pt serif
pr -- print out paragraph tags
prc -- print out paragraph centered tags
prj -- print out paragraph justified tags
prl -- print out paragraph left tags
prr -- print out paragraph right tags
q -- cite tags
san1 -- spit out sans serif doc template
sans -- open sans template with geany
sansl -- open sans template with leafpad
sanst -- sans serif doc template
ser1 -- spit out serif doc template
serf -- open serf template with geany
serfl -- open serf template with leafpad
sert -- serif doc template
sub -- subscript tags
sup -- superscript tags
t -- launch terminal of your choice (delete/comment sakura and uncomment or add your choice)

toc and tic paste bookmark/hyperlink codes. good for tables of contents, master documents, etc. on the editing side, you can make bookmarks in geany with ctrl+m, which will also toggle it off. ctrl plus comma is previous bookmark, control plus period is next bookmark. the plugin for numbered bookmarks makes a list on the side panel (unless that's default and i can't just can't figure out how to work/access the plug in version):

tic -- tic same page template and anchor --new tab
tic1 -- external page or same or external file, no anchor -- same tab
tic2 -- external page or same or external file with anchor -- same tab
toc -- toc same page template and anchor, same tab (general bookmarks). look up your text editor's method for bookmarking for the edit text (also non formatted) view.
toc1 -- external page or same or external file, no anchor -- new tab
toc2 -- external page or same or external file with anchor -- new tab

to open files in geany at specific location, append :line#:column# to the file, i.e. geany /nwp/docs/file1:50:14

ul -- underline
v -- activate vtg
xp -- launch xpad/new xpad

terminal nwp/pwn/pax shortcuts:

s# send active window to desktop#
s#s send next clicked window to desktop#
d# go to desktop#
c plus a single letter is normally a close command--cr, close rox; cu, close urxvt terminals; ct, close rxvt Terminal.
pp# --change pinboard
p# --change/toggle four panel set frame (can be altered down to one)
my# --swap out custom jwm configurations
gea3 --edit custom jwm configurations
la, lb, lm ---layer above, below, middle/normal for active window
las,lbs, lms ---layer above, below, middle/normal for selected window
stk, ustk --stick unstick active (add an s for the click to select version)
pv2--partview and rox /mnt
rr --rox recently visited
rb1 --four (iirc) rungs down on the rox bookmarks menu
rup --three rungs up from the bottom of the rox bookmarks menu
wp-- access the nwp area of one of the root menus
w5 --access the quadrants, halves, and wholes area of one of the root (jwm) menus
pcp --access pup control
fnr --find and run
hlx -- htop in an urvxt window and lx task ...
ppm is a built in for package manager (will work without pxc launcher or anything having been symlinked to /root/my-applications/bin)
x#-- move to # on x-axis (increments of 5)
y# --move to # on y-axis (increments of 5)
h# --height (increments of 5)
w# --width (increments of 5)
rs --resize
t --terminal (set for my-applications/bin, so launchable from terminal or np/nwp/pxc launcher)
f --findandrun (also set for my-apps/bin)
np --nwpus launcher2
sd --speeddials
sdr --speed dials recent list only
gnysys --open a slew of config files in geany
3but -- speed dials and a version of winswitcher
ws -- winswitcher (also ctrl plus spacebar).
galc -- galculator
nc-- notecase
gd -- goldendict
jv -- make java sfs and take you there (thanks, uten)
5c -- print out the template command for making multiple copies of a file
5cd -- print out the template command for making multiple copies of a directory
7c -- print out the command for changing permissions of a script to executable (kind of lazy--chmod 755 isn't that involved...).
1 -- single monitor menu
2 -- double monitor menu
g -- grid menu
x -- x axis menu
y -- y axis menu
w -- width menu
h -- height menu
mv -- move
wn -- windows menu
mn -- minimize
mx -- maximize window
o -- old windows manipulation menu
s -- new version of supplemental menus
n -- the original nwpus menu
n1 -- the full word-processing menu without any of the supplementals. it has n2 and n3 as submenus but gives some prominence to the overall document formatting commands from n3
n2 -- just the highlight and click to apply word processing/html code section
n3 -- the paste and place section of the main (word processing) menu.
slac -- search all databases
sloc -- search selected database with option to print results #sometimes problematic
sluc --update all slocate databases/create databases (thanks to musher0 for the slocate wrapper and the three scripts i've renamed here)
ww - winswitcher
sv -- make a folder a server. open a terminal and sv in the pax launcher (nwp launcher, etc) will print out "python -m SimpleHTTPServerWithUpload"--open a browser in the client computer and input the ipnet address (run ifconfig in a terminal) with :8000 appended to it (i.e. http://192.168.1.66:8000). this will allow you to upload and download files to the directory you ran the sv command (i.e. shift+spacebar (which pops up the modified pexec launcher showing /nwp/ in the entry box) then sv then enter) in.
by rcrsn51. thread here: http://www.murga-linux.com/puppy/viewtopic.php?p=415132#415132 (unnecessary now that it has a gui)

fw -- toggle firewall on off (actually give a pop up that provides the function. requires the pet by tronkel you can find at
http://murga-linux.com/puppy/viewtopic.php?t=65205&sid=20489912102587646aa7949ea478cf1f). rcrsn51's SimpleHTTPServerWithUpload won't run with the firewall in place and this is a convenient way to temporarily disable it.

-3--------------------------- 6
1 2----------------------- 8 9
-4 ----------------------------7

b5=full screen left, b10=full screen right. b series is halves and wholes.

1 2--------------6 7
--5----------------10
3 4--------------8 9

a# series is quadrants...

sk - sakura (also t in nwp/pwn/pax or any terminal for most of them (some may be set to urxvt or rxvt--they all have sakura though)
rn - gfnrename (batchrenamer)
hlx - htop (through urxvt) and lxtask
bh - adds bold tags around a selection of text in any text editor
uh - adds underline tags around a selection of text in any text editor
sth - add strikethrough tags around a selection of text in any editor or window that can receive text input
ih - add italics tags around a selection of text in any editor or window that can receive text input
bb - print out bold tags
cmt - print out comment (<!-- -->) tags
ii - print out italics tags
st - print out strikethrough tags
ul - print out underline tags


wm -- go to one of the giant menu submenu menus (presently set for root 0 menu--requires jwm and the root3 folder in /nwp)

some changes to the templates...

a much better way to launch and batch launch files (you'll get a a dual view without having to to click the file more than once. for print preview of the pdf form of this essentially txt/html word processing document (though you can embed and link what you like , it seems), you'll need to access to your choice of browser/htmlviewer's print preview button. to change the headers and footers, you'll need to use your browser's print > options menu.

-------------

dual launchers (text editor and browser) for the Nooby Word Processor/nwp:

ggc -- geany, chrome
gigc -- geany new instance, chrome
gio -- geany new instance, opera
lgc -- leafpad, chromium
gif -- geany new instance, firefox
def -- default text editor, default browser
gf -- geany, firefox
tef -- default text editor, firefox
lff -- leafpad, firefox
gb -- geany, default browser
gib -- geany new instance, default browser
leb -- leafpad, default browser
leafy -- leafpad, seamonkey
dlll -- leafpad, dillo
ged -- geany, dillo
ges -- geany, seamonkey
lop -- leafpad, opera
gep -- geany, palemoon
gc -- geany, chromium
gip -- geany new instance, palemoon
gic -- geany new instance, chromium
lep -- leafpad, palemoon
gid -- geany new instance, dillo
lec -- leafpad, chromium
gis -- geany new instance, seamonkey

more shortcuts now available to the Nooby Uber Utility Pack
sda[1-6]-sdd[1-6] -- open those partitions
the following will open in rox if entered in the pw,n launcher: mnt, home, mdoc (opens root/my-documents), apps (opens usr/share/applications), jwm (/root/.jwm), bin, jxdg(etc/xdg/templates), conf (/root/.configure), mybin (/root/my-applications/bin), etc, tmp, and pack (/nwp).

at, at[1-10] are autotext scripts. atx is the template, ate will open the 11 in geany for you to edit/rename. single monitor setups now have similar nwp shortcuts as doubles:


q series is quarter sized up to five (which is configurable and centrally placed);
q6 and q7 set the active window to left and right halves of the screen respectively
q8 and q9 are top and bottom. q10 is full/maximized (as is mx).

Code:
q1     q2                    q8                         
     q5                    q6    q7         
q3     q4                    q9   


some deps, recs, and links:

pcp requires puppy control panel:http://www.murga-linux.com/puppy/viewtopic.php?t=61961
tas requires take a shot: http://murga-linux.com/puppy/viewtopic.php?t=84528
f requires find and run: http://www.murga-linux.com/puppy/viewtopic.php?p=835582835582
xpc and xpb require xpad

some other included shortcuts:

xpc -- xpad clear
xpb -- xpad back up
cnt -- spit out the code in those echo sections from the script above that allows you to create files with predetermined content (cnt--content)
c- -- a comment line that looks like this: #------------------
tas -- SFR's take a shot
pcp -- radky's puppy control panel
ww -- MochiMoppel's WinSwitcher
v -- vtg

---------
(another batch from recent update:)

roks -- open k1-10 in geany for editing (they're rox bookmark files, but will open regular files with default handler in addition to directories with rox)
geak - open all the word processor templates in geany
duals -- open a folder containing a group of dual launchers (text editors and browsers) for use with the nooby word processor
paw -- page break above, white text
pbw -- page break below, white text
l- open launcher customized for leafpad
r- open launcher customized for rox
g- open launcher customized for geany


---------

another batch from recent update:

rad -- rox, starting level is /root/my-documents
rab -- rox, starting level is /root/my-applications/bin
gad -- geany, starting level is /root/my-documents
gab -- geany, starting level is /root/my-applications/bin
lad -- leafpad, starting level is /root/my-documents
lab -- leafpad, starting level is /root/my-applications/bin
chab -- chmod 755 (allow script to run) prefix, starting level is /root/my-applications/bin

atdesk --make a desktop template
jp -- open jwmrc-personal with geany
(a new gynysys based on the move of many files out of root and root/my-applications/bin and into /nwp. will open a duplicate for you to modify)
hi - hard info
mr - sfr's multi rename
ppm --so you can call the ppm from the nwp launcher without having to go to findnrun or a terminal or backspace or ctrl-a over the text (/nwp/)
v - the vtg (also working well in quirky)
m - pmount and partview
veg - same a alt+g -- vgt, nwp and puup help
gi - new instance of geany

cursor at right versions of launcher

p -- main nwp launcher
ch - permissions launcher
gl - geany launcher (also -g)
ll - leafpad launcherr (also -l)
rl - rox launcher (also -r)

highlighted entry versions:

r- rox launcher
g- geany launcher
ch- change permissions launcher
l- leafpad launcher


f1-f24 --type those function keys
(one of my machines is without) Crying or Very sad
elp - help opened up in leafpad (mostly paste and paste cheats until you modify them)
tem - ae templates menu

*********************
AEMENU KEYCUTS:
what it is -- what to enter into the p,wn launcher:

nwp and submenus -- n
word processor without supplemental menus -- n1
paste and place formatting codes only -- n2
highlight and select formatting codes only -- n3
supplemental -- s
single monitors -- 1
double monitors -- 2
aef -- aemenu containing (nearly?) all the aemenus
pw,n launchers for nwp -- pwns
grids (x and y by 100 pixel increments) -- g
extra windows manipulation menu -- o
points on axis y -- y
points on axis x -- x
width by fives -- w
height by fives -- h
templates and dual launchers -- tem
aemenu dual launchers -- dual
aemenu window size and placement -- w1

(new one, "elp," pops up a leafpad document with what's between the asterisk trains. modify to taste)
*********************

Last edited by Puppus Dogfellow on Fri 04 Dec 2015, 14:20; edited 5 times in total
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1500
Location: nyc

PostPosted: Mon 17 Aug 2015, 22:21    Post subject: pwp --a very tiny word processor (of sorts)
Subject description: open file(s) in editing, view/read, and print preview modes (more or less) simultaneously
 

(the qualification in the subtitle because print preview is an extra couple of button presses on the browser, which itself opens after the editor (almost always the faster of the two) of your choice has opened the file in editing/text mode)


Quote:


a much better way to launch and batch launch files (you'll get a a dual view without having to to click the file more than once. for print preview of the pdf form of this essentially txt/html word processing document (though you can embed and link what you like , it seems), you'll need to access to your choice of browser/htmlviewer's print preview button. to change the headers and footers, you'll need to use your browser's print > options menu.


well,

Quote:
Puppus Dogfellow wrote:
Quote:
with regards to the templates, you could use the icons to make file associations--make a .tnr for a times new roman based template (or your template one, since it's so default or default-seeming...), a .cour or .mon or .ser or .san etc and right click run associate, right click set icon for type--this way the document "types" will be clear at a glance. anyway, one more minor update before the full update, which will include better help files. possibly. here's the updated pu/up: https://drive.google.com/file/d/0ByUDhE3nQF8uQWU0bEpvT3hLNTQ/view?usp=sharing
it's got some icons for the launcher, the templates, the folders, as templates for you to alter, ...


nope, the setting associations by icon didn't work (machine knows it's an html file), but the following script works, and it allows you to simultaneously open a document or batch of documents in the editor (geany automatically opens batches in tabs) and browser (firefox set as below opened all files sent through the script in tabs. spacemonkey (with no options) didn't. didn't test any other browsers, but palemoon, opera, and chrome/chromium likely behave as firefox does. dillo has no print function or preview from what i can tell. use your choice or a system default):
Code:

#!/bin/sh
#pwp --a tiny word processor (of sorts). 
#exec defaulttexteditor "$@"| exec firefox "$@"
exec defaulttexteditor "$@"| exec firefox "$@"
#exec defaulttexteditor "$@"| exec defaultbrowser "$@"
#exec [uncomment and and pick your defaulttexteditor] "$@"| exec [...defaultbrowser] "$@"


# in puup or any other nwp launcher, it'd be pwp path/of/file(s). in a terminal or from the vtg, /nwp/pwp (paths to file(s)),
#ex: /nwp/pwp [/path/to/file1]   or  /nwp/pwp [/path/to/file11 /path/to/file1212 /path/to/file1112]
#this will open the file in viewing mode and editing mode simultaneously. 
#i recommend putting the browser's print button somewhere on the main interface for convenience (print preview) and the
#file browser button many have can be pretty handy as well. i'm
#using firefox for my default browser choice because it will open up multiple files dragged to the script using it,
#whereas seamonkey stops at the first one. haven't tweaked its settings or tried other
#browsers or text editors, but this works in the terminal, as a nwp-launcher command, as a desktop
#item for drag and activate (highlight one or more files in a folder, drag to the script whether it's
#on a panel, the desktop, or a folder), through the vgt, and through the rox right click entry for open-with.



as the comments state, this works in the terminal, as a nwp-launcher command, as a desktop item for drag and activate (highlight one or more files in a folder, drag to the script whether it's on a panel, the desktop, or a folder), through the vgt, and through the rox right click entry for open-with.

Very Happy

place the browsers print button on the main interface for easy access to print preview.

tip: to easily toggle between edit mode and view mode (or edit, view, and print preview), send the browser window to a different desktop (and optionally do the same for the pop up print preview window, which unfortunately has no refresh button that i can see, making it a bit less quick/useful, although it could represent an earlier edit than the browser window, itself reflecting an earlier version of the text you're working on in geany, which seems to have unlimited undos per session, even allowing you to undo after a save has been made, something LibreOffice cannot do or isn't set up to do). in most puppies, go to desktop is alt+#1-0 for the ten desktops. you can send 1-24 and go to 1-24 with s[1-24] and d[1-24] in the puup launcher if you're launching from the full nwp folder.

seem to have forgotten the built-in shortcut for accessing the windows menu in stock puppies (alt+f2? alt+f12?)...with the launcher calling from full /nwp, it's wn (layer, sticky, send to, etc). you may have to alter that script for windows managers other than jwm.


from here,

which later added:




Quote:

Quote:
with regards to the templates, you could use the icons to make file associations--make a .tnr for a times new roman based template (or your template one, since it's so default or default-seeming...), a .cour or .mon or .ser or .san etc and right click run associate, right click set icon for type--this way the document "types" will be clear at a glance. anyway, one more minor update before the full update, which will include better help files. possibly. here's the updated pu/up: https://drive.google.com/file/d/0ByUDhE3nQF8uQWU0bEpvT3hLNTQ/view?usp=sharing
it's got some icons for the launcher, the templates, the folders, as templates for you to alter, ...


nope, the setting associations by icon didn't work (machine knows it's an html file), but the following script works, and it allows you to simultaneously open a document or batch of documents in the editor (geany automatically opens batches in tabs) and browser (firefox set as below opened all files sent through the script in tabs. spacemonkey (with no options) didn't. didn't test any other browsers, but palemoon, opera, and chrome/chromium likely behave as firefox does. dillo has no print function or preview from what i can tell. use your choice or a system default):


the file association to icon as group by way of dummy extension idea didn't work, but that rox right click to set icon feature is still very useful--set things by category or whimsy: any image file can be an icon for any other file in puppy, it seems. but if you want to stick with the theme of icons for word processing (i tried to use wp (for word processing) as a dummy extension but the machine picked it up as a word perfect file...nice idea, word perfect, whatever you are...), the ones i made and dissed earlier aren't too bad, though the first screenshot leaves transparent looking bright white. the second one shows two of the icons in their natural transparency and scale:






Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 6 [87 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
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.2340s ][ Queries: 12 (0.0053s) ][ GZIP on ]