A NWP/A NWPUS--A Noob's Word Processor and Utilities Suite

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

#16 Post by Puppus Dogfellow »

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/viewto ... 160#784160, which is a link in the first post) :
Puppus Dogfellow wrote:an ethereally minimalistic word processor:
[...]

some background from here:

[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... :)


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:
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: Select all

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: Select all

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
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...:

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.

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

a way to launch the programs in /nwp directly with pex/gexec

#17 Post by Puppus Dogfellow »

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: Select all



#!/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/viewto ... 711#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: Select all

<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, 05:03, edited 1 time in total.

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

nwpsup1.tar.xz: a few reworked menus, a few updated scripts,

#18 Post by Puppus Dogfellow »

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:
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: Select all


<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: Select all


#!/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: Select all

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: Select all

 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: Select all

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: Select all

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: Select all

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

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

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

-----------------
#!/bin/sh
 #n
aemenu -rc /nwp/nwpmenu

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

last of the word processor menus until i learn css code...

#19 Post by Puppus Dogfellow »

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: Select all

#!/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: Select all

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: Select all

#!/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

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

alternate version of the pexec/pxc launcher.

#20 Post by Puppus Dogfellow »

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: Select all

#!/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: Select all

#!/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: Select all

#!/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

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

the missing five step increments

#21 Post by Puppus Dogfellow »

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 :shock: )

as usual, enjoy.
:lol:


(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:



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).

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

a few updates

#22 Post by Puppus Dogfellow »

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: Select all

#!/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: Select all

#!/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...

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

here are some scripts retitled for use with the pax launcher

#23 Post by Puppus Dogfellow »

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: Select all

#! /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: Select all

#! /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: Select all

#! /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: Select all

#! /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: Select all

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

Code: Select all

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

Code: Select all

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

Code: Select all

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

Code: Select all

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

for installed programs:

Code: Select all

#! /bin/sh
#rn
gfnrename

Code: Select all

#! /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, 05:54, edited 2 times in total.

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

nwp file manager menus (aemenu popups) for spacefm, thunar,

#24 Post by Puppus Dogfellow »

support for file managers other than rox:

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: Select all

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: Select all


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: Select all

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: Select all

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: Select all



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: Select all

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

Code: Select all

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

Code: Select all

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

Code: Select all

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

Code: Select all

#!/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

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

for 64 bit puppies

#25 Post by Puppus Dogfellow »

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).

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

the bold tags don't quite work

#26 Post by Puppus Dogfellow »

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: Select all

#! /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: Select all

#!/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: Select all

#!/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:
<!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.)

:D



better solution for page breaks

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

now with puup....an even more miniminalistic word processor

#27 Post by Puppus Dogfellow »

puup!.tar.gz (19kb)
also in xz flavor: puup!.tar.xz(17kb)
from the readme:
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 fromhere.).

(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/viewto ... 113#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.

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

minor update that includes some icons and advice.

#28 Post by Puppus Dogfellow »

from http://www.murga-linux.com/puppy/viewto ... 696#860696
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/0ByUDhE ... sp=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 Tue 18 Aug 2015, 01:42, edited 2 times in total.

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

reserved for definitive shortcut cheat sheet

#29 Post by Puppus Dogfellow »

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/viewto ... 132#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. ... 9ea478cf1f). 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: Select all

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/viewto ... 5582835582
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) :cry:
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, 18:20, edited 5 times in total.

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

pwp --a very tiny word processor (of sorts)

#30 Post by Puppus Dogfellow »

(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)


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,
Puppus Dogfellow wrote:
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/0ByUDhE ... sp=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: Select all

#!/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.

:D

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:



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/0ByUDhE ... sp=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:


Image



Image

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

tips, previews, documentation fix

#31 Post by Puppus Dogfellow »

from:

~572, p575, and p57577: three spins/updates of Precise 5.7.1
Re: tips and previews.
also a documentation fix

Puppus Dogfellow wrote:from Geany as Launcher, Bookmarks Manager, and Word Processor

Re: word processing four
also, rox is a file navigation and creation powerhouse.
Puppus Dogfellow wrote:i suppose it's more of a typewriter...


here are some guides for setting up line breaks, line wrapping, and font choice:

mono/courier/courier new 11 breaking column: 75
serif 12: 99
sans 12: 80
nimbus condensed monospace 14: 110


left, right, and center are all what you'd expect, but justify doesn't work out as nicely as on a full word processor. use search and replace and tick the use regular expressions box, swap \n for a space (one blank white space), hit enter, right click the section, choose format > reflow lines. if you're not concerned with underlining and multiple fonts and don't want the hassle of making sure lines don't run off the page, printing from leafpad is probably best (no line wrapping markers in the default view, no auto-line breaking capability and so makes reshaping text a bit easier, though i suppose you could just toggle that off in geany. another strategy for nearly justified text would be to set the font small in the text editor and use the zoom settings in the browser's print dialog to come close to a justified page. for actually banging out pages of wood and ink, i think it's maybe better to think of this word processor more as an advanced archiving typewriter and pdf maker (pdfs can be bare black and white text or portable sections of the internet, it seems--i'm just a noob who wants something that never breaks--leafpad and geany never break...) and poetry producer--that requires no changes to the basic document format of the templates (maybe one more and some new launchers in the next pack) and preotry (pre tag bug fix in next pack as well), the proto-template, was in fact devised because i noticed what text makers do to lines sometimes and thought it'd be nice to make that behavior optional (it's still pretty cool for comments sometimes). if you're primarily concerned with printing something out and don't care about underlining and other formatting, print from leafpad or geany (there must be a way to shut of the line wrap markers from showing). dillo has a little less capability than the other browsers being discussed, but it always opens new batches in tabs in a new window and it is super fast. the new pack uses it as reference material pop-up with the following:

Code: Select all

#!/bin/sh
#dil. place in /nwp and/or /root/my-applications/bin
dillo www.google.com www.dictionary.com www.murga-linux.com/puppy http://www.etymonline.com/
you can get rid of the close dialog and set other preferences in /root/.dillo/dillorc.

since dillo doesn't respond to the code changing font color, invisible page breaks (those done in white--use the quasi-visible text slots as quick find anchors or as a variation on comments) are visible in dillo--you can use the reference popup to check them. tip: if you don't fill out the title tag in editor view, dillo will give every word processing tab a tiny blank marker that's of less help than ctrl page up and down.


leafpad and seamonkey don't open batches of files dragged to them or sent to them in tabs as default behavior and so seem like a natural match--seamonkey can do the tabs with a little extra fiddling around, i'm sure, and already has the print preview that dillo lacks--this seems to be the next most capable and second fastest set up. so dillo has no print preview or print to pdf capability, but you can use geany or leafpad to print. speaking of which, if you're not using this as an exercise in minimalism but rather for speed and convenience, the main use of the view/read mode (apart from readability and hyperlinks/bookmarks/functional tables of contents) is to copy and paste your formatted (spacing and otherwise) text into zoho, google docs, libre office, box.com, word, textmaker, or any other document handler that will be more likely to be handling the final form of your work, though between the majority of browsers having save to pdf capability and rcrsn51's peasy_pdf making it easy to cut apart and rejoin those documents, this really can be a stand alone solution in many cases. palemoon and firefox take minimal resources to open ten or twenty of these document type tabs, but dillo takes about a thirtieth it seems. (10 vs 300 mb usage at first run with a batch; adding to an already running instance seems to add less overhead to both palemoon and firefox...dillo opens a new window with a new batch of tabs each one is dragged to it...it's really very quick but insists on the file:///path/file syntax rather than the syntax the other browsers (and nearly all puppy programs, it seems) accept, /path/file (unless you're doing it through the terminal, vgt, or a launcher--in those you can use /path/to/file). .they've all got buttons or other methods for opening files, so interplay between the interfaces should be pretty smooth. to navigate tabs in dillo:

ctrl+page up -- tab left
ctrl+page down -- tab right

to navigate them in geany:

Ctrl-Shift-PageDown Move document right
Ctrl-Shift-PageUp Move document left
Ctrl-PageDown Switch to right document
Ctrl-PageUp Switch to left document

-----------


in short, you're basically working with a super advanced typewriter (but getting back to basics) and justification is a bit more difficult than other formatting for our purposes here. for formatted text, you'd need to use the template and print from a browser. quick print, use geany or leafpad. want to open 100 100 page text files instantly and copy the text back and forth between a dozen locations? use geany. want multiple views of the text in various stages in development, use the dual launchers or open the batch in a browser as well (vtg or terminal).

---

regarding rox, there is probably no faster way to navigate folders or create files than rox with short cuts set. right click to go to the create new file dialog and press a letter--now every time you are in a rox folder and press that letter, a copy of that document type will appear for you to retitle in that location. ctrl+1-0 gives you speed dials to ten locations, ctrl+b is book marks (you can short cut open parent in new window to get a freebie bookmark/dual plane set up. you could also make a bookmark of a folder of symlinks to launchers, files, programs, directories, etc).

erase keycuts with backspace. if your rox filer doesn't appear to support the right click short cut keys, see this post by Cat Dude:

http://www.murga-linux.com/puppy/viewto ... fb3#354862

--------

here's a shot of the dual launchers (one is actually the folder containing the dual launchers):

Image


most are set to open geany in a new instance or existing instance plus open the same files in either palemoon, chrome, chromium, firefox, dillo, or seamonkey. alter the icons as you see fit--i'm not savvy enough to figure out how to link the image with the file so they stay linked regardless of where the pieces end up, so they're just going to be included along with the scripts.

:)

______

documentation fix: i mistakenly stated the winswitcher shortcuts were ws (really width, select) and win (really, like wn, the windows menu). the real shortcut (apart from ctrl plus spacebar) is ww in the launcher or /nwp/ww in the vtg.


documentation fix 2:

i forgot to document two scripts in the previous pack, htopp and htops, which respectively resize and place an active and a selected window to the central htop position you can see in this screenshot. rename and alter the code (get current geometry of windows with winswitcher f1 or right click menu, wmctrl -l -G in a terminal, or new terminal in distros (~572-p575) with the wmctrl bash prompt mod) to make custom versions. new pack will have q1-5 and sd1-5 (or some equivalent) to give it /nwp launcher shortcut equivalents for the dual monitor's a1-10 and b1-10 (windows sized and moved by quadrant, half, and whole/center).


-----

new pack will include fixed pre tag script, fixed multi copy script, more templates, the above dual launchers...




----

folder view shows more versions:

Image

yellow and red in the middle for geany colors, but that started to seem silly after a while. also, palemoon's icon could be used for explorer wine--i'd probably shrink them for personal use. shot shows 1rx1 icons--it's a rox filer window that for some reason has decided to no longer display huge icons when asked (sorry for the lack of clarity).


-----

edit, some further info on the rox glitch: i had never encountered this error before so i went back and undid something else new to the set up, i reset rox > options > drag and drop back to the default settings (unticked delete) and the icon problem went away--rox can again show huge icons (changing the settings didn't quiet rox's permission-asking ways, so no gain from the change).

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

an update script that also works as an install script for

#32 Post by Puppus Dogfellow »

script installs the launchers (copies them to folders and sets their permissions) and some updates:
Puppus Dogfellow wrote:this next update is also a stand alone install script, but it just means you get two extra sets of main (shift plus spacebar) nwp (now pw,n) launchers--one in /nwp and one in /root/my-applications/bin. this one's got the q1-10, some rox shortcuts, more dual launchers for the nwp word processor (or any time you feel like opening text documents in browser tabs at the same time you open in an editor). it's got the autotext entries--mostly navigation, launching, and omission correction.

here's the script:

Code: Select all

#!/bin/sh
#dual launchers for the word processor aspect. also, it's a stand alone install script
#no longer requires dash (optional--just swap out the sh for dash if you've got it/prefer it)
mkdir -p /nwp
echo $'
#!/bin/sh
exec geany -i "$@"| exec firefox "$@"
' > /nwp/gif
echo $'
#!/bin/sh
exec defaulttexteditor "$@"| exec firefox "$@"
' > /nwp/tef
echo $'
#!/bin/sh
exec geany "$@"| exec firefox "$@"
' > /nwp/gf
echo $'
#!/bin/sh
exec defaulttexteditor "$@"| exec defaultbrowser "$@"
' > /nwp/def
echo $'
#!/bin/sh
exec leafpad "$@"| exec firefox "$@"
' > /nwp/lff
echo $'
#!/bin/sh
exec geany "$@"| exec defaultbrowser "$@"
' > /nwp/gb
echo $'
#!/bin/sh
exec geany -i "$@"| exec defaultbrowser "$@"
' > /nwp/gib
echo $'
#!/bin/sh
exec leafpad "$@"| exec defaultbrowser "$@"
' > /nwp/leb
echo $'
#!/bin/sh
exec leafpad "$@"| exec seamonkey "$@"
' > /nwp/leafy
echo $'
#!/bin/sh
exec leafpad "$@"| exec dillo "$@"
' > /nwp/dlll
echo $'
#!/bin/sh
exec geany "$@"| exec seamonkey "$@"
' > /nwp/ges
  
echo $'
#!/bin/sh
exec geany "$@"| exec dillo "$@"
' > /nwp/ged
 
echo $'
#!/bin/sh
exec geany -i "$@"| exec seamonkey "$@"
' > /nwp/gis
echo $'
#!/bin/sh
exec geany -i "$@"| exec dillo "$@"
' > /nwp/gid
echo $'
#!/bin/sh
exec leafpad "$@"| exec chromium "$@"
' > /nwp/lec
echo $'
#!/bin/sh
exec leafpad "$@"| exec palemoon "$@"
' > /nwp/lep
echo $'
#!/bin/sh
exec geany -i "$@"| exec chromium "$@"
' > /nwp/gic
echo $'
#!/bin/sh
exec geany -i "$@"| exec palemoon "$@"
' > /nwp/gip
echo $'
#!/bin/sh
exec geany "$@"| exec chromium "$@"
' > /nwp/gc
echo $'
#!/bin/sh
exec geany "$@"| exec palemoon "$@"
' > /nwp/gep
echo $'
!/bin/sh
exec leafpad "$@"| exec opera "$@"
' > /nwp/lop
echo $'
#!/bin/sh
exec leafpad "$@"| exec google-chrome "$@"
' > /nwp/lgc
echo $'
#!/bin/sh
exec geany -i "$@"| exec opera "$@"
' > /nwp/gio
echo $'
#!/bin/sh
exec geany -i "$@"| exec 
google-chrome "$@"
' > /nwp/gigc
echo $'
#!/bin/sh
exec geany "$@"| exec opera "$@"
' > /nwp/
echo $'
#!/bin/sh
exec geany "$@"| exec google-chrome "$@"
' > /nwp/ggc
echo $'#!/bin/sh 
[ -z "$history" ] && history="/nwp/"
# create and run dialog
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
              --title="pw,n" --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
' > /nwp/np5
echo $'#!/bin/sh 
/nwp/np5| xdotool sleep .2s key Right
' > /nwp/pwn
cp /nwp/np5 /root/my-applications/bin/np5
cp /nwp/pwn /root/my-applications/bin/pwn
chmod 755 /nwp/pwn /nwp/np5
chmod 755 root/my-applications/bin/pwn /root/my-applications/bin/np5
echo $'#!/bin/sh 
rox /mnt
' > /nwp/mnt
echo $'#!/bin/sh 
rox /tmp
' > /nwp/tmp
echo $'#!/bin/sh 
rox /etc
' > /nwp/etc
echo $'#!/bin/sh 
rox /root/my-applications/bin
' > /nwp/mybin
echo $'#!/bin/sh 
rox /root/.config
' > /nwp/conf
echo $'#!/bin/sh 
 rox /etc/xdg/templates
' > /nwp/jxdg
echo $'#!/bin/sh 
rox /bin
' > /nwp/bin
echo $'#!/bin/sh 
rox /root/.jwm
' > /nwp/jwm
echo $'#!/bin/sh 
rox /usr/share/applications
' > /nwp/apps
echo $'#!/bin/sh 
rox /mnt/home
' > /nwp/home
echo $'#!/bin/sh 
rox /root/my-documents/
' > /nwp/mdoc
echo $'#!/bin/sh 
rox /mnt/sdd1
' > /nwp/sdd1
echo $'#!/bin/sh 
rox /mnt/sdd2
' > /nwp/sdd2
echo $'#!/bin/sh 
rox /mnt/sdd3
' > /nwp/sdd3
echo $'#!/bin/sh 
rox /mnt/sdd4
' > /nwp/sdd4
echo $'#!/bin/sh 
rox /mnt/sdd5
' > /nwp/sdd5
echo $'#!/bin/sh 
rox /mnt/sdd6
' > /nwp/sdd6
echo $'#!/bin/sh 
rox /mnt/sdc1
' > /nwp/sdc1
echo $'#!/bin/sh 
rox /mnt/sdc2
' > /nwp/sdc2
echo $'#!/bin/sh 
rox /mnt/sdc3
' > /nwp/sdc3
echo $'#!/bin/sh 
rox /mnt/sdc4
' > /nwp/sdc4
echo $'#!/bin/sh 
rox /mnt/sdc5
' > /nwp/sdc5
echo $'#!/bin/sh 
rox /mnt/sdc6
' > /nwp/sdc6
echo $'#!/bin/sh 
rox /mnt/sdb1
' > /nwp/sdb1
echo $'#!/bin/sh 
rox /mnt/sdb2
' > /nwp/sdb2
echo $'#!/bin/sh 
rox /mnt/sdb3
' > /nwp/sdb3
echo $'#!/bin/sh 
rox /mnt/sdb4
' > /nwp/sdb4
echo $'#!/bin/sh 
rox /mnt/sdb5
' > /nwp/sdb5
echo $'#!/bin/sh 
rox /mnt/sdb6
' > /nwp/sdb6
echo $'#!/bin/sh 
rox /mnt/sda1
' > /nwp/sda1
echo $'#!/bin/sh 
rox /mnt/sda2
' > /nwp/sda2
echo $'#!/bin/sh 
rox /mnt/sda3
' > /nwp/sda3
echo $'#!/bin/sh 
rox /mnt/sda4
' > /nwp/sda4
echo $'#!/bin/sh 
rox /mnt/sda5
' > /nwp/sda5
echo $'#!/bin/sh 
rox /mnt/sda6
' > /nwp/sda6
echo $'#!/bin/sh 
rox /nwp
' > /nwp/pack
 
chmod 755 /nwp/sdd1 /nwp/sdd2 /nwp/sdd3 /nwp/sdd4 /nwp/sdd5 /nwp/sdd6
chmod 755 /nwp/sdc1 /nwp/sdc2 /nwp/sdc3 /nwp/sdc4 /nwp/sdc5 /nwp/sdc6
chmod 755 /nwp/sdb1 /nwp/sdb2 /nwp/sdb3 /nwp/sdb4 /nwp/sdb5 /nwp/sdb6
chmod 755 nwp/sda1 /nwp/sda2 /nwp/sda3 /nwp/sda4 /nwp/sda5 /nwp/sda6
chmod 755 /nwp/ggc /nwp/go /nwp/gigc /nwp/gio /nwp/lgc /nwp/gif /nwp/def /nwp/gf /nwp/tef /nwp/def /nwp/lff /nwp/gb /nwp/gib /nwp/led /nwp/leafy /nwp/dlll /nwp/ged /nwp/ges /nwp/lop /nwp/gep /nwp/gc /nwp/gip /nwp/gic /nwp/lep /nwp/gid /nwp/lec /nwp/gis /nwp/ged
chmod 755 /nwp/home /nwp/mdoc /nwp/apps /nwp/jwm /nwp/bin /nwp/jxdg /nwp/conf /nwp/mybin /nwp/etc /nwp/tmp /nwp/mnt /nwp/pack
cp /nwp/tophalf2 /nwp/q8
cp /nwp/bottomhalf2 /nwp/q9
cp /nwp/lefthalf2 /nwp/q6
cp /nwp/righthalf2 /nwp/q7
cp /nwp/fulla  /nwp/q10
cp /nwp/upperleftquadrant2 /nwp/q1
cp /nwp/upperrightquadrant2 /nwp/q2
cp /nwp/lowerleftquadrant2 /nwp/q3
cp /nwp/lowerrightquadrant2 /nwp/q4
cp /nwp/lp5a  /nwp/q5
 echo $'#!/bin/sh
xdotool type \'<pre></pre>\'
' > /nwp/pre
cp /nwp/xpad-clear /nwp/xpc
cp /nwp/xpad-backup /nwp/xpb
 echo $'#!/bin/sh
xdotool key alt+0 Down Down Right
#large menu submenu on the root0 menu
' > /nwp/wm
echo $'#!/bin/sh 
/nwp/sfs-java.sh; rox /tmp/java-sfs 
' > /nwp/jv 
echo $'#!/bin/sh 
geany  /nwp/at1 /nwp/at2 /nwp/at3 /nwp/at4 /nwp/at5 /nwp/at6 /nwp/at7 /nwp/at8 /nwp/at9 /nwp/at10 /nwp/at' > /nwp/ate
echo $'#!/bin/sh 
#/nwp/winswitcher
winswitcher
' > /nwp/ww
echo $'#!/bin/sh 
#!/bin/sh 
xdotool type \'#--------------------------- \'
' > /nwp/c-
echo $'#!/bin/sh 
xdotool type "
echo $\'
(content--script spits out a sample create-file-with-content template)
\' > (path to file)
"
' >  /nwp/cnt
echo $'#!/bin/sh 
tas
' > /nwp/tas
echo $'#!/bin/sh 
tas
' > /nwp/tas
echo $'#!/bin/sh
xdotool key ctrl+9 ctrl+8 Return ctrl+7
' > /nwp/v
 echo $'#!/bin/sh
xdotool type "
#!/bin/sh
xdotool type \'\'
#place desired output between the \' and \'
# use double quotes to get single quotes to show
#name something brief and run with gexec/pexec/a terminal with a convenient shortcut
#or give it its own shortcut key --ati version has info/comments
"
' > /nwp/ati
 echo $'#!/bin/sh
xdotool type "
#!/bin/sh
xdotool type \'\'
"
' > /nwp/atx
chmod 755 /nwp/pre /nwp/xpb /nwp/xpc /nwp/wm /nwp/q1 /nwp/q2 /nwp/q3 /nwp/q4 /nwp/q5 /nwp/q6 /nwp/q7 /nwp/q8 /nwp/q9 /nwp/q10
chmod 755 /nwp/jv /nwp/ate /nwp/ww /nwp/c- /nwp/cnt /nwp/tas /nwp/atx /nwp/ati /nwp/pcp /nwp/v /nwp/leb
#alter the last part of the cp lines to change the name of the new file being created
#fixes some omissions and a mistake in pre script, gives quick call names to some of the shortcuts for single monitors.
#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). 
#q1     q2                    q8                         
#     q5                    q6    q7          
#q3     q4                    q9
#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=835582#835582
#xpc and xpb require xpad 
#the complete pack requires aemenu, dash, wmtrl, xdotool, and the /nwp folder 
#t requires you to pick a terminal if the terminal you have is not sakura.
# some nwp directories may be missing winswitcher:  http://www.murga-linux.com/puppy/viewtopic.php?p=799058#799058
echo $'#!/bin/sh
xdotool type \'\'
#Place desired text output between the single quotes above.
#at -- autotext---place in /nwp or a bin. make a series and activate with at...' > /nwp/at
cd /nwp; for f in at{1..10} ; do cp at $f ; done
chmod 755 /nwp/at1 /nwp/at2 /nwp/at3 /nwp/at4 /nwp/at5 /nwp/at6 /nwp/at7 /nwp/at8 /nwp/at9 /nwp/at10 /nwp/at 
#edit with ate; atx spits out a new autotext template.
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: Select all

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/viewto ... 5582835582
xpc and xpb require xpad
ww requires WinSwitcher: http://www.murga-linux.com/puppy/viewto ... 058#799058
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



---------

set permissions and run as a script or dump the code into a terminal and press enter.

it's not necessarily the pack i'd include as the starter kit, but this is all more or less new to this thread and so won't require as much overwriting as the batch with more forethought would have.

enjoy.
:D

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

updates, some icons, some desktop files, future plans

#33 Post by Puppus Dogfellow »

from the geany as a word processor, etc thread:
Puppus Dogfellow wrote:
Puppus Dogfellow wrote:icons are largely what's in the screenshots from earlier. a few added. substitute as you like either through editing of the desktop files (the icon = bit) or right clicking in rox and chosing file (or dir) > set icon.

icons_for_nwp_pwn_pwp.tar.xz

-----

from the readme:
directions: unpack folder and place in /nwp.

the icons aren't completely finished and may not ever be, but it's a start for you to continue with if you wish.
only the four launchers (five if you include nwp, which is pwn with the cursor set already at the right) have desktop files in /usr/share/applications and will show up on the menus (Categories=Utility;WordProcessor;FileSystem;System;Amusement). the dual launchers are perhaps too numerous, but if you drag the the contents of /nwp/icons/pwp to /usr/share/applications, you'll get all the duals (some without icons) on the Fun menu--adjust as you see fit. "duals" in the main launcher opens the folder for drag and drop opening of files in groups or individually.

here is the new file structure so far. dump the following into a terminal to have it:

mkdir -p /nwp/{archive,quar,docs,file,pets+sfs,etc,nwp,root3,u,icons,tmp,templates,z,01,b,a,001,d,misc,h,dwn,t,}
# new main nwp folder structure

mkdir -p /nwp/file/{archive,mail,scripts,clips,t,clippings,internet,music,ncd,pdf,draw,screenshots,software,libs/{lib32,lib64},spreadsheets,text,tmp,videos,paint,odt,txt,scripts,web,docx,d,docs,html,u,icons,tem,z,w,0,b,a,1,preotry,rtf,misc,etc,h,m,movies,books}
#structure of the file subdirectory

mkdir -p /nwp/root3/{9menusblanks,9m-vtg,userjwm,icons,root30menu,root31menu,root32menu,root33menu,root34menu,root35menu,root36menu,root37menu,root38menu,root39menu,w,geany,rox}
#new structure of the root3 folder (primarily for distros other than these, though it may make it easier to take future changes with you if you switch...work still in progress...)

mkdir -p
/nwp/file/docs/{t,archive,clipart,tmp,Screenshots,PDF,Text,Spreadsheets,Internet,Music,Software,Videos}

^replica of the original puppy documents folder, with the exception of the t folder, which i'm thinking of making templates backup folders of (t shows up in the sub folders a lot, as does h, which i think of as a pseudo home folder, just as d is an easy reach (and blank slate) docs folder, w the word processor folder, and b is for quick links/bookmarks ... all folders have an implied 0-z structure, which would make it easy to get to places or open folders or individual files with the four supplemental launchers.


the n directory in icons contains blank templates for you to copy to the new>templates folder (right click on an icon in rox, new, customize)
l is a back up of the main (non dual) launchers
2 is an empty folder--it was what the pwp (puppy word processor) folder now is. doesn't take up much space so i left it.

update script:

Code: Select all


mkdir -p /nwp/icons/{pwp,pwn}

echo $'
#!/bin/sh
#duals
#open the folder of dual launchers for drag and activate (highlight groups or individual files)
rox /nwp/icons/pwp

#(edit/view simultaneously in text editor and browser windows)
#call with suggested title or rename.
' > /nwp/duals

echo $'
#!/bin/sh
#suggested name is k (or pac, leaving k as 11th custom bookmark when called by roks) 
rox /nwp/
#nwp navigation k series 
#call with suggested title or rename. call series for editing with roks
' > /nwp/k

echo $'
#!/bin/sh
#k1
rox [path]
#nwp navigation k series 
#call with suggested k# or rename. call series for editing with roks
' > /nwp/k1

echo $'
#k2
#!/bin/sh
rox [path]
#nwp navigation k series 
#call with suggested k# or rename. call series for editing with roks
' > /nwp/k2

echo $'
#k3
#!/bin/sh
rox [path]
#nwp navigation k series 
#k4
#call with suggested k# or rename. call series for editing with roks
' > /nwp/k4

echo $'
#!/bin/sh
rox [path]
#nwp navigation k series 
#k5
#call with suggested k# or rename. call series for editing with roks
' > /nwp/k5

echo $'
#!/bin/sh
rox [path]
#nwp navigation k series 
#k6
#call with suggested k# or rename. call series for editing with roks
' > /nwp/k6

echo $'
#!/bin/sh
rox [path]
#nwp navigation  k series  
#k7
#call with suggested k# or rename. call series for editing with roks
' > /nwp/k7

echo $'
#!/bin/sh
#roks
geany /nwp/k0 /nwp/k1 /nwp/k2 /nwp/k3 /nwp/k4 /nwp/k5 /nwp/k6 /nwp/k7 /nwp/k8 /nwp/k9  /nwp/k
#edit k series. swap out [path] with path to directory. files can also be chosen and will be opened by their default handler. you
#may also use multiple directories eg rox /tmp /nwp opens up both at the same time.
' > /nwp/roks

echo $'
#!/bin/sh
rox [path]
#nwp navigation k series 
#k0
#call with suggested k# or rename. call series for editing with roks
' > /nwp/k0

echo $'
#!/bin/sh
rox [path]
#nwp navigation k series 
#k9
#call with suggested k# or rename. call series for editing with roks
' > /nwp/k9

echo $'
#!/bin/sh
rox [path]
#nwp navigation  k series  
#k8
#call with suggested k# or rename. call series for editing with roks
' > /nwp/k8

echo $'
#!/bin/sh
geany /nwp/root3/vtg1 /nwp/root3/vtg2 /nwp/root3/vtg3 /nwp/root3/vtg4
#veg: vgt, nwp, and puup help. the same as alt+g 
' > /nwp/veg

echo $'
#!/bin/sh
geany /nwp/root3/sanc /nwp/root3/san /nwp/root3/mono /nwp/root3/hr /nwp/root3/ser
# geak -- open all the word processor templates in geany for editing or other
#  <Key mask="AS" key="g">exec:geany /nwp/root3/sanc /nwp/root3/san /nwp/root3/mono /nwp/root3/hr /nwp/root3/ser /nwp/root3/scrap /nwp/root3/notes</Key>	
# to jwmrc-personal. or better yet, add <Key mask="AS" key="g">exec:/nwp/geak</Key>--easier to edit, quicker to show its effects.
' > /nwp/geak

echo $'
#!/bin/sh
#page break white (invisible in all browsers but dillo)
xdotool type \'<par style="font-size: 11pt; color:white; page-break-before: always"></par>\'
#pbw
' > /nwp/pbw

echo $'
#!/bin/sh
#page break after, white text (if any). paw.
xdotool type \'<par style="font-size: 11pt; color:white; page-break-after: always"></par>\'
' > /nwp/paw

echo $'
#!/bin/sh
#snc
geany /nwp/sanc
' > /nwp/snc



echo $'

[Desktop Entry]
Encoding=UTF-8
Name=pw,n-l
Icon=/nwp/icons/pwnl.png
Comment=nwp launcher
Exec=/nwp/l-
Terminal=false
Type=Application
GenericName=pw,n-l
Version=1.0
Categories=Utility;WordProcessor;FileSystem;System;Amusement
' > /usr/share/applications/pwnl.desktop


echo $'
[Desktop Entry]
Encoding=UTF-8
Name=pw,n
Icon=/nwp/icons/pwn2.png
Comment=nwp launcher
Exec=/nwp/icons/l/p-
Terminal=false
Type=Application
GenericName=pw,n
Version=1.0
Categories=Utility;WordProcessor;FileSystem;System;Amusement
' > /usr/share/applications/nwp.desktop


echo $'
[Desktop Entry]
Encoding=UTF-8
Name=pw,n
Icon=/nwp/icons/pwn2.png
Comment=nwp launcher
Exec=/nwp/pwn2
Terminal=false
Type=Application
GenericName=pw,n
Version=1.0
Categories=Utility;WordProcessor;FileSystem;System;Amusement
' > /usr/share/applications/pwn.desktop

echo $'
[Desktop Entry]
Encoding=UTF-8
Name=pw,n-r
Icon=/nwp/icons/pwnr.png
Comment=nwp launcher
Exec=/nwp/r-
Terminal=false
Type=Application
GenericName=rox /nwp/
Version=1.0
Categories=Utility;WordProcessor;FileSystem;System;Amusement
' > /usr/share/applications/pwnr.desktop

echo $'
[Desktop Entry]
Encoding=UTF-8
Name=pw,n-g
Icon=/nwp/icons/pwng.png
Comment=nwp launcher
Exec=/nwp/g-
Terminal=false
Type=Application
GenericName=geany /nwp/
Version=1.0
Categories=Utility;WordProcessor;FileSystem;System;Amusement

' > /usr/share/applications/pwng.desktop


cp /usr/share/applications/pwnl.desktop /nwp/icons/pwn/pwnl.desktop
cp /usr/share/applications/pwng.desktop /nwp/icons/pwn/pwng.desktop
cp /usr/share/applications/pwnr.desktop /nwp/icons/pwn/pwnr.desktop
cp /usr/share/applications/pwn.desktop /nwp/icons/pwn/pwn.desktop



echo $'<!DOCTYPE HTML>
<html>
<head>
<title>sanc14</title>

</head>
<body>
<pre>
<span style="font-size: 14pt; color:black; font-weight:regular condensed; font-family: nimbus sans l">

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


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

' > /nwp/sanc

echo $'
#!/bin/sh
xdotool type \'<!DOCTYPE HTML>
<html>
<head>
<title>sanc14</title>

</head>
<body>
<pre>
<span style="font-size: 14pt; color:black; font-weight:regular condensed; font-family: nimbus sans l">

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


</span>
</pre>
</body>
</html>
\'
' > /nwp/sanc1

echo $'
leafpad sanc
' > /nwp/sancl

echo $'
geany sanc
' > /nwp/sancg

cp/nwp/hr /nwp/root3/hr 
cp/nwp/sanc /nwp/root3/sanc 
cp/nwp/mono /nwp/root3/mono 
cp /nwp/san /nwp/root3/san 
cp /nwp/ser /nwp/root3/ser 
#make backups of the templates in /nwp and provide a /nwp/root3 directory for those without:
mkdir -p /nwp/root3
mkdir -p /nwp/icons/l

#get the new launchers on the menus; get the new launchers: 

fixmenus; jwm -reload
echo $'
#!/bin/sh
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
              --title="pw,n-g" --window-icon="gtk-execute" \
              --entry --entry-label="Run command:"  \
              --column="command" --entry-text "geany /nwp/")

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

 

# run the command
$CMDLINE &

exit 0

' > /nwp/g-

echo $'
#!/bin/sh
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
              --title="pw,n-g" --window-icon="gtk-execute" \
              --entry --entry-label="Run command:"  \
              --column="command" --entry-text "leafpad/nwp/")

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

 

# run the command
$CMDLINE &

exit 0

' > /nwp/l-

echo $'
#!/bin/sh
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
              --title="pw,n-g" --window-icon="gtk-execute" \
              --entry --entry-label="Run command:"  \
              --column="command" --entry-text "rox/nwp/")

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

 

# run the command
$CMDLINE &

exit 0

' > /nwp/r-

#new launchers are more for new tree structure (in development)--they're supposed to make it easier to select a given file or folder to edit or open.
#for now, they are all set to highlight their entries--arrow right to enter a file, type to use it as a general launcher.

#!/bin/sh

/nwp/icons/l/pwn| xdotool sleep .2 key Right
' > /nwp/icons/l/p-


includes new k series--roks in the launcher (pwn, pax--the main one) will open them for editing. just enter your path after the "rox " and k1-10 will act as a quick link to your chosen folder.

also includes geak, which loads all the word processor templates from the nwp in geany for you to work with or edit.

also new:

page breaks that default to white (paw, pbw)--invisible in all but dillo but can serve as comments or search anchors.

a new sans nimbus condensed 14 template and sanc1 backup (san1, mono1, san1, and ser1, and hr1 will recreate destroyed temp files and allow you to convert a regular text document to the (html) format of these word processor files. to convert a file, just enter the __1 code and cut the pasted code in half, deleting the "delete this" bit and placing all above it at the beginning of your text and all that follows at the end.


if you want the new launchers on any of the other nine menus, open up /root/.jwmrc, do a search for "pwn," copy the codes for for the launchers (they should all be next to one another), and paste them into /root/root1menu, etc.


if you'd like to add back menu button or dog icon (make the interface more traditionally puppy), you could add

Code: Select all

<TrayButton label="Menu" icon="mini-dog.xpm">exec:/nwp/wm</TrayButton>
to add the master menu menu (includes all the jwm menus, some utility programs, and all the aemenu menus plus whatever else is on the root0 menu).


new shortcuts:

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
____

from here
-------

a little more on the how-to tip, making a batch of .desktop files was really easy and i discovered you don't really need to know any regular expressions to substitute line breaks and the like. i made a folder of scripts, copied the paths to a geany document, then did the usual substitute space for \n so i could space them out. it worked as usual, but i went back and substituted the whole beginning of the .desktop document format (copied from a file in /usr/share/applications) up to the Exec= bit for the leading space and that worked as well. added a unique character sequence to the end, did a substition with that for the rest of the .desktop file, and suddenly the desktop files for thirty or so scripts were nearly complete. surrounded each with

echo $'

' > [path/name]

ran it in a terminal, all appeared where they were supposed to go. anyway, new shortcuts:

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

-----


the modifications to the root3 folder in /nwp are largely for carrying over configuration files from distro to distro and to make the jwm interface of most puppies more like the one from the ~ series--it's not that important in terms of word processing, just in terms of ease of use (i like having more than ten menus to work with, i like carrying my shortcut keys with me, etc. it's still a work in progress).

pwp will likely be replaced by an even more minimalistic version that doesn't require anything other than what puppy traditional comes with--i see it as a pop up or two (leafpad and/or gxmessage) and the clipboard replacing the xdotool scripts--also a work in progress.

the project in final form will likely be nwp for the folder and pw,n for the main launcher, so nwp (nooby word processor/nooby uber utility pack) rather than pwp (puppy word processor/puppy uber utility pack). updates serve as a stop gap or in case there never really ends up being a final release form of the main folder all the mini scripts run from, /nwp.

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

launcher scripts improvement script

#34 Post by Puppus Dogfellow »

Puppus Dogfellow wrote:

in addition to the updated shortcut keys (and a cheat sheet for them), the next /nwp update will also include the following:



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


(some of this is likely already included in the last release of this spin, but i need to update the documentation here and several other places...)
below is an updated launcher install script. will be upping a compressed folder of this and other improvements in the near future, but why wait to enjoy convenience. also, happy first birthday, spin. (i'll support it until it's no longer running on either of the two machine's i've got it on, but i'll continue to support the repo that supports this and other distros well beyond that. right now the goal is to make the changes portable. comments should explain what the launchers do, but basically they allow you to navigate, create, and change permissions on the fly, taking into account three possible starting levels for your files: /root/my-applications/bin, /root/my-documents/bin, and /nwp, which has provisions similar to barry's my-documents and /file folders.




#!/bin/sh


echo $'
#!/bin/sh
/nwp/winswitcher

' > /root/my-applications/bin/ww


echo $'
#!/bin/sh
wmctrl -d; wmctrl -l -G

#get windows and geopmetry info
' > /root/my-applications/bin/wdg
#---------------------------
echo $'
#!/bin/sh
wmctrl -d; wmctrl -l -G
#get windows and geopmetry info-alt

' > /root/my-applications/bin/w11
#---------------------------
echo $'
#!/bin/sh
xdotool key ctrl+9 ctrl+8 Return F2 ctrl+7
#for precise, the F2 wasn't needed.
#script to execute the following string in geany (needs a few tweaks to the keyboard config file or a swap with the key.config file in the word processing and related folder at the pupli repo.
# send line where cursor sits (or what's been highlighted) to the terminal, run it, close the terminal, return to the editing view.
#you may want to put compile and build back (f8 and f9, iirc) if you like geany's built in shortcuts. i messed with those but they have nothing to do with the vtg function.


' > /root/my-applications/bin/v
#---------------------------
echo $'
#!/bin/sh
#name t and place in root/my-applications/bin and/or /nwp
#lxterminal
#roxterm
#urxvt
#sakura
#evilvte
#vte
#lxterminal
rxvt
# launch terminal of your choice with "t"


' > /root/my-applications/bin/t
#---------------------------
echo $'
#!/bin/sh
# name rr
rox /; xdotool key ctrl+b Down Down Right Down
#^one down on the recently visited list


' > /root/my-applications/bin/rr
#---------------------------
echo $'
#!/bin/sh
/nwp/rl
# rox launcher for /nwp. customize--the folder is layed out like an extended my-documents in some respects. it's goal is partially to make your files and customizations more portable and/or keep them out of the save file, save folder, or /root in general. use this, the leafpad version, and the geany version to navigate and create on the fly.

' > /root/my-applications/bin/rl
#---------------------------
echo $'
#!/bin/sh
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
--title="pw,n-rad" --window-icon="gtk-execute" \
--entry --entry-label="Run command:" \
--column="command" --entry-text "rox /root/my-my-documents/")
[ -z "$CMDLINE" ] && exit 0

$CMDLINE &
exit 0
#replace path in --entry-text "" field with target directory
# use launcher to navigate subdirectories (or launch defaults) starting with /root/my-documents/ as the preloaded level.
# nwp version is launched by "rl"

' > /root/my-applications/bin/rad
#---------------------------
echo $'
#!/bin/sh
#replace path in --entry-text "" field with target directory
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
--title="pw,n-rab" --window-icon="gtk-execute" \
--entry --entry-label="Run command:" \
--column="command" --entry-text "rox /root/my-applications/bin/")
[ -z "$CMDLINE" ] && exit 0

$CMDLINE &
exit 0

# use launcher to navigate subdirectories (or launch defaults) starting with /root/my-applications/bin/ as the preloaded level.
# nwp version is launched by "rl"

' > /root/my-applications/bin/rab
#---------------------------
echo $'

#!/bin/sh
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
--title="pw,n" --window-icon="gtk-execute" \
--entry --entry-label="Run command:" \
--column="command" --entry-text "/nwp/")
[ -z "$CMDLINE" ] && exit 0

$CMDLINE &
exit 0
#main (nwp) launcher

' > /root/my-applications/bin/p-
#---------------------------
echo $'

#!/bin/sh
/nwp/p-| xdotool sleep .4s key Right
#main launcher with a .4 second time delay before it sweeps right. adjust for your hardware.

' > /root/my-applications/bin/-p
#---------------------------
echo $'
#!/bin/sh
/nwp/-p| xdotool sleep .3s key Right
#use this to launch the commands and menus in /nwp

#main launcher with a .3 second time delay before it sweeps right. adjust for your hardware.

' > /root/my-applications/bin/p
#---------------------------
echo $'
#!/bin/sh
/nwp/ll
# leafpad launcher for /nwp. customize--the folder is layed out like an extended my-documents in some respects. it's goal is partially to make your files and customizations more portable and/or keep them out of the save file, save folder, or /root in general. use this, the leafpad version, and the geany version to navigate and create on the fly.

' > /root/my-applications/bin/ll
#---------------------------
echo $'
#!/bin/sh
#replace path in --entry-text "" field with target directory
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
--title="pw,n-lad" --window-icon="gtk-execute" \
--entry --entry-label="Run command:" \
--column="command" --entry-text "lad /root/my-documents/")
[ -z "$CMDLINE" ] && exit 0

$CMDLINE &
exit 0
#use launcher to open or create documents with leafpad starting with /root/my-documents/ as the top level

' > /root/my-applications/bin/lad
#---------------------------
echo $'
#!/bin/sh
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
--title="pw,n-lab" --window-icon="gtk-execute" \
--entry --entry-label="Run command:" \
--column="command" --entry-text "leafpad /root/my-applications/bin/")
[ -z "$CMDLINE" ] && exit 0
$CMDLINE &
exit 0
#replace path in --entry-text "" field with target directory
#use launcher to open or create documents or scripts with leafpad starting with /root/my-applications/bin/ as the top level
#nwp version is launched by "ll"

' > /root/my-applications/bin/lab
#---------------------------
echo $'
#!/bin/sh
/nwp/gl
# geany launcher for /nwp. customize--the folder is layed out like an extended my-documents in some respects. it's goal is partially to make your files and customizations more portable and/or keep them out of the save file, save folder, or /root in general. use this, the leafpad version, and the geany version to navigate and create on the fly.

' > /root/my-applications/bin/gl
#---------------------------
echo $'
#!/bin/sh

#replace path in --entry-text "" field with target directory
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
--title="pw,n-gad" --window-icon="gtk-execute" \
--entry --entry-label="Run command:" \
--column="command" --entry-text "geany /root/my-documents/")
[ -z "$CMDLINE" ] && exit 0

$CMDLINE &
exit 0

# use launcher to open or create documents with geany starting with /root/my-documents/ as the top level

' > /root/my-applications/bin/gad
#---------------------------
echo $'
#!/bin/sh
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
--title="pw,n-gab" --window-icon="gtk-execute" \
--entry --entry-label="Run command:" \
--column="command" --entry-text "geany /root/my-applications/bin/")
[ -z "$CMDLINE" ] && exit 0
$CMDLINE &
exit 0
#replace path in --entry-text "" field with target directory
#use launcher to open or create documents or scripts with geany starting with /root/my-applications/bin/ as the top level
# nwp/pwn/puup version is launched by "gl"

' > /root/my-applications/bin/gab
#---------------------------
echo $'
#!/bin/sh
#name f and place in root/my-applications/bin and/or /nwp
findnrun
#grun
#pexec
#pxc
#prun
#gexec

#find and run is far superior at finding built in programs than nearly everything. use "f" in place of tab tab, etc.

' > /root/my-applications/bin/f
#---------------------------
echo $'
#!/bin/sh
#D=$(echo "`wmctrl -d`" | grep "\*" | grep -o "^[0-9]*");R=$(echo -n "`wmctrl -lx`" | awk -F"[ .]+" '{if ($2=='$D' && $3=="ROX-Filer") print $1}');for i in $R;do wmctrl -ic $i;done
#closeallrox
rox -D /
# very convenient

' > /root/my-applications/bin/cr
#---------------------------
echo $'
#!/bin/sh
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
--title="pw,n-chab" --window-icon="gtk-execute" \
--entry --entry-label="Run command:" \
--column="command" --entry-text "chmod 755 /root/my-applications/bin/")
[ -z "$CMDLINE" ] && exit 0

$CMDLINE &
exit 0
#replace path in --entry-text "" field with target directory
#set permissions in /root/my-applications/bin/ so program can run
# the nwp version is launched by ch.

' > /root/my-applications/bin/chab
#---------------------------
echo $'
#!/bin/sh
/nwp/ch-| xdotool sleep .3s key Right
# change permissions of scripts in /nwp

' > /root/my-applications/bin/ch


chmod 755 /root/my-applications/bin/ch /root/my-applications/bin/chab /root/my-applications/bin/cr /root/my-applications/bin/f /root/my-applications/bin/gab /root/my-applications/bin/gad /root/my-applications/bin/gl /root/my-applications/bin/lab /root/my-applications/bin/lad /root/my-applications/bin/ll /root/my-applications/bin/p /root/my-applications/bin/-p /root/my-applications/bin/p- /root/my-applications/bin/rab /root/my-applications/bin/rad /root/my-applications/bin/rl /root/my-applications/bin/rr /root/my-applications/bin/t /root/my-applications/bin/v /root/my-applications/bin/w11 /root/my-applications/bin/wdg /root/my-applications/bin/ww


with this, a regular launcher can navigate through the eyes/capabilities of rox, leafpad, or geany by accessing a few scripts moved in /root/my-applications/bin. it also allows access to all the /nwp functions. new launcher functions:

rad
rab
gad
gab
lad
lab
chab


r = rox prefix
ad = starting level is /root/my-documents
ab = starting level is /root/my-applications/bin
ch = chmod 755 (allow script to run) prefix
l = leafpad prefix
g = launcher starts with geany as its prefix.

nwp/file is the my-documents equivalent in that location, which is launched by the prefix and l for launcher, i.e. gl, rl, ll. permissions is a lone "ch." add a dash if you want the pre-highlighted version instead (pertains only to nwp versions--the others are mostly pre-highlighted when you launch them).[/quote]

am also in the process of trying to get the cheat sheet on the previous page (or so) in order...

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

here's the update in .gz and .xz compressed folder form

#35 Post by Puppus Dogfellow »

it's grown...probably better to decompress from / as the transfer takes a couple of minutes or so.

NWP-11-15-1.tar.xz and NWP-11-15-1.tar.gz


pick the xz or gz. folder contains updated nwp folder, instructions, the launchers, the cheat sheet (or launch codes), and links for the dependencies and recommended programs. (next version will likely contain the pets themselves).

links from the dependency file/an example of one of the dependency files:
wmctrl
aemenu
xdotool

(use the 64 bit versions linked below)
_________
see recommended pets for programs some of the terminal shortcuts call and which would otherwise not work without their having been installed.

next version of this will have the dependencies and helper programs bundled with them. shouldn't add much more to the 650 kb compressed folder (which, somewhat unfortunately, decompresses to about 23 mb).

here are links to xdotool:
xdotool-2.20110530.1-3.pet

xdotool-2.20110530.1-3.1.2.x86_64.rpm


here are links to wmctrl:

wmctrl-1.07-x86_64-1.pet

wmctrl-1.07-6_i386.pet

here are the links to aemenu:

aemenu-1.2.12.pet

aemenufor64bit.tar.xz
(unpack and place in /root/my-applications/bin/)



tested in quirky 7.2-64 and precise 5.7.1, 5.7.2, and 5.5

p. dogfellow 10/31/15

contents of the How To Proceed file:

1. move the contents of the "move_contents_to_root_my_apps_bin" folder to /root/my-applications/bin.
2. move the /nwp folder over to / (top level)
3. if you're missing the dependencies, install the appropriate ones (32 or 64 bit).
4. make a shortcut key for the p launcher using rox or your windows manager.
5. install any recommended pets or scripts.
6. check out the cheat sheet (leafpad "/nwp/nwp and launcher commands" or geany "/nwp/nwp and launcher commands" for the commands and the support/"support" threads:


repo (grab deps and helper programs)

jwm (mostly relevant to next version)

geany/vtg

nwp

distro that uses the above

_______


post that contains most of the terminal and launcher shortcuts




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

fwiw, it took about ten attempts to get this post to show. never had that happen on this forum before--tried with both chrome and ff. preview was consistently missing--i think it had something to do with hyperlinks--i fiddled with them and the post showed, but there was nothing actually wrong with them. nothing that's presented a problem in the past anyway.

:?:

Post Reply