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

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
User avatar
OvrMaHd
Posts: 14
Joined: Fri 10 Nov 2017, 05:07

#91 Post by OvrMaHd »

Pelo
Location: Mer méditerrannée (1 kms°)

PostPosted: Wed 13 Sep 2017, 05:27 Post subject: NWP is what i need. Reply with quote
amigo wrote:
Where does word processing come into this?

It's not the final version Users will wait a little bit . I am so in need of typing , texlive, kingsoft, libre-office, abiword, are not enough.
'i can't get satisfation !' NWP is what i need.
This thread is a hoot! It's a YouTube fact that when option choices in software approaches 10 percent of your number of neurons you have achieved Nyquist limit - oh-yah

[/code][/list]

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

fix for quirky xenial 8.5

#92 Post by Puppus Dogfellow »

Code: Select all

echo $'
<JWM>

<Tray  autohide="true" insert="right" x="302" y="1" border="1" height="28" valign="top" >
<TrayButton icon="c.machue-207.jpg">exec:xdotool key ctrl+9 ctrl+8 Return F2 ctrl+7</TrayButton>

<TrayButton popup="Show Desktop" icon="mini-desktop12.xpm">showdesktop</TrayButton>

<TrayButton icon="/nwp/keys/icons/rootm-def/pr6.xpm">root:6</TrayButton>
<TrayButton icon="/nwp/keys/icons/rootm-def/pr7.xpm">root:7</TrayButton>
<TrayButton icon="/nwp/keys/icons/rootm-def/pr8.xpm">root:8</TrayButton>
<TrayButton icon="/nwp/keys/icons/rootm-def/pr9.xpm">root:9</TrayButton>
<TrayButton icon="/nwp/keys/icons/rootm-def/pr0.xpm">root:0</TrayButton>
<Dock/> 

<TrayButton label="" icon="ws.png" border="true">exec:/nwp/ww</TrayButton>

<!--<TrayButton popup="pmount" icon="mini-hdisk.xpm">exec:pmount</TrayButton> -->
<TrayButton popup="partview" icon="mini-hdisk.xpm">exec:partview</TrayButton>
<TrayButton popup="pmount"  icon="mini-hdisk.xpm">exec:pmount</TrayButton> 	
<!--<Pager/> -->


<TrayButton label="" icon="cr2.png" border="true">exec:/nwp/cr</TrayButton>


<!--label="vtg"  -->
<TrayButton label="" icon="cc.png" border="true">exec:/nwp/ccdi</TrayButton>
<TrayButton label="" icon="ca.png" border="true">exec:/nwp/cadi</TrayButton>
<Clock format="%l:%M %p">PupClockset</Clock>

</Tray>


<!-- you can take the  icon="mini-dog.xpm" bit and make copies, flipped or inverted or rotated, and use that in place of the numbers. would also get some of the original puppy imagery back on the desktop.... just go to /root/puppy-reference/mini-icons, open the dog or one like it in mtpaint, rotate, rename, substitute. you could also make the menu buttons pretty much any image you like...  -->
</JWM>
' > /nwp/root3/9/topright
/nwp/jio
Quirky Xenial64 8.5 uses an older JWM syntax than i was expecting, and it didn't have the same icon for partview i'd been counting on, so this overwrites the file that calls the non-existent tray icon (which stretched out the tray) and resets the jwm config files' syntax to the old version (shrinks the top tray back to a normal size and gets the top and side tray to autohide again).

(and yes, it's still got the unfortunate holdover name of "topright" despite being center left if anything).

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

bbwp updated as bwp

#93 Post by Puppus Dogfellow »

no change to any of the keyboard configuration sets, but the browser word processor itself gets templates and help/paste-formatting files that waste less screen space (pdf download/print preview (content is scalable) is unaffected by working settings). from the vtg thread:
(
subject: bwp 1.3: some new backup and formatting shortcuts,
Subject description: better use of screen real estate, and a mini version of the duals folder from the nwp
)
Puppus Dogfellow wrote:bwp1.3.pet upped.


if you're working in the default templates and styles/info/scrap sheets, run

Code: Select all

mkdir -p /file/wp/
cp -au /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/
or something similar before upgrading so your stuff doesn't get overwritten (it'll be in /file/wp as described below. change the locations to suit your preferences--code is also the new ark and arc nwp shortcuts (ll (or gl, since this is after all the geany thread version of all this) in main (p) launcher followed by the name of the file to quickly edit it after installation in full nwp installs).

more from that Styles,Scrap2/bwp help and info file:
[...]
5/1

will probably have 1.3 up by the morning (unless the mcc version ends up getting merged into it). here's the new pinstall script so far:

Code: Select all

#!/bin/sh
#bwp, a version of bbwp, a fragment of anuupus...
#right click templates for spell check and no spell check were backwards last time.
#updated version gives support for more fonts, colors, and paragraph alignment (through styles,scrap2; see the other styles sheet for credits and links. in short, you edit in a browser tab and save through your browser's file (html) and print (pdf) menus. bookmark individual files or folders as tabs or groups thereof. use the vtg and geany as additional means of launching or backing up your work. copy in formatting from the styles tabs to the spellcheck/no spellcheck blanks. default is left aligned serif.
cp -f /root/my-applications/bbwp/html/bbwp-2-nospchk /root/.config/rox.sourceforge.net/Templates/bwp-2-nospchk
cp -f /root/my-applications/bbwp/html/bbwp-1-spchk /root/.config/rox.sourceforge.net/Templates/bwp-1-spchk
cp -f /root/my-applications/bbwp/html/Styles,Scrap2.html /root/.config/rox.sourceforge.net/Templates/bwp-3-Styles,Scrap2.html
cp -fRu /root/my-applications/bbwp/html /root/.config/rox.sourceforge.net/Templates/bwp-0
#since i never made a /nwp/wp specific launcher, it makes more sense to call the codes from /nwp itself:
cp -f /root/my-applications/bin/bbch /nwp/bbch
echo $'
#!/bin/sh
defaultbrowser /nwp/bbwp/html/bbwp-1-spchk /nwp/bbwp/html/Styles,Scrap2.html /nwp/bbwp/html/bbwp-2-nospchk /nwp/bbwp/html/box1 /nwp/bbwp/html/Untitled2 /nwp/bbwp/html/Untitled1 /nwp/bbwp/html/Styles

' > /nwp/bbwp
chmod 755 /nwp/bbwp
#run line below to have the nwp call bbdef from my/apps-bin
#cp -f /root/my-applications/bin/bbdef /nwp/bbdef
cp -f /root/my-applications/bin/bbfir /nwp/bbfir
cp -f /root/my-applications/bin/bbg /nwp/bbg
cp -f /root/my-applications/bin/bb-iron /nwp/bb-iron
cp -f /root/my-applications/bin/bbpm /nwp/bbpm
cp -f /root/my-applications/bin/bbwpe /nwp/bbwpe
cp -f /root/my-applications/bin/bbwpr /nwp/bbwpr
cp -f /root/my-applications/bin/dil2 /nwp/dil2
#add html folder to nwp/wp/bbwp---it's just missing the launchers (menu items call to ~/my-apps/bin)
#mkdir -p /nwp/wp/bbwp/
cp -fRu /root/my-applications/bbwp/html /nwp/wp/bbwp/
cp -fRu /root/my-applications/bbwp/html /usr/local/bwp/

#[...]the codes above (without the path) would work in either terminal or nwp/pwn launcher. you can also copy the desktop files and replace your default browser with a supplemental (possibly with its own sessions and folders of bookmarks to work with apart from your main bwp/bbwp setup).
#to activate in document (vtg/full nwp versions), place cursor at
#makepet path/to/document
#(give it a separate line, possibly with a mv line to save your backups elsewhere).
echo $'
#!/bin/sh
exec makepet "$@"
' > /root/.config/rox.sourceforge.net/Templates/drag2makepet
chmod 755 /root/.config/rox.sourceforge.net/Templates/drag2makepet
#dragging a folder to the makepet script is a convenient way to make a quick archive/backup of it. if you're using the pet function for archiving, rename (and/or relocate) as you go because each new pet will overwrite the older one.
#also in the last version, but since this update should work as a standalone word processor, i included it so as not to offer an unnecessarily limited version.

#1.2 to 1.3 adds the following and makes better use of screen real estate (smaller margins and less padding. return line width to 60 and padding to 4 for the older look, something in between for something in between).

#arc and ark are backup utilities for the default folders and identical. modify one or both. run before each new bwp, bbwp, or mmcwp upgrade.
echo $'#!/bin/sh
mkdir -p /file/wp/
cp -au /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/
' > /nwp/ark
chmod 755 /nwp/ark
echo $'#!/bin/sh
mkdir -p /file/wp/
cp -au /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/
' > /nwp/ark
chmod 755 /nwp/arc
#launcher shortcuts for tab, en, em, and non breaking space
#when in text editor mode (faster saving is one benefit), entering line breaks, tab spaces, and blank space in general is non-intuitive. here are some launcher shortcuts to try and make up for that:
echo $'#!/bin/sh
xdotool type "&nbsp;&nbsp;&nbsp;&nbsp;"
' > /nwp/tab
chmod 755 /nwp/tab
echo $'#!/bin/sh
xdotool type " &nbsp;"
' > /nwp/spc
chmod 755 /nwp/spc
echo $'#!/bin/sh
xdotool type "&emsp;"
' > /nwp/em
chmod 755 /nwp/em
echo $'#!/bin/sh
xdotool type "&ensp;"
' > /nwp/en
chmod 755 /nwp/en
echo $'#!/bin/sh
xdotool type "<br>"
' > /nwp/br
chmod 755 /nwp/br
#repair broken horizontal rule shortcut. paw and pbw (to force page breaks (after and before) are also useful in text editor mode (but don't need repair--just mentioning them as a tip)).
echo $'
#!/bin/sh
xdotool type \'<hr size="2" align="left" width="60%" color="grey">\'
' > /nwp/hrl
chmod 755 /nwp/hrl
#to do: add a version of the dual launchers folder for an mcc version of the upgrade
#(though it's already an upgrade of the word processor offered in that thread). run
#mkdir -p /file/wp/
#cp -au /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/
#first if you've been working in the files but haven't been renaming them.
#additional info: the same print window you use to download your work as pdf can also scale it,
#so using the default size plus the heading (h1-h5) tags rather than the font size choices to set relative text size may make more sense (it would also reduce the overall size of the package considerably).
#the wider editing view set in the browser window doesn't affect the print preview display--if you like post its and other files in the margins, set the line width to something even less than 60 ("column view").
fixmenus
jwm -reload
change in shade for the new stuff. as the comments say, run

Code: Select all

mkdir -p /file/wp/
cp -au /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/
#first if you've been working in the files but haven't been renaming them
(that's both arc and ark--two new (customizable) nwp launch codes (talking full nwp installs; after installation, gl or ll in the launcher and then either ark or arc in the next launcher (geany or leafpad) and you can edit the paths or set others for easy backups (a good place to add a "cp -au /file/wp /path/and/folder/you/pick #(use the mkdir -p command if it doesn't already exist)" as mentioned earlier.


the "duals" mentioned is just a folder of drag-to scripts for opening the bwp's (and earlier versions') files (individually or in batches) in a browser and text editor simultaneously. seems to fit with the drag to copy and drag to pet scripts it already has. anyway, it's just a dozen or so variations on:

Code: Select all

#!/bin/sh
exec defaulttexteditor "$@"| exec defaultbrowser "$@"
the four possible variations for text editor part were the above, geany, geany -i, and leafpad. did a bunch of substitution in geany with the cnt code (

Code: Select all

echo $'
(content--script spits out a sample create-file-with-content template)
' > (path to file)
(see above for the fixed broken hrl tag version--it'll show you what to do if your 'content' has the symbols (& ') the code needs to use as the beginning and end of what you want it to make. if only single quotes (an apostrophe), use doubles (real quotes), or use backslashes any time you need to show a (ex:) \& or \' in what gets printed out to > .../(filename)

(i think you may need to \ \'s, but i'm not sure; it may be just a character without something to "escape.")(look up "escaping characters" for more).(in a search engine, not here).

...

and ended with with what appears to be about three dozen (i luckily have little
memory of doing it). as you can see, i gave the desktop files (never got through with making icons for all of them) the same cryptic names as the launcher shortcuts they also point to.
anything with a gi is going to have a new instance of geany launched. same for anything that's got a "geani" in it. defaults x2 is "def" in the launcher (you can drag the files to the running programs instead of the scripts), which is also you'd name them for vtg use. see the shortcuts list in any of the linked threads for more of that sort of stuff.

….seems i ranted myself away from some continuity regarding the screenshot below…

(newer version of the pinstall for 1.3 will add something like:

Code: Select all


#for now i'll just put copies of the drag2pet script and 2 of the
#simultaneous browser-text editor launch scripts in the bwp/bbwp and mcc folders (nwp and /root/my-apps)
#drag either gip or def to the make copies scripts to make a set of templates
#to fit your apps and preferences
echo $'#!/bin/sh
exec defaulttexteditor "$@"| exec defaultbrowser "$@"
' > /root/my-applications/bin/def
chmod 755 /root/my-applications/bin/def
cp -f /root/my-applications/bin/def /nwp/mc/mcc/def
cp -f /root/my-applications/bin/def /root/my-applications/mc/mcc/def
cp -f /root/my-applications/bin/def /root/my-applications/bbwp/html/def
echo $'#!/bin/sh
exec geany -i "$@"| exec palemoon "$@"
' > /root/my-applications/bin/gip
chmod 755 /root/my-applications/bin/gip
cp -f /root/.config/rox.sourceforge.net/Templates/drag2makepet /root/my-applications/mc/mcc/drag2makepet
cp -f /root/my-applications/bin/gip /nwp/mc/mcc/gip
cp -f /root/my-applications/bin/gip /root/my-applications/mc/mcc/gip
cp -f /root/my-applications/bin/gip /root/my-applications/bbwp/html/gip
cp -f /root/.config/rox.sourceforge.net/Templates/drag2makepet /nwp/mc/mcc/drag2makepet

here's that pic i mentioned:
[...]

here's the contents of that "to decryptify.." file:

one of the drawback to the quick launch codes is that sometimes they're a bit too cryptic to be of use.
here's what the things in the folder open:
(geany with an i indicates it will open a new instance of geany if there's already an instance (or more) running. leaf is leafpad. g by itself is geany. l by itself indicates leafpad is the text editor part of the dual launch. p is pale moon. ff is firefox. c is chromium (ll in leafpad if you're using chrome and you want to give it rather than chromium the quicker launch call.)

defaultsx2.desktop -- opens your default text editor and your default browser
geany-opera.desktop
leaf-dillo.desktop -- dillo leafpad
dlll.desktop -- dillo leafpad
ged.desktop -- geany dillo
leaf-slimjet.desktop -- leafpad slimjet
gc.desktop -- geany chromium
gep.desktop -- geany palemoon
leafy.desktop -- leafpad, seamonkey
geani-chrome.desktop -- chrome, geany new instance
ges.desktop -- geany seamonkey
lec.desktop -- leafpad chromium
geanifirefox.desktop -- geany new instance firefox
gib.desktop -- [seems as though i never actually made the file this one directs you to]
lep.desktop -- leafpad palemoon
geani-opera.desktop -- geany new instance
gic.desktop -- geany new instance
lff.desktop -- leafpad firefox
geany-chrome.desktop -- geany chrome
gid.desktop -- geany new instance
lop.desktop -- leafpad opera
geanydefbrowser.desktop -- geany default browser
gip.desktop -- geany new instance

geany-firefox.desktop -- geany firefox
gis.desktop -- geany new instance seamonkey
txt-ed-ff.desktop -- default text editor firefox
geany-jet.desktop -- geany slimjet
leaf-chrome.desktop -- leafpad google chrome

(still a little cross referencing to do, but this should make it easier (though not every browser listed (i.e. dillo, older operas, …) may be able to use the content editable code the browser view hinges upon.



some new launcher codes:

arc -- backup bwp
ark -- backup bwp (dup)
em -- type out html emspace
en -- type out html en space
tab -- type out html tab space
spc -- type out non breaking space (in text editor mode, html removes breaks and spaces you don't explicitly tag.)
br -- type out line break tags <br>

^(until you remember to remember it at least; <p> tags ("paragraph") are less reliable for this (as the name perhaps suggests. seems to work sometimes though).



if you don't have the nwp and the launch code cheat sheet it provides, and you want the benefits of the text editor's quick saves and text manipulation tools, you could always make a cheat sheet directly on the page and sandwich it with

Code: Select all


<!--  -->

(put all the tags and crib notes between arrows like that (cmt in the launcher) and you'll have something that only shows up in text editor view--neither the browser tab nor the print preview/output/pdf file show that as part of your content).

...

bwp1.3.pet now up. it's up to 23k (240 installed, most of it the original styles sheet copied three times).

contents/ingredients (tree -h):

├── [ 89] pet.specs
├── [6.7K] pinstall.sh
├── [ 80] root
│ ├── [ 80] my-applications
│ │ ├── [ 60] bbwp
│ │ │ └── [ 200] html
│ │ │ ├── [ 589] bbwp-1-spchk
│ │ │ ├── [ 578] bbwp-2-nospchk
│ │ │ ├── [ 11K] box1
│ │ │ ├── [ 11K] box2.html
│ │ │ ├── [ 82K] Styles
│ │ │ ├── [ 37K] Styles,Scrap2.html
│ │ │ ├── [ 586] Untitled1
│ │ │ └── [ 582] Untitled2
│ │ └── [ 240] bin
│ │ ├── [ 366] bbch
│ │ ├── [ 371] bbdef
│ │ ├── [ 364] bbfir
│ │ ├── [ 370] bbg
│ │ ├── [ 361] bb-iron
│ │ ├── [ 364] bbpm
│ │ ├── [ 394] bbwpe
│ │ ├── [ 85] bbwpr
│ │ ├── [ 372] bwp
│ │ └── [ 244] dil2
│ └── [ 60] puppy-reference
│ └── [ 40] mini-icons
└── [ 60] usr
└── [ 60] share
└── [ 160] applications
├── [ 313] bbwp-conf2.desktop
├── [ 327] bbwp-conf.desktop
├── [ 279] bbwp-def2.desktop
├── [ 294] bbwp-def.desktop
├── [ 284] bbwp-geani.desktop
└── [ 276] bwp.desktop

10 directories, 26 files

conf2.desktop opens the folders containing the templates, which should help with dragging and dropping onto the dual launchers in bwp, mcc, nwp-wp, etc. (those folders are also the default location ark and arc look to backup).




if you're using the text editor to brainstorm and the browser view to add formatting (font faces and line breaks), make sure to hit refresh on the right windows and in the right order or you may end up overwriting some of your changes with some of your other changes (a second browser's window (separate program--bwp doesn't use much resources) with unrefreshed stages could help. alternately, doing something like \n for <br> in the search and replace boxes (with Use regular expressions ticked) will swap out all your natural line breaks for ones that will show in your pdf and in the browser view that more or less is the one that counts (you could send the pdf, the text file, or the html (i.e that same text file but understood by the machines to be opened in a browser tab), but only two are really comfortably readable for most people). if you want the views between the programs to be more consistent, you could instead substitute the line breaks for line breaks plus the break tag: \n for \n<br>
if the new browser view is too wide, adjust the line width back to 60 or whatever suits your preferences and habits best (you can view it as a thin column in between stacks of post it notes and the pdf/browser/ultimate layout isn't affected).

careful with the browser refreshes and geany reloads and the order you do them; a careless browser refresh can wipe out a lot of work, though backup views in other tabs, windows, or browsers (or geany windows for that matter) may add additional safeguards.

as always, enjoy, have fun, report problems.

--pd

____

after further consideration, i think the br substitution deal discussed above is a bit dopey (though perhaps useful in other scenarios). since pasting your natural (typed rather than coded) tab spaces, non breaking spaces, and line breaks from from a plain text file works with those empty spaces preserved, there's really no reason to fiddle with the matter in geany view. said another way, for brainstorming, plain text files (leafpad or geany) pasted into a master document of sorts (one of your browser view versions or templates) may make more sense and save time in the long run (and also produce more readable rough/text editor mode drafts); the browser window can handle the formatting more intuitively, the text windows save quicker and have better text manipulation tools available, and if you've already got the nwp or mcc pet installed, there's now makepet backup capability coming from the mcc drag to make copies folder, which can now also dual launch your template files (and you can deposit a bunch of those templates there or anywhere else on your system with a right click if you're using rox).

the earlier post has some background and discusses the vtg, batch launches, and the first sets of improvements. from
PostPosted: Sat 28 Apr 2018, 04:47 Post subject: 19k mini word processor that uses the vtg as a start center
Subject description: and for backups; big improvement over earlier version (puup):
Puppus Dogfellow wrote:bwp1.2.pet

earlier in the thread (http://murga-linux.com/puppy/viewtopic. ... 364#860364) i go on about geany as a word processor, or at least start to make an issue of it. here's a version that's actually good enough to use (though in the end, most of your editing may end up being done in your browser windows, and the organization through your browsers' bookmarks).

see
Styles,Scrap2/bwp help and info,
[...] an update to the bbwp/mcc-wp mini word processor, and another update of the mini word processor for more, but to possibly save you a click or two, or at least show you a somewhat practical use for the thing, here's most of the second half (the more vtg-heavy half) of that help file (same as spin update post above):
Puppus Dogfellow wrote:bwp1.2.pet

more color, font, and special character options, more support (documentation) for the vtg (backups, launching variations of sets with multiple browsers, general review), and now you can launch the templates from the styles or box tabs. the Styles,Scrap2/bwp help and info in the vtg folder mentioned a post up attempts to explain the changes and how to further customize and use the bwp.

from Part Two of Styles,Scrap2/bwp help and info
[...]__

added some special characters to the original styles sheet:

______________
this may be the legacy styles sheet, but it's as good a place as any to offer more special characters for your copy and pasting enjoyment or needs:

[...]
___
yet another source:
https://www.copypastecharacter.com/all-characters
(april update introduces colors and additional formatting options, as well as allowing for a reduced initial launch (bwp regulates some of it to the "box" files)).


and here's the newer pinstall.sh:

#!/bin/sh
#bwp, a version of bbwp, a fragment of anuupus...
#right click templates for spell check and no spell check were backwards last time.
#updated version gives support for more fonts, colors, and paragraph alignment (through styles,scrap2; see the other styles sheet for credits and links. in short, you edit in a browser tab and save through your browser's file (html) and print (pdf) menus. bookmark individual files or folders as tabs or groups thereof. use the vtg and geany as additional means of launching or backing up your work. copy in formatting from the styles tabs to the spellcheck/no spellcheck blanks. default is left aligned serif.

[...]


--

most of the changes come from the box files/tabs, which now allow you to launch the templates from startup links (not all the links carry over with the copy-paste; the text box and upload functions unsurprisingly don't work from this document:

[...]


use the styles templates to grab (select or copy) formatting (colors, font, paragraph, etc) to paste
(ctrl+v) or middle click into your working document. copy the u, i, and b from the underline, bold, and
italics bits to have them available from the clipboard (less moving about between tabs to format your
document--those shortcuts vary by clipboard, but the cut, copy, paste, redo and undo all work as expected).
download your working template/s as html, open and bookmark it/them, and use the print menu to save your work as pdf.

thanks to http://https://thiscouldbebetter.wordpr ... javascrip/
for this page's download box, and thanks to this pcworld article for the editable tab code (data:text/html, <html contenteditable>)
the whole thing depends upon. (paste it (without the parentheses) into the address bar of your browser for a wider page view.


______
some of my related projects and threads down at what i find to be a friendly and helpful forum, http://murga-linux.com/puppy/index.php:

[...]

____

that's pretty much it. vtg'ing the launches through a start center (browserofchoice /paths/to/files as sessions) may be easier and allow more control in the long run.

p. dogfellow, 4/19/18

***

Part 3:

_ to 1--cleanup.
1 to 1.1 cleanup.

bwp1.1.pet

19k

(think it's okay. only thing to add, which would be separate (so part three may as well've read epilogue), would be a vtg launch sheet of some kind (easier and faster to use and customize than a window manager menu or a browser interface)).


_____


sample vtg entries (alt+z or click the cauliflower)(not part of base bwp, but you can always dump the codes you hone into a terminal if you haven't installed the full nwp)

geany /path/to/file /path/toooo/file (etc)

leafpad /file/6| leafpad /file/7| leafpad /file/8| leafpad /file/9| leafpad /file/10

geany -i /path/to/file /path/toooo/file (etc)

defaultbrowser /root/my-applications/bbwp/html/bbwp-1-spchk /root/my-applications/bbwp/html

rox /your/stuff_that's_here/ /and/there /etc/stuff

(copy and paste as templates and substitute your files and their locations; rearrange combinations, swap in other browsers (most will take the above syntax it seems. leafpad has to be asked as above rather than the more convenient way rox and geany can carry it out (you can grab your files by selecting them physically then pasting their highlight into a text document--instant batch launch for most everything except leafpad)...

anyway, like i said, apart from the basically separate issue vtg stuff (if it were part of the pinstall i'd just've noted the dual use in the comments), bwp1.1 is done and contains its own help file (the bulk of its size and also the way it handles your formatting choices).

bbwpe gives a sample of all the bwp's files set up for easy copy, paste, or launching:


#!/bin/sh
geany -i /root/my-applications/bbwp/html/Styles,Scrap2.html /root/my-applications/bbwp//html/box1 /root/my-applications/bbwp/html/Untitled2 /root/my-applications/bbwp/html/Untitled1 /root/my-applications/bbwp/html/Styles /root/my-applications/bbwp/html/bbwp-1-spchk /root/my-applications/bbwp/html/bbwp-2-nospchk /root/my-applications/bbwp/html/box2.html /root/my-applications/bin/bwp

___

puppus dogfellow, 4/23/18

(gave a makeshift vtg launch sheet a shot)

----

4/27

upped 1.2. (insert tab support, more readable box content (box1 and 2 are both the same, and the old styles sheet grew from 17 to 82k, but the pet is still 19k). here's the description and the older folder's version of this file:

bwp to 1.1 cleaned mostly broken or misguided links. for the upcoming 1.2 box 1 and 2 are improved but identical (and so even more redundant (experiment with no fear!) given the copies that get made in usr/local and the nwp/wp (and the templates folder, now that i think of it--it's also just occurred to me i may not have mentioned the right click function version of the process in these pages--just right click it into existence, drag that file (or folder, if you chose the whole bwp-0 directory) to a browser, and you can run it from wherever you like, using the templates mostly for scrap (reload rather than save and you can start over til you get the hang of grabbing it the right way).

(i'm still kind of surprised it works this well).

vtg sheet will have backup functions via rsync -au and or cp -au (not that i know what the difference between au and a is--they both seem to work at least as well as cp -fRu, and update metadata better--not much experience or knowledge in this regard (and many others), but was using cp --fRu to update the nwp before i learned how to make pets. i think rsync is newer and cp is an ancient unix built-in that comes as a given with every kernel (which in my newbie state i take as the core of a current linux, with everything else on top being how developers make it usable for people who aren't developers) (and sometimes for those who are). you may not have rsync, but you probably do and it may be better. it's designed for networks, but
cp --help > /tmp/cph; geany /tmp/cph
rsync --help > /tmp/rsynch; geany /tmp/rsync
will give a sheet you can play around with as you learn more
(more vtg issue stuff, but you can always work out what you want from the help file and, once settled on the right code, dump it into the terminal for basically the same experience.)

...

so a little rambling to say i've updated the box scripts in the html folder (everything's got a newer date but i believe that's all i changed since the last upload).


___
bwp files, but google drive can't display the html the same way ibiblio (for example) does (or appears to to me).

might be easier to just install or extract the pet for a peek.

main change over bwp0 is the ability to call the templates from box tab itself.

more special characters and external links added (related projects).

___

p.dogfellow, 4/26

(original styles sheet updated to include variations on some of the formatting options in styles2 and some additional (mostly latin diacritic stuff) special characters) (also a really good link for that). it's in the online help folder as large,optional(82k), but it'll be the main version of the old styles/help/scrap sheet and the 17k version will be here for you to swap in if you like (backup code coming for the vtg will have something in it to automate this).

pd



pet is 19k under the same compression i used before.

(now up)



, which i'll now link back to here and try to remember is defunct.

***

________

vtg stuff:


1. basic backups

change the /file/wp bit at the end of each line to a place on your system you'd like for the backups. this will make the copies at usr/local/bwp the bwp folder, the html folder is your stuff launched from /root/my-applications/bbwp, and your bbwp folder from nwp comes over with that name. this backup is on the same partition as the other stuff (unless you've symlinked up your system otherwise), so a safer place may be another drive entirely (for which you could also do cp -a /file/wp /path/and/folder/you/pick (use the mkdir -p command if it doesn't already exist).

mkdir -p /file/wp/
cp -au /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/

make versions of line above to use your start center to also run backups. similar to the [program] --help >/tmp/progh; geany /tmp/progh type command discussed earlier for cp and rsync, you can use it for tar, which may be a better vtg way of doing backups than makepet, which will force you to use the message window to complete the action (better/quicker to use the right click drag2pet for that, but the bit below below starts the process. use ctrl+7 to toggle in and out of the message window (terminal tab if you're doing it through the menus) to name or otherwise label your pet (you can just hit enter for all the questions and each new archive will overwrite the last. otherwise name them through the popup and window to preserve earlier versions)).
makepet /root/my-applications/bbwp/html/
makepet /nwp/wp/bbwp/
makepet /usr/local/bwp/

right clicking to make a template in a given location will give you access to the drag-to version of makepet. it'll pop open the same little gui (in this capacity, it's something to help you label the pets(backups) of the directories in your archives).

substitute the copy (cp -a) command for a file manager (in puppy, typically rox), and you can open the folders you're copying and fine tune a launch protocol with that:

rox /root/my-applications/bbwp/html /usr/local/bwp/ /nwp/wp/bbwp/ /file/wp/

if you select some of the files from the folders that opened and then middle click into a text editor with a mouse, you get something like these results for the bwp folder in /usr/local:

/usr/local/bwp/bbwp-1-spchk /usr/local/bwp/bbwp-2-nospchk /usr/local/bwp/box1 /usr/local/bwp/box2.html /usr/local/bwp/Styles /usr/local/bwp/Styles,Scrap2.html /usr/local/bwp/Untitled1 /usr/local/bwp/Untitled2

just add a launcher (browser or text editor) and a space before the list. add other files' whole paths to the list (separating each you add by a space--there's no limit, but you may want to divide your files and folders into more manageable (and possibly redundant (for convenience's sake, of course) chunks), and you've got a start center line. place the cursor, click the cauliflower, and your choices will launch. launch with more than one browser to keep versions of a live document available as you work on it. set up how you'll ultimately like your sessions ("bookmark all tabs" in most browsers) to be saved--it's much quicker than doing it one by one through the file-open dialog.

(snuck in 2 and 3, basic start center and vtg as an organizational tool)

-------

NB: backup your stuff before installing any updates. most of this assumes a bbwp in the nwp folder (ignore this for non nwp installations, and ignore the vtg stuff for not vtg installations (though the former becomes a lesson on how to modify the box templates for your own stuff and the the latter is still relevant as "dump your stuff into the terminal instead of striking the cauliflower." (vtg=one line of code, click the cauliflower icon or alt+z; more than one line of code, highlight it then do the same. dumping into a terminal requires highlighting it in its entirety (regardless of how many lines it is) and then middle clicking it into a terminal (and sometimes hitting enter if it didn't automatically run/grab the last "carriage" return)).

highlight groups of files, paste them, arrange them, give them a launch command. that's the vtg start center for bwp, the browser word processor.


p. dogfellow 4/27/18

(this page has now become help, info, and development log).


….

more help and templates:

the difference between

geany -i /root/my-applications/bbwp/html/Styles,Scrap2.html /root/my-applications/bbwp//html/box1 /root/my-applications/bbwp/html/Untitled2 /root/my-applications/bbwp/html/Untitled1 /root/my-applications/bbwp/html/Styles /root/my-applications/bbwp/html/bbwp-1-spchk
/root/my-applications/bbwp/html/bbwp-2-nospchk /root/my-applications/bbwp/html/box2.html /root/my-applications/bin/bwp

and

geany /root/my-applications/bbwp/html/Styles,Scrap2.html /root/my-applications/bbwp//html/box1 /root/my-applications/bbwp/html/Untitled2 /root/my-applications/bbwp/html/Untitled1 /root/my-applications/bbwp/html/Styles /root/my-applications/bbwp/html/bbwp-1-spchk
/root/my-applications/bbwp/html/bbwp-2-nospchk /root/my-applications/bbwp/html/box2.html /root/my-applications/bin/bwp

is that the -i conveys you wish the files opened in a new instance of geany. for most things, the launch code is as i described, but as you'll see if you do the [program] --help >/tmp/progh; geany /tmp/progh bit for things like firefox and palemoon, there are usually many more options available. to use the vtg start sheet/center for libreoffice, use libreoffice6.0 --writer /paths/2 /your/files /yadda /shae or something similar.


this one's messed up because it's been installed on top of itself too many times--copy from your own actual file locations if you've got the nwp version of the bwp bbwp going.

firefox /nwp/wp/bbwp/html/html/bbwp-1-spchk /nwp/wp/bbwp/html/html/bbwp-2-nospchk /nwp/wp/bbwp/html/html/box1 /nwp/wp/bbwp/html/html/Styles /nwp/wp/bbwp/html/html/Styles,Scrap2.html /nwp/wp/bbwp/html/html/Styles,Scrap(2).html /nwp/wp/bbwp/html/html/Untitled1 /nwp/wp/bbwp/html/html/Untitled2

(the launch from nwp section of your box file may not work correctly even if you have the nwp installed because of this. on the bright side, it means if you're using the thing but keeping the default names for the blanks, or saving your work in the formatting styles sheets, it's less likely the last upgrade just overwrote your work).
(backup your stuff or rename the originals/these are the bits that will be a how to on customizing the box and styles tabs (basically look for the address bits, change those and the associated titles; look for the color bits, use gcolor2 (in most pups) or the geany color chooser to customize yours (queens and keyboards and six digit codes in the styles2 sheet); most things can be pasted in directly; fonts are tricky because just because your machine has it, doesn't mean your audience does on theirs. sizes are sizes, but serif supercalifragilistic may get rendered as plain serif in the end.))

never given a desktop file (the menu entry calls from /root/my apps/bin but is essentially):

defaultbrowser /usr/local/bwp/bbwp-1-spchk /usr/local/bwp/bbwp-2-nospchk /usr/local/bwp/box1 /usr/local/bwp/box2.html /usr/local/bwp/Styles /usr/local/bwp/Styles,Scrap2.html /usr/local/bwp/Untitled1 /usr/local/bwp/Untitled2

use the geany versions (the geany -i code is bbwpe in the terminal and on the menu) to change the tab titles or otherwise overhaul the files, templates, or boxes (there are a few things can't be edited through the editable window itself. alt+1 or n in the launcher in nwp installs gives you paste and place or highlight and select html codes you may find useful).

copy your own files or base your projects on these templates. check the desktop files in /usr/share/applications for an installed applications launch command if it's not the name itself (rare but happens).


______

(you could also launch music or hissing with the vtg if you like:

vlc /path/2/some_song (or playlist)
zensound; xdotool key f10 down down enter
(think the last bit is really F10 Down Down Return))
.

general tip: put quotation marks around paths that have spaces in them (prog "/path/2/spaced name").
***


here's an example of the color mod lines to look for (you're just replacing the D41B75 part with a six digit code you grabbed from one of the color wheels mentioned or some other of your choosing):

<p style="margin-bottom: 0in; line-height: 100%" align="justify"><font color="#D41B75">⌨</font></p>

you can also try swapping in fonts by duplicating any lines that name one and just changing that bit to something you know is an official font name (use gfontsel to pick some (the more common, the more likely your viewer will see what you think you're putting before them).

here's an example of the address/link lines in the file you can customize:

<a href="file:///nwp/wp/bbwp/html/bbwp-1-spchk" target="_blank">spchk</a><p>

use http:// instead of file:/// for web addresses. (this is also on the n and alt+1 menus as paste and place nwp commands (versions of link and table of contents entries)).


n menu refers to the shift plus spacebar popup menus (enter "n" in the p(wn) launcher). most of those formatting items have individual launch codes (check the lists above) assigned (which is generally a much faster way of getting them or doing most things).
short version: paste in formatting from the styles tabs and be sure to download your work to save it if using browser mode. edit the titles, customize the colors, and brainstorm in geany; fine tune stuff, type a tab space without jumping through a hoop (next version)--the main disadvantage of browser view mode is a slower save process.

it's light and quick and can be pared down further. middle click paste highlighted groups of files into a geany document to set up batch launches. launch from multiple sources to have many versions of a draft going at the same time. bookmark tabs as sessions. have fun.

--p. dogfellow
the "specil" popup for the special character cutting and pasting is rendered less useful with the new version, but you can use it to paste notes or formatting code for the geany view of the html side of things.

newest version is 23k (but doesn't include the mcc (make concurrent copies) or xmod (keyboard configuration presets) folders. it will however put the drag2makepet backup utility and a couple of versions of the dual launcher scripts in that folder if you've got it, and it'll put the two dual launch scripts in the bbwp folder in /root/my-applications/bin (you can use this as a stand alone word processor without the nwp, but as discussed above, the text paste and place and other utilities may come in useful). right click templates get updated, and you can now launch your files from the box an styles tabs (customize those files in a text editor)).

-p.dogfellow

here's the pet again:

bwp1.3.pet

(and my apologies if arranging those last two quoted posts as strata confuses the issue.)

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

make sure to reload the browser view if you've changed the

#94 Post by Puppus Dogfellow »

(maybe working in plain text files in those folders (so you can take advantage of the default arc and ark backup shorts--it doesn't really matter where you put them if you alter those accordingly or take care of backups some other way) is a better way of going about your project, but here's a suggestion and a caution for it):

from Post subject: some more on text editor mode versus browser mode, comments,
Subject description: saves, reloads, refreshes, updating, and drag2makepet
(http://murga-linux.com/puppy/viewtopic. ... 683#990683)
Puppus Dogfellow wrote:from

http://murga-linux.com/puppy/viewtopic. ... 673#990673
( a bit more on the bwp)
Puppus Dogfellow wrote:
[…]if you don't have the nwp and the launch code cheat sheet it provides, and you want the benefits of the text editor's quick saves and text manipulation tools, you could always make a cheat sheet directly on the page and sandwich it with

Code: Select all


<!--  -->	

(put all the tags and crib notes between arrows like that (cmt in the launcher) and you'll have something that only shows up in text editor view--neither the browser tab nor the print preview/output/pdf file show that as part of your content).
careful with the browser refreshes and geany reloads and the order you do them; a careless browser refresh can wipe out a lot of work, though backup views in other tabs, windows, or browsers (or geany windows for that matter) may add additional safeguards.
if you've decided to work in the html document in geany mode rather than in browser view for the quick saves because you've discovered that putting your text between the arrows (

Code: Select all

<!-- (i.e. here and this can go on indefinitely and be repeated (i.e. additional sets of arrows placed elsewhere in the document) as often as you like) -->
) is a good way to have an invisible draft going while preserving your spaces and tabs and visual poetry for some later paste in, make sure to refresh the browser version before the paste in that turns the comments contents into the working/formattable/browser/pdf draft or the download will overwrite the (now presumably backup) comments and all the other changes made since the browser view was loaded or last refreshed (despite the saves you may have made in geany or leafpad in the interim--sometimes it's easy to lose track of the sometimes invisible content).

...

pasting in page breaks from either line below in html view is perhaps easier than grabbing the page break line in the styles2 sheet, so future word processing templates will likely include

Code: Select all

 <!-- 
<par style="font-size: 11pt; color:white; page-break-after: always"></par>
<par style="font-size: 11pt; color:white; page-break-before: always"></par>

-->
and something similar to this post as commented out comments on comments, saves, refreshes and reloads in the bwp.
install bwp 1.3 after whichever other versions of the mcc utility you choose and back up your bbwp folder if you've been saving your work in the default templates without renaming them (anything else in the folders is safe).

you could install the backup drag2 pets you make as pets, but i personally think of them as insta-archives and just extract them when i need what's in them (has actually saved some work for me that would've been otherwise lost, which is why i decided to offer it this way--since you're not making a duplicate file system inside the pet/directory you're compressing (a pet is basically a .gz compressed archive), it'll install as top level directories, which may not be what you want (though it makes locating the stuff generally easier, especially if you're in another pup running on the computer, and you need to go into old installations to check for some of your old files, or want to migrate your work over).

main changes over older version is better view in browser mode, an ability to launch your files from the box tabs, and the expanded styles sheets mentioned earlier.
(new set of launch codes for the p(wn), but that wasn't relevant in that thread. "paw" or "pbw" in the launcher will give you the page break codes that will be part of the next set of templates).

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

an upgrade to some of the bwp/bbwp's original templates

#95 Post by Puppus Dogfellow »

from http://murga-linux.com/puppy/viewtopic. ... 762#990762,
new templates to replace bwp/bbwp's Untitled1 and Untitled2
easier text alignment, more streamlined interface--both are now spell check enabled:
Puppus Dogfellow wrote:dump this into a terminal to upgrade those original Untitled templates from the bwp/bbwp:

Code: Select all

echo $'
<!-- 
   nwp01.html
   mini-bwp/Untitled2
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
<title>j,c,l,r--sp</title>
<meta http-equiv="content-type" content="text/;charset=utf-8" />
<meta name="generator" content="Geany 1.25" />
</head>
<title>top one is tab tag</title>
<body style="font-size:2rem;font-family:serif;line-height:1.5;max-width:90rem;margin:0 auto;padding:2rem;" spellcheck="true" contenteditable="">
<p style="margin-bottom: 0in; line-height: 100%" align="justify"><font face="Liberation Serif, serif">regular text<br><br>
<i>italics</i><br>
<b>bold</b><br>   
<u>underline</u><br> 
<br>    
</font></p>
<p style="margin-bottom: 0in; line-height: 100%" align="justify">justified area<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="center">centered<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="left">left aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="right">right aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="justify"><br><br>document as a whole is justified--delete the areas you don\'t need, copy and paste those you do where you need them. to use this document as a word processor (mini-bwp), open and bookmark it in a browser, download a copy to reopen as your working document, keeping the original to grab formatting from and mess around in. download/save as pdf (print menu) or html (file menu--html will let you use the browser (or a text editor--faster saves and you can change the names in the tabs, but it \'s less intuitive overall) for further edits). <br><br>
p. dogfellow, 5/4/18<br>
<br>
<br>
</p>
</body>
</>
' > /root/my-applications/bbwp/html/Untitled2
echo $'
<!-- 
   nwp01.html
   mini-bwp/Untitled1
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
<title>j,c,l,r--sp</title>
<meta http-equiv="content-type" content="text/;charset=utf-8" />
<meta name="generator" content="Geany 1.25" />
</head>
<title>top one is tab tag</title>
<body style="font-size:2rem;font-family:serif;line-height:1.5;max-width:90rem;margin:0 auto;padding:2rem;" spellcheck="true" contenteditable="">
<p style="margin-bottom: 0in; line-height: 100%" align="justify"><font face="Liberation Serif, serif">regular text<br><br>
<i>italics</i><br>
<b>bold</b><br>   
<u>underline</u><br> 
<br>    
</font></p>
<p style="margin-bottom: 0in; line-height: 100%" align="justify">justified area<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="center">centered<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="left">left aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="right">right aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="justify"><br><br>document as a whole is justified--delete the areas you don\'t need, copy and paste those you do where you need them. to use this document as a word processor (mini-bwp), open and bookmark it in a browser, download a copy to reopen as your working document, keeping the original to grab formatting from and mess around in. download/save as pdf (print menu) or html (file menu--html will let you use the browser (or a text editor--faster saves and you can change the names in the tabs, but it \'s less intuitive overall) for further edits). <br><br>
<br>(Untitled 1 and 2 from the bwp have been upgraded and/or spun off from the bwp as the bwp2 and/or the mini-bwp/bwp-mini. as with the original (and bbwp before it), paste in formatting, links and other content. download to save. ctrl a,c,v,y,z and a few other keyboard shortcuts work in most browsers. link below can be deleted like any other text; use text editor view to paste in links to your files (tables of contents, etc)).<br><br>
p. dogfellow, 5/4/18<br>
<br>
<br>
<br>for more, see bbwp updated as bwp:<br>
<a href="http:///murga-linux.com/puppy/viewtopic.php?p=990597#990597" target="_blank">http://http://murga-linux.com/puppy/viewtopic.php?p=990597#990597</a><br>
</p>
</body>
</>
' > /root/my-applications/bbwp/html/Untitled1
cp -f /root/my-applications/bbwp/html/Untitled1 /root/.config/rox.sourceforge.net/Templates/Untitled1
cp -f /root/my-applications/bbwp/html/Untitled2 /root/.config/rox.sourceforge.net/Templates/Untitled2
cp -f /root/my-applications/bbwp/html/Untitled1 /root/.config/rox.sourceforge.net/Templates/bwp-0/Untitled1
cp -f /root/my-applications/bbwp/html/Untitled2 /root/.config/rox.sourceforge.net/Templates/bwp-0/Untitled2
cp -f /root/my-applications/bbwp/html/Untitled1  /nwp/wp/bbwp/html/Untitled1
cp -f /root/my-applications/bbwp/html/Untitled2  /nwp/wp/bbwp/html/Untitled2
#cp -fRu /root/my-applications/bbwp/html /root/.config/rox.sourceforge.net/Templates/bwp-0
cp -fRu /root/my-applications/bbwp/html/Untitled1 /usr/local/bwp/Untitled1
cp -fRu /root/my-applications/bbwp/html/Untitled2 /usr/local/bwp/Untitled2
if you want an even smaller version of the bwp, here's the mini-bwp:

Code: Select all

#!/bin/sh
#puppus dogfellow, 5/4/18
mkdir -p /root/my-applications/bwp2/
echo $'
<!-- 
   nwp01-bwp2.html
   mini-bwp/Untitled1
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
<title>j,c,l,r--sp</title>
<meta http-equiv="content-type" content="text/;charset=utf-8" />
<meta name="generator" content="Geany 1.25" />
</head>

<title>top one is tab tag</title>
<body style="font-size:2rem;font-family:serif;line-height:1.5;max-width:90rem;margin:0 auto;padding:2rem;" spellcheck="true" contenteditable="">

<p style="margin-bottom: 0in; line-height: 100%" align="justify"><font face="Liberation Serif, serif">regular text<br><br>
<i>italics</i><br>
<b>bold</b><br>   
<u>underline</u><br> 
<br>    
</font></p>
<p style="margin-bottom: 0in; line-height: 100%" align="justify">justified area<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="center">centered<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="left">left aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="right">right aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 100%" align="justify"><br><br>document as a whole is justified--delete the areas you don\'t need, copy and paste those you do where you need them. to use this document as a word processor (mini-bwp), open and bookmark it in a browser, download a copy to reopen as your working document, keeping the original to grab formatting from and mess around in. download/save as pdf (print menu) or html (file menu--html will let you use the browser (or a text editor--faster saves and you can change the names in the tabs, but it \'s less intuitive overall) for further edits). <br><br>
<br>(Untitled 1 from the bwp has been upgraded and/or spun off from the bwp as the bwp2 and/or the mini-bwp/bwp-mini. as with the original (and bbwp before it), edit in browser window, paste in formatting, links and other content. download to save. ctrl a,c,v,y,z and a few other keyboard shortcuts work in most browsers. link below can be deleted like any other text. use text editor view to paste in links to your files (for tables of contents, etc)).<br><br>
p. dogfellow, 5/4/18<br>
<br>
<br>
<br>for more, see bbwp updated as bwp:<br>
<a href="http:///murga-linux.com/puppy/viewtopic.php?p=990597#990597" target="_blank">http://http://murga-linux.com/puppy/viewtopic.php?p=990597#990597</a><br>
</p>
</body>
</>
' > /root/my-applications/bwp2/Untitled1
echo $'[Desktop Entry]
Encoding=UTF-8
Name=bwp2
Icon=/root/puppy-reference/mini-icons/mini-doc.xpm
Comment=browser based word processor
Exec=defaultbrowser /root/my-applications/bwp2/Untitled1
Terminal=false
Type=Application
GenericName=bwp2
Version=1.0
Categories=WordProcessor
' > /usr/share/applications/mini-bwp\(bwp2\)
fixmenus
jwm -reload
3k (uncompressed)

you can dump it into a terminal or save it as a script as a way to preserve the template you should duplicate and use as a blank (delete everything but your main choice of paragraph alignment, copy changes in formatting over from the original template).

doesn't overwrite anything, just becomes a file in bwp2 in /root/my-applications that gets launched by the default browser.
change the defaultbrowser bit in the desktop file above (second code chunk) if you have a different choice in mind and/or add additional bwp files and their paths to that same Exec line to batch launch when you start the bwp(mini).

in short, this upgrade makes things easier, so dump the green stuff into a terminal, and if you want to just try a mini version, run the second green chunk and/or save it to reset the the original template (freeing you from having to make a second copy to open as suggested above).

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

another micro-bwp terminal dump update.

#96 Post by Puppus Dogfellow »

(if you see two of these floating around, use the one that has a lot of .html extensions for the files it makes--ran into some problems leaving them off an earlier version).
from http://murga-linux.com/puppy/viewtopic. ... 579#991579,
Post subject: wasn't previously a problem, but now unlabled html files are
Subject description: being seen (at least some of the time) as plain text files...
Puppus Dogfellow wrote:script and vtg sheet above apparently need the files made marked as html for some of the browsers at least some of the time, so i'll reup the two files from above with the fixes. to do it manually (if you've noticed the content is suddenly not editable), it's a bunch of swap and replaces...end lines (\n) for .html\n
...and [fontname][space]...---be back in a bit. sorry for the inconvenience.

---
here's the first bit:

Code: Select all


#!/bin/sh
#makes bwpt (template /word processor maker) 

echo $"

#!/bin/sh
#bwper
mkdir -p ./bwp1
#mkdir -p ./tasks
echo $'
<!--
   thiswordprocessor.html
  (/micro anuupuus/mini-bwp/Untitled0)
 file as word processor template maker
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
<title>bwp2</title>
<meta http-equiv="content-type" content="text/;charset=utf-8" />
<meta name="generator" content="Geany 1.25" />
</head>

<title>top one is tab tag</title>

<body style="font-size:2rem;font-family:serif;line-height:1.5;max-width:90rem;margin:0 auto;padding:2rem;" spellcheck="true" contenteditable="">


<p style="margin-bottom: 0in; line-height: 150%" align="justify"><font face="serif">regular text<br><br>
<i>italics</i><br>
<b>bold</b><br>   
<u>underline</u><br>
<br>   
</font></p>

<p style="margin-bottom: 0in; line-height: 150%" align="justify">justified area<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="center">centered<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="left">left aligned<br><br></p>

<p style="margin-bottom: 0in; line-height: 150%" align="right">right aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="justify"><br><br>document as a whole is justified--delete the areas you don\'t need, copy and paste those you do where you need them. to use this document as a word processor (mini-bwp), open and bookmark it in a browser, download a copy to reopen as your working document, keeping the original to grab formatting from and mess around in. download/save as pdf (print menu) or html (file menu--html will let you use the browser (or a text editor--faster saves and you can change the names in the tabs, but it \'s less intuitive overall) for further edits). <br><br>
<br>(Untitled 1 and 2 from the bwp have been upgraded and/or spun off from the bwp as the bwp2 and/or the mini-bwp/bwp-mini. as with the original (and bbwp before it), paste in formatting, links and other content. download to save. ctrl a,c,v,x,y,z and a few other keyboard shortcuts work in most browsers. link below can be deleted like any other text; use text editor view to paste in links to your files (tables of contents, etc)).<br><br>
p. dogfellow, 5/4/18<br>
<br>
<br>
<br>for more, see bbwp updated as bwp:<br>
<a href="http:///murga-linux.com/puppy/viewtopic.php?p=990597#990597" target="_blank">http://http://murga-linux.com/puppy/viewtopic.php?p=990597#990597</a><br>
<!--use file:/// for your files (for tables of contents, long term convenience, etc) and http:// for websites  (second occurence of path above is text that shows--could be anything, but use &gt: < to >< in plain text mode outside the comments (you can paste them into the browser view as you\'d expect with a regular word processor, but it won\'t work in straight up html mode.)-->

<br>insert<p style="margin-bottom: 0in; line-height: 150%" align="left"><font color="#159A5E"><par style="font-size: 8pt; color:white; page-break-after: always"></par></font> <br><br>
in text editor view wherever you want to force a page break.
<br><br>
</p>
<br>
<h1>heading 1</h1>
<h2>heading 2</h2>
<h3>heading 3</h3>
<h4>heading 4</h4>
<h5>heading 5</h5>

<p style="margin-bottom: 0in; line-height: 150%" align="justify"><br><br>
<br>
<!--this is a comment. anything between arrows like these is hidden in browser and pdf download/print preview mode. -->
<!--

this is another comment. you can have as many as you like and they can go on indefinitely.
(you can type here and paste into browser view for the faster saves and more natural typing environment, but remember to keep track of your reloads and refreshes as well as your saves so you don\'t end up undoing what you\'ve done)
-->

<!--  get rid of the html in the title if the text editor has color coding for code and you find it annoying


Puppus Dogfellow, 5/5/18.
-->
<!--teach yourself html and more:
 https://www.w3schools.com/html/html_paragraphs.asp

alter this document as a new base template and/or make copies for backup. search and swap/find and replace 150 for 200 or 100 to change spacing from 1.5 to 2 or 1. do the same with serif to change font (mono and sans are two that work in testing).
  -->

</p>
<p style="margin-bottom: 0in; line-height: 150%" align="justify">to stick to working with (mostly) regular text files, paste your text into the word processor file for print preview, setting the formatting, and downloading either the html or pdf version of that stage. browser window text is scalable, but for reference, here\'s some nonscalable text: <br>
</p><br>
<br>
 <p style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">your serif 12 text here</p><br>
 <p style="font-size: 12pt; color:#5126D2; font-weight:normal; font-family: mono">your mono 12 text here</p><br>
 <p style="font-size: 12pt; color:black; font-weight:normal; font-family: sans">your sans 12 text here</p><br>



<!-- <br><br>

see the commented out bits (they\'ll be between arrows like these) in text editor mode for more tips (they\'re not visible in browser mode. change the name that appears in the tab and the internal document name while you\'re there).
<br>

to focus more on browser use than text editor mode, make a copy of the appropriate template and rename it as your working document. open both with a browser and bookmark. reload the template if you\'ve made a mess of the formatting or preferred the way it was before you started to get the hang of things.
<br>-->
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">
12 point serif

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: sans">

12point sans

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: mono">

12 pt mono (no illustration of custom color code this time--use gcolor2 or your text editor\'s color picker to customize via the six digit code that follows the <i>color:</i> bit(s) you find in the html version(s)).

<br>

<br>
<br>
your <a href="file:///root/my-applications/mc/bwp1/" target="_blank">templates are here</a> and  <a href="file:///root/.config/rox.sourceforge.net/Templates/bwp1/" target="_blank">here if you\'ve </a>installed (a/some version/s of) thiswordprocessor.html through mccwp-bwp (or its terminal dump-in post/s).
<br>


</body>

</html>
' > ./bwp1/ser.html
#prep ser as as mon and san:
cp -f ./bwp1/ser ./bwp1/mon.html
cp -f ./bwp1/ser ./bwp1/san.html
sed -i 's/serif/sans/1' ./bwp1/san.html
sed -i 's/serif/sans/1' ./bwp1/san.html
sed -i 's/serif/mono/1' ./bwp1/mon.html
sed -i 's/serif/mono/1' ./bwp1/mon.html
#make three copies (x3) of base template: working, line spacing at 1 and 2:
cp -f ./bwp1/ser.html ./bwp1/ser1.5.html
cp -f ./bwp1/ser.html ./bwp1/ser1.html
cp -f ./bwp1/ser.html ./bwp1/ser2.html
cp -f ./bwp1/mon.html ./bwp1/mon1.5.html
cp -f ./bwp1/mon.html ./bwp1/mon1.html
cp -f ./bwp1/mon.html ./bwp1/mon2.html
cp -f ./bwp1/san.html ./bwp1/san1.5.html
cp -f ./bwp1/san.html ./bwp1/san1.html
cp -f ./bwp1/san.html ./bwp1/san2.html
#have the line spacing of ser1 and ser2 (etc) reflect their names:
sed -i '/150/ s//100/g' ./bwp1/ser1.html
sed -i '/150/ s//200/g' ./bwp1/ser2.html
sed -i '/150/ s//100/g' ./bwp1/mon1.html
sed -i '/150/ s//200/g' ./bwp1/mon2.html
sed -i '/150/ s//100/g' ./bwp1/san1.html
sed -i '/150/ s//200/g' ./bwp1/san2.html

#swap out the title tags:
sed -i '/bwp2/ s//m00/1' ./bwp1/mon1.5.html
sed -i '/bwp2/ s//m0/1' ./bwp1/mon.html
sed -i '/bwp2/ s//mSing/1' ./bwp1/mon1.html
sed -i '/bwp2/ s//mDub/1' ./bwp1/mon2.html
sed -i '/bwp2/ s//Untitled00/1' ./bwp1/ser1.5.html
sed -i '/bwp2/ s//Untitled0/1' ./bwp1/ser.html
sed -i '/bwp2/ s//Sing/1' ./bwp1/ser1.html
sed -i '/bwp2/ s//Dub/1' ./bwp1/ser2.html
sed -i '/bwp2/ s//s00/1' ./bwp1/san1.5.html
sed -i '/bwp2/ s//s0/1' ./bwp1/san.html
sed -i '/bwp2/ s//sSing/1' ./bwp1/san1.html
sed -i '/bwp2/ s//sDub/1' ./bwp1/san2.html

#swap out the internal name
#adjust for file and name (and remove the #):
#sed -i '/top one is tab tag/ s//newinternal/1' ./bwp1/san.html
#sed -i '/top one is tab tag/ s//newinternal/1' ./bwp1/san1.5.html
#sed -i '/top one is tab tag/ s//newinternal/1' ./bwp1/san1.html
#sed -i '/top one is tab tag/ s//newinternal/1' ./bwp1/san2   .html

#dual launchers (copy and adjust):
echo $'#!/bin/sh
exec defaulttexteditor "\$@"| exec defaultbrowser "\$@"
' > ./bwp1/def
chmod 755 ./bwp1/def
echo $'#!/bin/sh
exec geany -i "\$@"| exec palemoon "\$@"
' > ./bwp1/gip
chmod 755 ./bwp1/gip
" >  /root/my-applications/bin/bwpt
chmod 755 /root/my-applications/bin/bwpt
#create base template directory in ...mc and ...Templates, add a single template
#to the right click to go with the whole set option...adjust to suit your needs
#right click available, and terminal command to make full set
#in a given dir. is now "bwpt"
#script's an update/plugin for the mini word processor in the mcc utillity (as opposed to
#the one in nwp or the one in usr/local/bwp or the one in root/my-apps/bbwp), but with the
#directory that houses the drag2 scripts to make copies on your machine, you can use this
#as a stand alone:
mkdir -p /root/my-applications/mc
cd /root/my-applications/mc
bwpt
cd /root/.config/rox.sourceforge.net/Templates/
bwpt
cp -f /root/.config/rox.sourceforge.net/Templates/bwp1/ser1.5 /root/.config/rox.sourceforge.net/Templates/1.5ser.html

and here's the second bit:



echo $'


right click or ctrl+shift+o in geany to use this document as a set of links/table of contents.

/root/my-applications/mc/bwp1/def.html
/root/my-applications/mc/bwp1/gip.html
/root/my-applications/mc/bwp1/mon.html
/root/my-applications/mc/bwp1/mon1.html
/root/my-applications/mc/bwp1/mon1.5.html
/root/my-applications/mc/bwp1/mon2.html
/root/my-applications/mc/bwp1/san.html
/root/my-applications/mc/bwp1/san1.html
/root/my-applications/mc/bwp1/san1.5.html
/root/my-applications/mc/bwp1/san2.html
/root/my-applications/mc/bwp1/ser.html
/root/my-applications/mc/bwp1/ser1.html
/root/my-applications/mc/bwp1/ser1.5.html
/root/my-applications/mc/bwp1/ser2.html

if you\'ve got the nwp or vtg installed, click the cauliflower or alt+z (or v in launcher) with cursor
on a line below will launch that command

open all in geany:
geany /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html


open all in a new instance of geany:
geany -i /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html

open all in default browser:

open the rox folder:
rox /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html

open a given file from /root/my-applications/mc/bwp1/ in leafpad:

leafpad /root/my-applications/mc/bwp1/def
leafpad /root/my-applications/mc/bwp1/gip
leafpad /root/my-applications/mc/bwp1/mon.html
leafpad /root/my-applications/mc/bwp1/mon1.html
leafpad /root/my-applications/mc/bwp1/mon1.5.html
leafpad /root/my-applications/mc/bwp1/mon2.html
leafpad /root/my-applications/mc/bwp1/san.html
leafpad /root/my-applications/mc/bwp1/san1.html
leafpad /root/my-applications/mc/bwp1/san1.5.html
leafpad /root/my-applications/mc/bwp1/san2.html
leafpad /root/my-applications/mc/bwp1/ser.html
leafpad /root/my-applications/mc/bwp1/ser1.html
leafpad /root/my-applications/mc/bwp1/ser1.5.html
leafpad /root/my-applications/mc/bwp1/ser2.html

open all in palemoon:
palemoon /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html
___
to get a table of contents/clickable index of these files for a browser launch, use their base directory:

defaultbrowser /root/my-applications/mc/bwp1/
palemoon /root/my-applications/mc/bwp1/
defaultbrowser /root/.config/rox.sourceforge.net/Templates/bwp1/ /root/my-applications/mc/bwp1/
palemoon /root/.config/rox.sourceforge.net/Templates/bwp1/ /root/my-applications/mc/bwp1/
firefox /root/.config/rox.sourceforge.net/Templates/bwp1/
palemoon /root/.config/rox.sourceforge.net/Templates/bwp1/

(highlight groups of files and paste in their paths, use space (literally type a space--i don\'t know off hand the regex for space...\s?...and substitute it with a \n in the find and replace boxes to swap what you get so it looks like the leafpad arrangement above (i used extend select and typed leafpad after that). most programs will respond to vtging the way the selection deposits it in a file (space rather than line delimited. i.e. usually selecting, middle clicking, and then adding the program followed by a space at the beginning of the line is enough "programming"/arranging of text.

' > /root/my-applications/mc/bwp4vtg
to do it manually (if you've noticed the content is suddenly not editable), it's a bunch of swap and replaces...end lines (\n) for .html\n
...and [fontname][space]...

for the first chunk, that was accurate except for an extend select and typing of .html to get at some text that was nicely aligned to begin with. in the second chunk i had to do the same thing but there was more of it and the pieces not nicely aligned, so i had to substitute space for line break, line break for .html plus line break, and then back out the line breaks for spaces.

...which reminds me--if you don't make the "\n" in the vtg sheet "\\n" (i.e. "escape it")it will break the line and remove itself from the text displayed.
see more:

http://murga-linux.com/puppy/viewtopic. ... 315#991315
Post subject: three versions of template generator script
Subject description: pick/make a directory to work in and run/click (or vtg it, or keep a rox window open while you mod..

http://murga-linux.com/puppy/viewtopic. ... 127#991127
PostPosted: Tue 08 May 2018, 03:24 Post subject: thiswordprocessor.html updated as wordprocessor.html (6k).
Subject description: find and replace in selection to make a set of templates. copy/rename one as the working document
the vtg sheet being made is a plain text file mostly for a set location, but it's not difficult to do the equivalent for others (sheet took a few minutes to make and a few more to turn into content-generated-by-script (cnt commant, scz command, and using a bunch of backslashes (\) to undo my habit of using apostrophes in the comments...dollar signs also need it...things got sandwiched by the command so i had to also do it for quotation marks...so that needed to be run three times, but overall it's a fairly quick process (and if you want, getting the commands on the jwm menus takes a little copying and editing of a few .desktop files and the jwm -reload command (i usually make little scripts for the stuff in the nwp folder (ll defaults to making stuff there, ch defaults to setting permissions there, but start with scz to make a plain file a script).

ll = leafpad launcher in the shift plus spacebar (main, p, pwn) launcher
gl = geany
(^give a title to your command)
scz = print out the shebang
ch = set permissions for it


(more on that in another post).

____

i'll probably post the non generated generator version (the bwpt script that's made by mccwp-bwp (what that first script is called on my machine at the moment) and makes the bwp1 folder of templates ) at some point since it's easier to edit and read--there was supposed to be an "auxer" to go with the previous version, but it got shelved a bit so that i can "bwpt" a directory...(and it's basically just a slightly preset version of copying vtg commands to files so you can launch them with desktop files and optionally send them to the windows manager menus like i hinted at with the gl ll scz ch stuff above).
the commented out tasks folder in the first part of the first code above is for an autogenerated mini nwp type folder for storing vtg commands you want to turn into scripts and possibly put on the jwm menus (it's semi shelved). the vtg sheet and the ability to launch browserwordprocessor (bwp--i pronounce it "boop") files from any tab that points to the appropriate files (now generated in any directory with ` (pops up terminal) and then "bwpt" (booped/boop't--bwpTemplates--also right click available) make a convenient addition to whatever additional bookmarking you do through the browser (still easier to open groups of tabs with it so still useful).

it's a 9.6k (not counting the vtg sheet), so it's considerably larger than the 2.5k microbwp from a post ago, but still smaller than the original bbwp. keyboard tweaks will be packaged with bwp-bbwp merger (and be a separate nwp plugin from the bwp (which when packed as a pet, will likely be combined with mcc functions/directory). unlike the 2.5k version, no desktop file or menu entry for this one at this time (the tasks folder will be a mini nwp of sorts--put in vtg or other commands as scripts isolated from your system (i do a lot of "which xyz" in the terminal to make sure my cryptic launch commands aren't shared by ancient unix or linux utilities or anything puppy is using, but that would only be a problem if i want to call it from a terminal. if i'm calling my files or scripts or programs or directories from the nwp, there's no way my names can interfere with anything (though as you can see from my having to redo the above script, sometimes making things easier (leaving off the .html extension) doesn't always work out. (and if i slowed down my efforts to edit the vtg file as fast as possible, i probably would've seen i could've just substituted " " for ".html ", but what can ya do)).


-p. dogfellow

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

update and fix for last update script

#97 Post by Puppus Dogfellow »

includes the bwpt the last bwpter was supposed to have made. takes advantage of the fact that anything you download as html you can open through the browser by navigating to that window (makes the downloading and reaccessing your now renamed files and templates less inconvenient.

____
and here's the fix. from http://murga-linux.com/puppy/viewtopic. ... 583#991583:
Puppus Dogfellow wrote:edited/improved 5/13:
script and vtg sheet above apparently need the files made marked as html for some of the browsers at least some of the time, so i'll reup the two files from above with the fixes. to do it manually (if you've noticed the content is suddenly not editable), it's a bunch of swap and replaces...end lines (\n) for .html\n
...and [fontname][space]...---be back in a bit. sorry for the inconvenience.

---
here's the first bit:

Code: Select all

[...]
[...]

to do it manually (if you've noticed the content is suddenly not editable), it's a bunch of swap and replaces...end lines (\n) for .html\n
...and [fontname][space]...

for the first chunk, that was accurate except for an extend select and typing of .html to get at some text that was nicely aligned to begin with. in the second chunk i had to do the same thing but there was more of it and the pieces not nicely aligned, so i had to substitute space for line break, line break for .html plus line break, and then swap back out the line breaks for spaces.

...which reminds me--if you don't make the "\n" in the vtg sheet "\\n" (i.e. "escape it")it will break the line and remove itself from the text displayed.

___
(oops. double post. sorry again)

but here's some knowledge/insight gained:
(and if i slowed down my efforts to edit the vtg file as fast as possible, i probably would've seen i could've just substituted " " for ".html ", but what can ya do)).
from http://murga-linux.com/puppy/viewtopic. ... 587#991587
not only a double post, but the now removed (from this post at least) script and vtg sheet were a little more messed up than i was expecting (and the fix made it worse and i ended up stepping off for a bit).

i like terminal dump updates better than pets generally, at least for my own stuff (just grabbed the icon for the pet i'm about to post by running "bwp-mc" through some code on the mcc page (thanks again to technosaurus), but this one passed the point of convenience after the fourth run through and fail, so i made it a pet.


anyway, this pet does what the original (and previous) post failed to do:

bwpt-mc.pet 5.4k

ignore the bit on the previous page--i'll post the bwpt mcbwpter was supposed to have made (and which you can mod to replace the new/working bwpt). some of the original file (still messed up and still available a post back) got moved to the pinstall script, which i'll post (copying out of the templates folder doesn't seem to work for some reason, but copying into it from the bwp1 directory that got made into it is just a few steps and you can better choose which templates become most easily accessible yourself that way).

bwpt in terminal make a bwpt1 folder in that directory (`/~ key opens the terminal in a given directory). if you're doing it from the general/main terminal, cd to the directory, then "bwpt."

sorry for the inconvenience/pet overwrites the previous errors.
also from the vtg thread, http://murga-linux.com/puppy/viewtopic. ... 774#991774:
PostPosted: Today, at 01:01 Post subject: bwp-mc, bwpt, the newer vtg for bwp sheet, and the previous
Subject description: pet as a forum attachment
Puppus Dogfellow wrote:

Code: Select all

 #tree -h on the pet:
├── [  91]  pet.specs
├── [ 274]  pinstall.sh
├── [  80]  root
│   ├── [  80]  my-applications
│   │   ├── [  60]  bin
│   │   │   └── [8.4K]  bwpt
│   │   └── [  60]  mc
│   │       └── [6.5K]  vtg-bwp-mc
│   └── [  60]  puppy-reference
│       └── [  80]  mini-icons
│           ├── [ 620]  defbwpmc.xpm
│           └── [ 620]  deflbwpmc.xpm
└── [  60]  usr
    └── [  60]  share
        └── [  60]  applications
            └── [ 304]  bwp1-mc.desktop

9 directories, 7 files
______-

bwpt:

Code: Select all

#!/bin/sh
mkdir -p ./bwp1
echo $'

<!-- 
   thiswordprocessor.html
  (/micro anuupuus/mini-bwp/Untitled0)
  
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
<title>bwp2</title>
<meta http-equiv="content-type" content="text/;charset=utf-8" />
<meta name="generator" content="Geany 1.25" />
</head>

<title>top one is tab tag</title>

<body style="font-size:2rem;font-family:serif;line-height:1.5;max-width:90rem;margin:0 auto;padding:2rem;" spellcheck="true" contenteditable="">


<p style="margin-bottom: 0in; line-height: 150%" align="justify"><font face="serif">regular text<br><br>
<i>italics</i><br>
<b>bold</b><br>   
<u>underline</u><br> 
<br>    
</font></p>

<p style="margin-bottom: 0in; line-height: 150%" align="justify">justified area<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="center">centered<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="left">left aligned<br><br></p>

<p style="margin-bottom: 0in; line-height: 150%" align="right">right aligned<br><br></p>
<p style="margin-bottom: 0in; line-height: 150%" align="justify"><br><br>document as a whole is justified--delete the areas you don\'t need, copy and paste those you do where you need them. to use this document as a word processor (mini-bwp), open and bookmark it in a browser, download a copy to reopen as your working document, keeping the original to grab formatting from and mess around in. download/save as pdf (print menu) or html (file menu--html will let you use the browser (or a text editor--faster saves and you can change the names in the tabs, but it \'s less intuitive overall) for further edits). <br><br>
<br>(Untitled 1 and 2 from the bwp have been upgraded and/or spun off from the bwp as the bwp2 and/or the mini-bwp/bwp-mini. as with the original (and bbwp before it), paste in formatting, links and other content. download to save. ctrl a,c,v,x,y,z and a few other keyboard shortcuts work in most browsers. link below can be deleted like any other text; use text editor view to paste in links to your files (tables of contents, etc)).<br><br>
p. dogfellow, 5/4/18<br>
<br>
<br>
<br>for more, see bbwp updated as bwp:<br>
<a href="http:///murga-linux.com/puppy/viewtopic.php?p=990597#990597" target="_blank">http://http://murga-linux.com/puppy/viewtopic.php?p=990597#990597</a><br>
<!--use file:/// for your files (for tables of contents, long term convenience, etc) and http:// for websites  (second occurence of path above is text that shows--could be anything, but use &gt: < to >< in plain text mode outside the comments (you can paste them into the browser view as you\'d expect with a regular word processor, but it won\'t work in straight up html mode.)-->

<br>insert<p style="margin-bottom: 0in; line-height: 150%" align="left"><font color="#159A5E"><par style="font-size: 8pt; color:white; page-break-after: always"></par></font> <br><br>
in text editor view wherever you want to force a page break.
<br><br>
</p>
<br>
<h1>heading 1</h1>
<h2>heading 2</h2>
<h3>heading 3</h3>
<h4>heading 4</h4>
<h5>heading 5</h5>

<p style="margin-bottom: 0in; line-height: 150%" align="justify"><br><br>
<br>
<!--this is a comment. anything between arrows like these is hidden in browser and pdf download/print preview mode. -->
<!--  

this is another comment. you can have as many as you like and they can go on indefinitely.
(you can type here and paste into browser view for the faster saves and more natural typing environment, but remember to keep track of your reloads and refreshes as well as your saves so you don\'t end up undoing what you\'ve done)
-->

<!--  get rid of the html in the title if the text editor has color coding for code and you find it annoying


Puppus Dogfellow, 5/5/18.
-->
<!--teach yourself html and more:
 https://www.w3schools.com/html/html_paragraphs.asp

alter this document as a new base template and/or make copies for backup. search and swap/find and replace 150 for 200 or 100 to change spacing from 1.5 to 2 or 1. do the same with serif to change font (mono and sans are two that work in testing). 
  -->

</p>
<p style="margin-bottom: 0in; line-height: 150%" align="justify">to stick to working with (mostly) regular text files, paste your text into the word processor file for print preview, setting the formatting, and downloading either the html or pdf version of that stage. browser window text is scalable, but for reference, here\'s some nonscalable text: <br>
</p><br>
<br>
 <p style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">your serif 12 text here</p><br>
 <p style="font-size: 12pt; color:#5126D2; font-weight:normal; font-family: mono">your mono 12 text here</p><br>
 <p style="font-size: 12pt; color:black; font-weight:normal; font-family: sans">your sans 12 text here</p><br>



<!-- <br><br>

see the commented out bits (they\'ll be between arrows like these) in text editor mode for more tips (they\'re not visible in browser mode. change the name that appears in the tab and the internal document name while you\'re there).
<br>

to focus more on browser use than text editor mode, make a copy of the appropriate template and rename it as your working document. open both with a browser and bookmark. reload the template if you\'ve made a mess of the formatting or preferred the way it was before you started to get the hang of things.
<br>-->
<span style="font-size: 12pt; color:black; font-weight:normal; font-family: serif">
12 point serif

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: sans">

12point sans

</span>
<span style="font-size: 12pt; color:black; font-weight:regular condensed; font-family: mono">

12 pt mono (no illustration of custom color code this time--use gcolor2 or your text editor\'s color picker to customize via the six digit code that follows the <i>color:</i> bit(s) you find in the html version(s)).

<br>

your <a href="file:///root/my-applications/mc/bwp1/" target="_blank">templates are here</a> and  <a href="file:///root/.config/rox.sourceforge.net/Templates/bwp1/" target="_blank">here if you\'ve </a>installed (a/some version/s of) thiswordprocessor.html through mccwp-bwp (or its terminal dump-in post/s). 


</body>

</html>
' > ./bwp1/ser.html

#prep ser as as mon and san:
cp -f ./bwp1/ser.html ./bwp1/mon.html
cp -f ./bwp1/ser.html ./bwp1/san.html 
sed -i 's/serif/sans/1' ./bwp1/san.html
sed -i 's/serif/sans/1' ./bwp1/san.html
sed -i 's/serif/mono/1' ./bwp1/mon.html
sed -i 's/serif/mono/1' ./bwp1/mon.html 



#make three copies (x3) of base template: working, line spacing at 1 and 2:
cp -f ./bwp1/san.html ./bwp1/san1.5.html
cp -f ./bwp1/san.html ./bwp1/san1.html
cp -f ./bwp1/san.html ./bwp1/san2.html
cp -f ./bwp1/mon.html ./bwp1/mon1.5.html
cp -f ./bwp1/mon.html ./bwp1/mon1.html
cp -f ./bwp1/mon.html ./bwp1/mon2.html
cp -f ./bwp1/ser.html ./bwp1/ser1.5.html
cp -f ./bwp1/ser.html ./bwp1/ser1.html
cp -f ./bwp1/ser.html ./bwp1/ser2.html

#have the line spacing of ser1 and ser2 (etc) reflect their names:
sed -i '/150/ s//100/g' ./bwp1/ser1.html
sed -i '/150/ s//200/g' ./bwp1/ser2.html
sed -i '/150/ s//100/g' ./bwp1/san1.html
sed -i '/150/ s//200/g' ./bwp1/san2.html
sed -i '/150/ s//100/g' ./bwp1/mon1.html
sed -i '/150/ s//200/g' ./bwp1/mon2.html
#swap out the title tags:

sed -i '/bwp2/ s//m00/1' ./bwp1/mon1.5.html
sed -i '/bwp2/ s//m0/1' ./bwp1/mon.html
sed -i '/bwp2/ s//mSing/1' ./bwp1/mon1.html
sed -i '/bwp2/ s//mDub/1' ./bwp1/mon2.html
sed -i '/bwp2/ s//Untitled00/1' ./bwp1/ser1.5.html
sed -i '/bwp2/ s//Untitled0/1' ./bwp1/ser.html
sed -i '/bwp2/ s//Sing/1' ./bwp1/ser1.html
sed -i '/bwp2/ s//Dub/1' ./bwp1/ser2.html
sed -i '/bwp2/ s//s00/1' ./bwp1/san1.5.html
sed -i '/bwp2/ s//s0/1' ./bwp1/san.html
sed -i '/bwp2/ s//sSing/1' ./bwp1/san1.html
sed -i '/bwp2/ s//sDub/1' ./bwp1/san2.html 

#swap out the internal name
#adjust for file and name (and remove the #): 
#sed -i '/top one is tab tag/ s//newinternal/g' ./bwp1/ser.html
#sed -i '/top one is tab tag/ s//newinternal/g' ./bwp1/ser1.5.html
#sed -i '/top one is tab tag/ s//newinternal/g' ./bwp1/ser1.html
#sed -i '/top one is tab tag/ s//newinternal/g' ./bwp1/ser2.html


#dual launchers (copy and adjust):
echo $'#!/bin/sh 
exec defaulttexteditor "$@"| exec defaultbrowser "$@"
' > ./bwp1/def
chmod 755 ./bwp1/def
echo $'#!/bin/sh 
exec geany -i "$@"| exec palemoon "$@"
' > ./bwp1/gip
chmod 755 ./bwp1/gip

Code: Select all

pinstall
#!/bin/sh
#as a stand alone:
mkdir -p /root/my-applications/mc
cd /root/.config/rox.sourceforge.net/Templates/
bwpt
cd /root/my-applications/mc
bwpt
cp -f /root/.config/rox.sourceforge.net/Templates/bwp1/ser1.5.html /root/.config/rox.sourceforge.net/Templates/1.5ser.html 

vtg-bwp-mc:
(file is based around a convenience made for geany as it's set up in puppy linux. if you haven't got the vtg or know the deal about the cauliflowers machue, you can make desktop files or terminal dumps from the stuff. substitute anything that can open plain text files for the geany and leafpad bit. at present (5/12/18), the browser based word processor still needs a text editor (or text editor function--the bwp series uses a text box for it, but text editors are quicker and have advantages in addition to the those highlighted below) to manually force page breaks, change the tab tag, and enter a tab space with the tab key.)

right click or ctrl+shift+o in geany to use this document as a set of links/table of contents.

/root/my-applications/mc/bwp1/def
/root/my-applications/mc/bwp1/gip
/root/my-applications/mc/bwp1/mon.html
/root/my-applications/mc/bwp1/mon1.html
/root/my-applications/mc/bwp1/mon1.5.html
/root/my-applications/mc/bwp1/mon2.html
/root/my-applications/mc/bwp1/san.html
/root/my-applications/mc/bwp1/san1.html
/root/my-applications/mc/bwp1/san1.5.html
/root/my-applications/mc/bwp1/san2.html
/root/my-applications/mc/bwp1/ser.html
/root/my-applications/mc/bwp1/ser1.html
/root/my-applications/mc/bwp1/ser1.5.html
/root/my-applications/mc/bwp1/ser2.html
/root/my-applications/mc/vtg-bwp-mc

if you've got the nwp or vtg installed, click the cauliflower or alt+z (or v in launcher) with cursor
on a line below will launch that command

open all in geany:
geany /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html /root/my-applications/mc/vtg-bwp-mc


open all in a new instance of geany:
geany -i /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html /root/my-applications/mc/vtg-bwp-mc

open all in default browser:

open the rox folder:
rox /root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html /root/my-applications/mc/vtg-bwp-mc

open a given file from /root/my-applications/mc/bwp1/ in leafpad:
leafpad /root/my-applications/mc/vtg-bwp-mc
leafpad /root/my-applications/mc/bwp1/def
leafpad /root/my-applications/mc/bwp1/gip
leafpad /root/my-applications/mc/bwp1/mon.html
leafpad /root/my-applications/mc/bwp1/mon1.html
leafpad /root/my-applications/mc/bwp1/mon1.5.html
leafpad /root/my-applications/mc/bwp1/mon2.html
leafpad /root/my-applications/mc/bwp1/san.html
leafpad /root/my-applications/mc/bwp1/san1.html
leafpad /root/my-applications/mc/bwp1/san1.5.html
leafpad /root/my-applications/mc/bwp1/san2.html
leafpad /root/my-applications/mc/bwp1/ser.html
leafpad /root/my-applications/mc/bwp1/ser1.html
leafpad /root/my-applications/mc/bwp1/ser1.5.html
leafpad /root/my-applications/mc/bwp1/ser2.html

open all in palemoon:
#/root/my-applications/mc/bwp1/def /root/my-applications/mc/bwp1/gip /root/my-applications/mc/vtg-bwp-mc
palemoon /root/my-applications/mc/bwp1/mon.html /root/my-applications/mc/bwp1/mon1.html /root/my-applications/mc/bwp1/mon1.5.html /root/my-applications/mc/bwp1/mon2.html /root/my-applications/mc/bwp1/san.html /root/my-applications/mc/bwp1/san1.html /root/my-applications/mc/bwp1/san1.5.html /root/my-applications/mc/bwp1/san2.html /root/my-applications/mc/bwp1/ser.html /root/my-applications/mc/bwp1/ser1.html /root/my-applications/mc/bwp1/ser1.5.html /root/my-applications/mc/bwp1/ser2.html

___
to get a table of contents/clickable index of these files for a browser launch, use their base directory:

defaultbrowser /root/my-applications/mc/bwp1/
palemoon /root/my-applications/mc/bwp1/
defaultbrowser /root/.config/rox.sourceforge.net/Templates/bwp1/ /root/my-applications/mc/bwp1/
palemoon /root/.config/rox.sourceforge.net/Templates/bwp1/ /root/my-applications/mc/bwp1/
firefox /root/.config/rox.sourceforge.net/Templates/bwp1/
palemoon /root/.config/rox.sourceforge.net/Templates/bwp1/
seamonkey /root/.config/rox.sourceforge.net/Templates/bwp1/ /root/my-applications/mc/bwp1/

(highlight groups of files and paste in their paths, use space (literally type a space--i don't know off hand the regex for space...\s?...and substitute it with a
in the find and replace boxes to swap what you get so it looks like the leafpad arrangement above (i used extend select and typed leafpad after that). most programs will respond to vtging the way the selection deposits it in a file (space rather than line delimited. i.e. usually selecting, middle clicking, and then adding the program followed by a space at the beginning of the line is enough "programming"/arranging of text.


---vtg---

to vtg bwp1s about, substitute path in line below:

cd /path/to/dir; bwpt

more: http://murga-linux.com/puppy/viewtopic. ... 583#991583

---mcc---
http://murga-linux.com/puppy/viewtopic. ... 162#884162

mkdir -p /file/bwp1/

cp -au /root/my-applications/mc/bwp1/ /file/bwp1/

^upcoming nwp shortcuts or overwrites. arc and ark are duplicates, so the above will likely end up as ark next pet or update (leaving arc as backup/archive default for bbwp)(this is the bwp)(or one of 12 versions of thiswordprocessor.html/wordprocessor.html)

nwp thread: http://murga-linux.com/puppy/viewtopic. ... 270#850270
A NWP/A NWPUS--A Noob's Word Processor and Utilities Suite
here it is as an attachment:
here's the attachment again:
Attachments
bwpt-mc.pet
(5.32 KiB) Downloaded 579 times

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

2 versions of the micro nwp now available

#98 Post by Puppus Dogfellow »

bwpt-mc updated as mcbwp.pet (9.6k) and bbwp updated as bwp1.4 (26k and includes the smaller one).

mcbwp.pet

bwp1.4.pet

common to both: smaller default font (change back to rem2 if zooming is an insufficient way of adjusting for you) more closely scales to paper rather than screen space (all templates overwritten with the adjustment); bwpt in a terminal makes the bwp1 template sets in a given directory; updated vtg and box1.html pages; BBWP and bbwp menu entries (in the smaller one it's more of a place holder for your first set of custom templates (edit /root/my-applications/bin/bwpt or make a set and edit the individual files, then load them onto the .desktop file or a script that it calls) --edit as you like but it's set for the larger launch gets the capital letters (this will be covered in a future post that covers the still being put together auxer function); box2.html is still a duplicate of box1; you can launch, save, and adjust names, spacing and font from the browser alone if you wish; pasting in to a justified area and pasting in justified text all seem to now work better in the blank templates;....


larger one has more default colors, templates, special characters, and text that's supposed to be there to help you use the thing. it also gets the nwp/pwn launcher shortcuts described above plus "ta," which is as comfortable a natural tab space in browser view as i've come up with so far (shift plus space bar, ta in the launcher that comes up).

change the internal and tag name, toggle editability on and off, and adjust fonts, spacing, and alignment from the box view (text editor's better but this makes for one fewer dependency) if you prefer to avoid the copying and pasting from the info/formatting tabs, you can still use that and pdf preview to see how it would look on the page without all the code in the way/you can double check your work through the browser.

paste in from any source, download to save as html or pdf, reload to reflect text edits in the browser and vice versa, back up any templates you want to preserve as these pets will both overwrite the old ones if their names haven't been changed.

next version will have a mini-nwp set as part of the mcc icon/labeling/copying folder as a kind of micro nuup (uuord processor/ultimatesque utilities pack); to illustrate calls to isolated mini-scripts by keys or launchers, i'm going to do it for the included vtg sheet as desktop files (which are either buttons or menu items, depending on how you look at it. then you can decide if a leafpad or geany launcher (or even bwp launcher, though i haven't tested one of those yet) makes any sense for you.

--p.dogfellow.

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

mcbwp "plugin" updated to mcbwp1; encompassing 1.5 updated

#99 Post by Puppus Dogfellow »

bwp1.5 (46k)
mcbwp1 (12k)

ewp--EmergencyWordProcessor.html (159k)
ewp--EmergencyWordProcessor.html.gz (25k)

box1.1.html (159k)
box1.1.html.xz (18k)

if you activate the swap (the script's name in the launcher or clicking the script will do it), alt+ctrl+space will add a tab space, and alt+shift+space will spit out the page break code.
larger bwp's desktop file now active (guess that howto will have to wait some more--the keys and indentation issue have gotten in the way), and box1 and 2 are no longer copies of one another; preloading the boxes with the templates and styles sheets (turns out you have to paste into and download from the first box regardless it seems) allows the file to recreate (possibly customized on the fly) the styles and templates sheets, and so is a word processor maker of a sort. the autoindenting paragraph templates will be the next update of the old pu/up (the first micro word processor spinoff in this thread), and you could use a special character or some sort of find and replace strategy after the fact, but if you want to type in tab spaces in browser mode, i think one solution could be to make a toggle of the space bar keys:




these are the built in spacebar shortcuts:

Code: Select all

<Key mask="A" key="space">exec:rox</Key>
<Key mask="C" key="space">exec:/nwp/ww</Key>
<Key mask="S" key="space">exec:/nwp/p</Key>
<Key mask="CA" key="space">exec:/nwp/rr</Key>
<Key mask="CS" key="space">exec:/nwp/cr</Key>
<Key mask="AS" key="space">exec:/nwp/t</Key>
<Key mask="CAS" key="space">exec:/nwp/rup</Key> 
(rup--up from the bottom of the rox bookmarks recents, t--terminal, cr--close all rox, rr--rox recents, p --main launcher, ww--MochiMoppel's WinSwitcher; names are launch codes and shorter is usually better, but there are a few that i've had to make because i've forgotten their convenient original name)


new nwp shortcuts and a couple of blanks for browser based word processor use:

Code: Select all

echo $'
#!/bin/sh
#newspacekeys /root/.jwm/jwmrc-personal
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /root/.jwm/jwmrc-personal
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /root/.jwm/jwmrc-personal
fixmenus; jwm -restart
' >/nwp/jtab
chmod 755 /nwp/jtab

echo $'
#!/bin/sh
#root3-9
#newkeys0:
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9/keys0
#root3-9
#newkeys1:
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9/keys1
fixmenus; jwm -restart
' >/nwp/spc9
chmod 755 /nwp/spc9

echo $'
#!/bin/sh
#root3-9m
#newkeys0:
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9menusblanks/keys0
#newkeys1:
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9menusblanks/keys1
fixmenus; jwm -restart
' >/nwp/spc9m
chmod 755 /nwp/spc9m

echo $'
#!/bin/sh
#root3-10
#newkeys0:
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/10/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/10/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/10/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/10/keys0
#root3-10
#newkeys1:
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/10/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/10/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/10/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/10/keys1
fixmenus; jwm -restart
' >/nwp/spc10
chmod 755 /nwp/spc10


#
#reverse:
#



echo $'
#!/bin/sh
#revkeys0:
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9/keys0
#revkeys1:
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9/keys1
fixmenus; jwm -restart
' >/nwp/spc9r
chmod 755 /nwp/spc9r
echo $'
#!/bin/sh
revkeys0:
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9menusblanks/keys0
#revkeys1:
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9menusblanks/keys1
fixmenus; jwm -restart
' >/nwp/spc9mr
chmod 755 /nwp/spc9mr
echo $'
#!/bin/sh
#revkeys0:
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/10/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/10/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/10/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/10/keys0
#revkeys1:
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/10/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/10/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/10/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/10/keys1
fixmenus; jwm -restart
' >/nwp/spc10r
chmod 755 /nwp/spc10r
echo $'
#!/bin/sh
#space key toggle back(jwmrc-p):
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /root/.jwm/jwmrc-personal
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /root/.jwm/jwmrc-personal
fixmenus; jwm -restart
' >/nwp/jtabr
chmod 755 /nwp/jtabr


#
#all at once:

#in:




echo $'
#!/bin/sh
#newspacekeys 
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /root/.jwm/jwmrc-personal
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9/keys0
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9/keys1
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9menusblanks/keys0 
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9menusblanks/keys1 
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/10/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/10/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/10/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/10/keys0
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/10/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/10/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/10/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/10/keys1
fixmenus; jwm -restart

' >/nwp/bwpk1
chmod 755 /nwp/bwpk1


#
#reverse:
#


echo $'
#!/bin/sh
#revkeys
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9/keys0
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9/keys1
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9menusblanks/keys0 
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9menusblanks/keys1 
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/10/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/10/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/10/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/10/keys0
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/10/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/10/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/10/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/10/keys1
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /root/.jwm/jwmrc-personal
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /root/.jwm/jwmrc-personal
fixmenus; jwm -restart

' >/nwp/bwpk1
chmod 755 /nwp/bwpk1r
you can copy them over from nwp to ~/my-apps/bin or the ~/my-apps/mc/scripts folder the pets make (already in the nwp, but if you didn't have it installed, it'd make them), and fill them out with chunks you hone from the vtg sheet.

here's a template for a couple of bwp helpers and a couple of blanks (plus cr as an example to show where you add the code). putting the code on a separate script rather than in the window manager file means you can adjust what the keys do without having to restart or reload the manager or fix the menus):

Code: Select all


echo $'
#!/bin/sh

rox -D /
' > /nwp/cr
chmod 755 /nwp/cr


echo $'
#!/bin/sh
#bwp helper 1--tab spaces for browser mode
xdotool type "     "
#set at five spaces
' > /nwp/bh1
chmod 755 bh1
echo $'
#!/bin/sh
#as key does same as paw in launcher
#page break after, white text (if any). paw.
xdotool type \'<par style="font-size: 11pt; color:white; page-break-after: always"></par>\'
#bwp helper two--page break code spit out for text editor view (there's a cut and paste version in styles2 that works in browser mode for bh1 and bh2)
' > /nwp/bh2
chmod 755 bh2

echo $'
#!/bin/sh

' > /nwp/bh3
chmod 755 bh3

echo $'
#!/bin/sh

' > /nwp/bh4
chmod 755 bh4


echo $'#!/bin/sh

' > /nwp/bh4
chmod 755 bh4

permissions are set--just fill out the content.

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#100 Post by Puppyt »

Darren P. Dogfellow,
I have lurked on your multiple threads from time to time, I admit that I have been overawed with all your content to try anything seriously. So many bright and shiny toys on offer - where does anyone start? I am strongly reminded of "Hunt the WUMPUS" from both your thread title and the maze of information and links you provide... as I work through it I get "Zap - Superbat snatched" and lose the wood for the trees. You are learning as you go too - thanks for all your updates and your enthusiasm for your projects. Keep it going! Anyway I have a little time to kill, and found that your initial impetus for your wordprocessor was from Nooby - so in my books that is a Good Thing. So I want in.
Just experimenting with bwp1.5 now, just picking any of your projects at random. Oooooh, I am having a bit of fun *trying* to break things and explore intuitively, but pleasantly surprised with what I can do here. Appreciate your gifs, but pretty-please could you post a video about cranking up and using the key features of your wordprocessor (and assorted JWM tweaks) ? Cheers :)

"I feel a draft..."
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

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

some overview

#101 Post by Puppus Dogfellow »

Puppyt wrote:Darren P. Dogfellow,
I have lurked on your multiple threads from time to time, I admit that I have been overawed with all your content to try anything seriously. So many bright and shiny toys on offer - where does anyone start? I am strongly reminded of "Hunt the WUMPUS" from both your thread title and the maze of information and links you provide... as I work through it I get "Zap - Superbat snatched" and lose the wood for the trees. You are learning as you go too - thanks for all your updates and your enthusiasm for your projects. Keep it going! Anyway I have a little time to kill, and found that your initial impetus for your wordprocessor was from Nooby - so in my books that is a Good Thing. So I want in.
make some templates--cv, stories with beginnings, middles, and ends, a place for class and name according to school rules, etc

Just experimenting with bwp1.5 now, just picking any of your projects at random. Oooooh, I am having a bit of fun *trying* to break things and explore intuitively, but pleasantly surprised with what I can do here.
excellent on both counts
Appreciate your gifs, but pretty-please could you post a video about cranking up and using the key features of your wordprocessor (and assorted JWM tweaks) ? Cheers Smile

_________________
you mean it's not self explanatory :cry: :oops:

"I feel a draft..."
:shock: 8) :lol:
(mere inspiration, i hope)

***

on a more serious note, what do you feel needs video clarification (i'm not adverse to the idea, just would have to figure out what to shoot that can't be "giffed" (i've been meaning to get some screen shots up for a while now--then thought maybe a pdf of gifs and info made by it to show some of what it can do--do i show my mouse cursor clicking the file and print menus?...), and what software to use and which machine to do it on).

as far as features for a nooby (and if by "i want in" you mean contribute, posting templates you've made as attachments to this thread may be the simplest way, but if you can hack the browser gui...that's be cool, too 8) 8) ) that are somewhat not word processor specific--i'm about to make a specific version of the keys for this word processor (bwp1.5 or any of those that type directly into a browser tab) for the make concurrent copies thread--i'd have to go hunt for code if not for "sehd" (sed help) in the launcher).

i'm glad there's enough there for you to "explore intuitively," and it should stand up to all manner of abuse (or repair itself by remaking itself), and i agree with your post in scsijon's Storywriting program for teenagers--it is potentially useful there. i see it as something you don't really need computer experience to use (no more fumbling around with this than menus and buttons of a new interface--people get to use a relatively familiar interface (their choice of browser, or at least the one they've seen before on the computer a relative, caregiver, or teacher is trying to get them to use--and all word processors should allow a tabbed interface, though lack of ability to key in a tab is somewhat of an annoyance (but less so if you haven't yet been conditioned to use it, i suppose)), but if you have some, you can somewhat painlessly gain a little more (page break code spit out from launcher in html (geany/leafpad/box1-2) view ("paw," which stands for pagebreak above whitetext(though blank)) is much faster than finding the page break spot to copy off of Styles2, copying it, and pasting into your document--it will get its own key in the mcc version, too (i was sort of building it up as a microcosm of this mess of a thread to serve as a almost brief explanation :P ).

anyway, i'll have some time coming up to do the visuals in a bit, but a quick tip i've picked up is that pasting in formatting for text (color, font, size) doesn't seem to rely on line breaks being copied, but paragraph formatting often does. sometimes it appears necessary to make room for the paste in by adding carriage returns to the target (pressing enter about where you want to new formatting to go before you paste), and sometimes it doesn't, so your own templates seem to be the best way to go about organizing things. pointing your browser at the directory that holds the templates (bwpt in a terminal will give you a set in any given directory, minus the big styles and info sheets and boxes--the box2 and 1.1 files can make more styles sheets) gives you a set of documents you can launch at a click. advantages over most other word processors is speed and multiview (same document viewed from many browsers or windows or tabs or text editors at once to keep many versions alive and your wake safe (so long as your machine doesn't crash, which leads to the next strength, robustness--any modern browser or text editor should work, and pdf and html are universal formats from what i can tell. you shouldn't lose your ability to view or work on your work no matter what OS you use.

it's fast and light on resources. templates load instantly and most have the browser running anyway, so it's almost invisible in that regard (not that it's not impossible to choke the machine with heaps of browsers running at once, each with multiple tabs and instances--it inspires that kind of abuse, whereas i remember lighting candles before using Word).

anyway, that's my sales pitch.

the jwm stuff (and the aemenu stuff that mirrors it) is the same idea as the custom keys and layers--make it easier to work on your documents--resize things, split the screens, --i use the lpx notepad everyday set at autostart--i don't notice it as a feature but i suppose "lpx" in the launcher is a key feature and organizational tool...

it's supposed to be easy to swap out the useless and annoying stuff for stuff that specifically fits your needs, whether we're talking wp or uup (word processor or ultimatesque utilities pack).

to get back to concerns mentioned in scsijon's thread--autoindentation is something html can do from what i've read, but i've failed at it on two for two templates so far. as far as autocapitalization of the first word in each sentence, libre office has "sentence case"; i thought that was a property of geany, but it can probably approximate it with a find and replace of some kind.


hth

-d

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#102 Post by Puppyt »

Hi Puppus - thanks for your lengthy and considered reply. I've been juggling projects on different computers/puppy environments since my last post - apologies for the delay.
My earlier statement for inclusion related to that irrepressible trailblazer, Nooby. Even now, nearly 2 years from his passing I find myself retreading his footsteps as I track down one issue or another on the forum. Like Nooby, I guess - I have occasional voids in my databank - what really does "VTG" even stand for?? Couln't find a definition in several threads and not in your 226-page users guide for nwp and vtg... That, unfortunately, could indicate to you the "Dummy's Guide"-level of understanding that I have in just obtaining your word processor - not even addressing template creation at this stage...

So - what do you recommend for a word-processor ONLY approach, pu/up (puup! or puup.1)? bwp1.5? emergency wp? nwp? While I appreciate the really useful series of launchers you included with an nwp package I downloaded - really liked 24 virtual desktops etc (selling you short sorry - it was a few days ago when I was testing) - I also really liked the jwm setup that I had going in radky's dpup stretch 7.5... couldn't get my tray2 back (or tray1 or menus), even after I uninstalled your pet. Perhaps an environment like your Precise spins or a basic official Puppy might be best for all your launchers and hotkeys etc - although I think that new users to Puppy/JWM/rox would benefit greatly from a cutdown version of your launchers to provide *all* the winkey combinations they are familiar with from the M$ environment.

With regards an introductory video about your nwp/enhanced geany, really I meant something straight-forward about getting in, and getting on with producing text without the distractions of the M$ Word model (e.g., comments outlined to a retrospective on WordStar. I think that much information you have written is also self-explanatory - but unfortunately I have not been able to pick the cherries of information out very cleanly at this stage. Although with regards to the Storywriting for Teenagers issue - I thought I saW [EDIT] from my re-readings of your jwm/geany/nwp threads this morning that you had the automatic new paragraph indent sorted, and that got me excited - but that ability isn't always resident?

I'm on a fresh install of Dpup Stretch now and will test out what I think are your word processor -only (without launchers and other enhancements) pets while I drum up a report for an academic governance wrangle... cheers :)

"I feel a draft..."
:shock: 8) :lol:
(mere inspiration, i hope)
Maybe - but don't sit downwind of me, just to be safe...
My obscure statement relates to the warning of a bottomless pit nearby in WUMPUS - American spelling though - so for Australian/English it appropriately reads here as a version of a manuscript. We would write "draught" for the same breeze... but on reading it we would get confused about whether we were talking about a wind or a beer... I'm thirsty now...
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

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

#103 Post by Puppus Dogfellow »

Puppyt wrote:Hi Puppus - thanks for your lengthy and considered reply. I've been juggling projects on different computers/puppy environments since my last post - apologies for the delay.
My earlier statement for inclusion related to that irrepressible trailblazer, Nooby. Even now, nearly 2 years from his passing I find myself retreading his footsteps as I track down one issue or another on the forum. Like Nooby, I guess - I have occasional voids in my databank - what really does "VTG" even stand for?? Couln't find a definition in several threads and not in your 226-page users guide for nwp and vtg... That, unfortunately, could indicate to you the "Dummy's Guide"-level of understanding that I have in just obtaining your word processor - not even addressing template creation at this stage...
Virtual Terminal (,)Geany (since that's the only thing it'll work on)
it's also sometimes the Virtual Geany Terminal

in short, the geany document you are working on becomes a terminal screen with persistent history and tabbed browsing. it's also indifferent to context--it'll only work on what the cursor is positioned for or what is highlighted. that is, if you're writing about leafpad

and at the above stage (ie the cursor is there because that's what you just wrote and arrowed back one on; if you don't arrow back you'll get a potential leafpad document called whatever the next word in your sentence is) press the cauliflower button, anything labeled vtg or vgt (or the same capitalized), or alt+z, leafpad will launch--it works for one liners by placing the cursor and then hitting the cauliflower, and any commands longer than one line work on the same principal but need to be highlighted.

it's a geany specific thing as far as being a launcher and menu system, but for non geany use, it's a series of text files that had commands i found useful or thought potentially useful as i was finding my way around this new working environment.

and that's where Nooby's concerns overlapped my own. puppy is light and quick, and the major word processors generally part of suites that are not; he wanted to be able to code his way to a formatted document with a text editor, and i wanted geany's tabs, speed, and reliability. i saw some code from miriam that i thought would help us both, but it turned out too late to be of use for Nooby. i didn't really know him well, but he seemed like a friendly and guiding presence, so i figured i'd pursue a common interest and see what he thought.

So - what do you recommend for a word-processor ONLY approach, pu/up (puup! or puup.1)? bwp1.5? emergency wp? nwp? While I appreciate the really useful series of launchers you included with an nwp package I downloaded - really liked 24 virtual desktops etc (selling you short sorry - it was a few days ago when I was testing) - I also really liked the jwm setup that I had going in radky's dpup stretch 7.5... couldn't get my tray2 back (or tray1 or menus), even after I uninstalled your pet. Perhaps an environment like your Precise spins or a basic official Puppy might be best for all your launchers and hotkeys etc - although I think that new users to Puppy/JWM/rox would benefit greatly from a cutdown version of your launchers to provide *all* the winkey combinations they are familiar with from the M$ environment.
i see now how buried some of the documentation has gotten and apologize. one of the features is supposed to be (worked last time i tried it in xenial32 and tahr64...and one of the six series slackos...--it's been a while since i've tested) quick switches for your configuration sets--your original pristine set (as far as jwm is concerned) was supposed to have been ported in as configuration 39; my39 in the launcher would've/should've given you back your original setup but allowed you to keep the launchers and functions (you'd need a new way to activate it, but the scripts it calls and files it uses would still be in place).

mae in the launcher and as a desktop file (also utility menu) allows piecemeal uninstallation of the rest of the thing. i seem to remember there being a version somewhere on the root1 menu, but all i'm seeing now is mod the configuration file helpers and quickswitches...

i'm in the process of making a cut down version of this that can be built up; maybe the giant thing that can be taken apart approach wasn't such a good idea, but i wanted to take my stuff with me as quickly as i could (for general use, that became the port and store features).

i'd recommend bwp1.5 since it gives you two initial launch choices instead of one. full screen in browser mode is a huge wasteland of usable, distraction free space. you can use a plain text editor and paste in and format after the fact--the Untitleds are blank--choose justification or left align to start. or just use one of the bwpt templates and write over what's there--save formatting examples you think you'll need (or use a separate copy for general templates, one for your working document and paste between them) until the end, then delete the excess.

if i had a serious report to do, i'd write it in geany, and format it after the fact in a bwp window after picking a font and spacing for the thing as a whole.

as far as the winkey, in jwm that's modifier 4 and i haven't used windows in a while and don't remember their original functions too well. the xmod pets that were "plugins" for the earlier versions include a way to use mod 3, but you'd have to pick a key to use for it (i generally pick pause break). with it, you can get 24 keys for anything, and the file you use can be swapped out with a quick rename--sets of 24 for any key (though five modifiers at a time may not work or be prohibitively silly, so 15 to 23 layers per key (mod 3 optional) times however many swap folders of scripts with the same name as what the keys call you have).

in short that's how the key banks and menus get swapped in, but the older approach relied more on sed, and this seems quicker and better (preview next post)--i kind of feel i've left you in a lurch and am trying to respond as quickly as i can (six in the morning here).

for the most part i've avoided assigning anything to the winkey, but i made templates for hundreds of combos that include it (playing around with substitutions and the then new for me select to copy middle click to paste linux feature ended with piles of keys and windows positioning scripts (etc)).
With regards an introductory video about your nwp/enhanced geany, really I meant something straight-forward about getting in, and getting on with producing text without the distractions of the M$ Word model (e.g., comments outlined to a retrospective on WordStar. I think that much information you have written is also self-explanatory - but unfortunately I have not been able to pick the cherries of information out very cleanly at this stage. Although with regards to the Storywriting for Teenagers issue - I thought I saW [EDIT] from my re-readings of your jwm/geany/nwp threads this morning that you had the automatic new paragraph indent sorted, and that got me excited - [/b]but that ability isn't always resident?

I'm on a fresh install of Dpup Stretch now and will test out what I think are your word processor -only (without launchers and other enhancements) pets while I drum up a report for an academic governance wrangle... cheers :)



i saw the concern in that thread and took interest because in browser mode, you can't use the tab key to enter a tab space--the specific solution being sought there would've worked here, but i more or less accept two modifiers plus the spacebar as a workable substitute for ctrl+enter for page break and tab for tabspace.

as far as the specific need for tabs and sentence case--a quick search led to a few promising stack exchange answers (and i'm sure the gurus here can polish them further if we ask nicely). there may be a simple dragto script that can be applied, or a text editor find and replace sequence that's fairly painless in that concern's future. i'm cool with tabbing in text editors and the spacebar solution for the browser owning the tab key.




"I feel a draft..."

:shock: 8) :lol:
(mere inspiration, i hope)


Maybe - but don't sit downwind of me, just to be safe...
My obscure statement relates to the warning of a bottomless pit nearby in WUMPUS - American spelling though - so for Australian/English it appropriately reads here as a version of a manuscript. We would write "draught" for the same breeze... but on reading it we would get confused about whether we were talking about a wind or a beer... I'm thirsty now...


i've known a few abysses in my time... but i thought of the ghosts of (a snorting and suddenly right behind me) Boxer, (a flatulent) Lou Reed, then the lyrics to Wish You Were Here...then Ogden Nash and Lewis Carrol. (searched wumpus and got videogames as most common result).

i could go for a porter or stout right now.

(Flying Dog or Sam Smith)

(that's suddenly and unfortunately become much more of my morning focus than practicing my bmx moves (i have zero skills) at the park...).

if by key features you meant the launcher shorts and versions, and the various keys--i need to do a repost of that stuff as well; for now, i think they're all at the bottom of the previous page (updated it then time turned the page on me).

hth.

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#104 Post by Puppyt »

Cheers Puppus - no I'm not in any dramas whatsoever, so don't hurry on my account. Thanks very much for the tip on the configuration 39 - in truth I need to be more proactive on backing up anyways :) And, I found that you have copious help files throughout your templates. I most recently tried puup.1 but had hassles actually getting started (from '/' install) - whereas eWp{EDITS}(bWp+box 1.1) runs OOTB and looks fine - cheers :) Strangely, I will have to re-download bwp1.5 as the version I had kept returning the weird result (attached). Absolutely nothing {wrong*} at your end. No rush - thanks again, most appreciated.

PS thanks for the VTG/VGT explanation too
*EDIT included - my setup is askew somehow - works fine in other tests
Attachments
Screenshot(1).jpg
not getting the usual pet installation dialogue
(53.04 KiB) Downloaded 496 times
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

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

before the new key mod, a little more on the launchers

#105 Post by Puppus Dogfellow »

http://murga-linux.com/puppy/viewtopic. ... 873#993873
Puppyt:

So - what do you recommend for a word-processor ONLY approach, pu/up (puup! or puup.1)? bwp1.5? emergency wp? nwp? While I appreciate the really useful series of launchers you included with an nwp package I downloaded - really liked 24 virtual desktops etc (selling you short sorry - it was a few days ago when I was testing) - I also really liked the jwm setup that I had going in radky's dpup stretch 7.5... couldn't get my tray2 back (or tray1 or menus), even after I uninstalled your pet. Perhaps an environment like your Precise spins or a basic official Puppy might be best for all your launchers and hotkeys etc - although I think that new users to Puppy/JWM/rox would benefit greatly from a cutdown version of your launchers to provide *all* the winkey combinations they are familiar with from the M$ environment.

the launchers are based on Iguleder's pexec001: http://www.murga-linux.com/puppy/viewto ... 234#544234

i eliminated the dash dependency (it still needs yad, which i think most pups have, at least in the ppm) and preloaded an address to the popup:

Code: Select all

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

$CMDLINE &
exit 0

it's that --entry-text "" bit that you have to change to get the thing to point to a specific location (batch of scripts with easy to type and remember names in an off path location i.e. a mini nwp) or to make it an application launcher (add a leafpad or geany or browsername to the quotation mark slot, skip a space, then mod the path as before and you'll either get a quick way to access extant files or a quick way to make new ones (new files opened with whatever name you give them may only work/has only been tried with the text editors ). the p launcher is a call to p- (the above file) plus and xdotool command to sweep right--the popup is prehighlighted in all the auxiliary launchers (you need to sweep right or your input will delete what's there--t calls a terminal, p is the main launcher, ll is the leafpad version, ...i'll repost the launcher shorts again soon as well).

with xdotool, the launchers can be made to access shortcuts and menus that work for any program--you just give the scripts that call the menus a name you can remember. for nwp use, it's original intent apart from moving around and resizing windows was to make it easy to enter the html code you'd need to make a formatted document with a text editor (assuming you didn't know markup (which i don't)). you could make the keys or the launcher call the files and codes and folders you need to do whatever you want faster than you could in just about any other way, i think.

my coding skills are particularly limited and i wasn't able to get the feature i wanted from pexec (preload a path and//or command) without losing its ability to store your command history (there originally was a dropdown menu of past commands you access). if you know how to put that feature back it could be of use apart from its original (lamentably gone) intent: you could access it, copy it, and make a vtg launch sheet from it. the new key mod assumes you'd want dozens of keys for every situation or program, and relies on folder swapping to do it, but with the vtg you could keep to fewer sets and mod them on the fly.

if you find the pets aren't installing smoothly i can add back the -reload and fixmenus lines to the pinstall as a possible solution. new key mod idea doesn't rely on the rest of the nwp, and i'll post the menu files that contain more or less all the paste in html code (and maybe the highlight and replace stuff, but that's more for the (in my opinion) more awkward and unpleasant html view of things--i'd much rather work in a plain text file or the browser window (blank or preformatted template) itself to start.

don't want you to risk another installation, but if my39/my39r doesn't put back your original setup and then toggle it back for the default nwp, something's broken, or at least incompatible with the pup you're running.

the mae popup and the alt one menu should give you ways to swap trays in or out and edit both them and the menus.

(my own interests are moving toward the smaller, mcc-folder based version).

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

update and cleanup

#106 Post by Puppus Dogfellow »

it's the last 2.5 updates from a few posts up, http://www.murga-linux.com/puppy/viewto ... 0d1#993194 (mcbwp "plugin" updated to mcbwp1; encompassing 1.5 updated), the removal of the extra launcher entries on various jwm menus, and a tip on how to edit them.

a power plant blew up in astoria while i was making the icons, but the file that grabbed the text versions of the two i picked for the ewp (black and green in upper and lowercase) survived. see a lighter alternative to the icon pack (http://murga-linux.com/puppy/viewtopic. ... 059#930059) for the file i used (included in the nwp in /root/my-applications/bin).

the spins use for the nwp is the same as general use for it, so that update is this update. from http://murga-linux.com/puppy/viewtopic. ... 08#1014808:
[...]
here's a firefox update (firefox64 32/64) thanks to fredx181.

from the notes and links document in the above folder:
if you've installed the nwp, you may've noticed the (likely) dead firefox entry on the alt+1/left click menu. if you enter

geany /nwp/root3/9/root1menu

into a terminal and scroll down to the bottom of the document, you'll see something like the following (yours may be set to /opt):

<Program label="Firefox Web Browser" icon="/nwp/root3/icons/Appfffirefox.png">/mnt/sda1/firefox/firefox</Program>

fred's version uses a script called ff to launch the browser, and when you download and extract the archive you'll find it somewhere like

/mnt/home/firefox-64.0-64-bit.tar.gz_extracted/firefox64/ff

highlight the ff script wherever you've downloaded it, copy that path into the geany document you opened to replace the bold faced path above (which might say /opt/firefox[…] on your version), save and close the document, and enter fixmenus; jwm -reload in a terminal (or use the entry for it that's also on that left click menu).
_____________


tried doing an x75 spin but the ppm broke, the extend select geany plug in didn't work correctly, and the the cnt nwp shortcut (at the very least) appears broken, but here are links to folders for xdotool and xpad and their dependencies (contains the gtk3 dependency some installations may need for the recent firefoxes (among other things)), the main workshop folder, and the geany plugins i snagged from ubuntu after my ppm went down (i was able to use an older version of sc0ttman's pkg to install sakura....

Pkg - CLI package manager

(as i said, it was an early version but it looks promising. added repos (seems easier than doing so though the ppm), but failed to install either recoll or vlc, both of which can be dependency hell...)).

anyway, i'll likely move to bionic beaver (32 by peebee and 64bit by 666philb) next (though i have an x75 running that --has been taken over), but you're welcome to treat it like a mystery to solve (post the solution when you find it). here are the folders:
xpadandxdotool
x7.64.5
geany127plugins

using a working (xdotool dependent) cnt script/shortcut, i made the update from nwp9 to nwp10, ewp1.pet (it's also a small standalone word processor (update aspects will just fail if there's nothing to update)--83k).

here's its pinstall script:

Code: Select all

#!/bin/sh
mv /usr/share/applications/icons-alt/desktops /nwp/wp/desktops
#fix for redundant menu entries (sometimes docs, sometimes utilities, sometimes both)
#rm -rf  /usr/share/applications/icons-alt/desktops 
#swap to # from the rm line to the mv line if you'd like to just delete the offending folder rather than save it for future mods/launchers
echo $'
#!/bin/sh
ln -s /usr/local/bin/defaultbrowser /root/Choices/URI/https
ln -s /usr/local/bin/xdg-open /usr/bin
' > /nwp/lolf
chmod 755 /nwp/lolf
#nwp shortcut for libreoffice unresponsive hyperlink fix --lolf is the shortcut; copy the ewp over to nwp/wp/ and make desktop files and icons for both launchers:
echo $'
 /* XPM */
static char *tmp_xpm[] = {
"21 13 4 1",
" 	c None",
". 	c #000000",
",	c #00FF00",
"#	c #00FF5F",
".....................",
".....................",
".....................",
".....................",
"..####...#...#.#.###.",
".#....#..#...#.##...#",
".#....#..#.#.#.#....#",
".######..#.#.#.#....#",
".#.......#.#.#.#....#",
".#....#..#.#.#.##...#",
"..####....#.#..#.###.",
"...............#.....",
"...............#.....",
""};
' > /root/puppy-reference/mini-icons/ewpa.xpm
echo $'
/* XPM */
static char *tmp_xpm[] = {
"21 13 4 1",
" 	c None",
". 	c #000000",
",	c #00FF00",
"#	c #00FF5F",
".....................",
".######..#...#.#####.",
".#.......#...#.#....#",
".#.......#...#.#....#",
".#.......#...#.#....#",
".####....#...#.#....#",
".#.......#...#.#####.",
".#.......#.#.#.#.....",
".#.......#.#.#.#.....",
".#.......#.#.#.#.....",
".######...#.#..#.....",
".....................",
".....................",
""};
' > /root/puppy-reference/mini-icons/ewpnwp.xpm
cp -f /root/my-applications/ewp--EmergencyWordProcessor.html /nwp/wp/ewp--EmergencyWordProcessor.html
#copy the file/word processor to the nwp itself (it'll be in the wp folder set to launch with your default browser.)
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=EWP
Icon=/root/puppy-reference/mini-icons/ewpnwp.xpm
Comment=ewp out of /nwp/wp
Exec=defaultbrowser /nwp/wp/ewp--EmergencyWordProcessor.html
Terminal=false
Type=Application
Categories=WordProcessor
GenericName=ewp--EmergencyWordProcessor.html
' > /usr/share/applications/ewp-nwp.desktop
#EWP outta nwp, ewp outta /root//my-apps
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=ewp
Icon=/root/puppy-reference/mini-icons/ewpa.xpm
Comment=ewp out of my apps bin
Exec=defaultbrowser /root/my-applications/ewp--EmergencyWordProcessor.html
Terminal=false
Type=Application
Categories=WordProcessor
GenericName=ewp--EmergencyWordProcessor.html
' > /usr/share/applications/ewp-a.desktop
#this stand alone is also an update and fix for the nwp (9 to 10), which would include the following two pets:
petget /tmp/bwp1.5.pet 
petget /tmp/mcbwp1.pet
fixmenus
jwm -reload
pet is last couple of updates and will fix the redundant launcher entries you may have on various root menus. it also installs the ewp and copies it over to nwp/wp--you get one version to launch from /root/my-applications/bin and one version to launch from /nwp/wp. if you haven't installed mcbwp1 or bwp1.5, you'll get pop ups asking if you'd like to.

lolf (libre office link fix) is a new shortcut--run it if you notice your hyperlinks not opening correctly in libreoffice (see link to mow9902's post above for more).

enjoy!
short form: install ewp1 on its own or to update nwp9 to nwp10 and get rid of redundant nwp/pwn menu entries.

-pd

bonus content:

add a mkdir -p /nwp/wp/ before the cp -f /root/my-applications/ewp--EmergencyWordProcessor.html /nwp/wp/ewp--EmergencyWordProcessor.html line or run it in a terminal before running the pet or install script if you don't have the nwp folder installed and would like two copies/locations from which to launch the The Emergency Word Processor--download the html version to /root/my-applications/bin and then run the pinstall script above (dump it into a terminal) and you'd have the ewp but not the bwp(1.5) or mcbwp(1).

if you don't have the nwp but would still like two locations for the ewp, copy the one from /root/my-applications/bin to wherever you like and change the Exec= line in the desktop file to reflect the browser you're using and where you've put the file.

___

here's the pet again:

ewp1.pet

here are forum attachments for the ewp.pet and The Emergency Word Processor as as a single html file (download the latter to /root/my-applications/bin and change the cp -f and exec= lines above to match your setup and you can install it without petting it in by dumping the pinstall script into a terminal--no harm will come from the inapplicable bits).
Attachments
ewp1.pet
(82.59 KiB) Downloaded 556 times
ewp--EmergencyWordProcessor.gz
change the fake .gz extension to .html (it's not compressed--the forum doesn't allow html extensions on this sort of thing). open with any modern browser.
(158.58 KiB) Downloaded 435 times

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

nwp isn't fully compatible with the bionic pups

#107 Post by Puppus Dogfellow »

first off, after installation enter /nwp/my39 to get your original jwm configuration back if you've installed this in bionicpup 32 or 64--all the other functionality is still there, but until i get things better sorted out, here's the fix (the alternative is screen shots every time you press the up arrow. it's the only real bug i've found so far, but it's a big one...)

i use this thing a lot so i got it working the fastest way i knew how to: drag the pwn launcher from /usr/share/applications/ and assign shift plus space bar to it with a right click in rox. then i relied on the aemenu duplicates to use this as i would normally. after a few days i decided i missed the vtg button, the geany jwm menu (root2 or middle click) so i altered the tray and personal files slightly. to do the same, enter

geany /root/.jwm/jwmrc-personal /root/.jwmrc-tray in a terminal and to jwmrc-personal, add

<Include>/nwp/root3/9/root2menu</Include> (i added mine between <!-- Key bindings --> and </WindowStyle>).

to jwmrc-tray add:

<TrayButton label="vtg" icon="c.machue-207.jpg" >exec:xdotool key ctrl+9 ctrl+8 Return F2 ctrl+7</TrayButton>
<TrayButton label="gny" icon="puppy-white.svg" border="true">root:2</TrayButton>

(i added it right after the main menu (<TrayButton label="Menu" icon="puppy-white.svg" border="true">root:3</TrayButton>) bit).

then enter fixmenus; jwm -restart into the terminal and you've got at least some of the jwm stuff and the vtg button back (v in the launcher also works).

jwm seems now less tolerant of blank icon and label fields, but icons made with the mcc icon maker (based on technosaurus's txt2xpm script) should still work; on the other hand, jpg's worked on the menu but not on the tray so i'm not sure what the deal is. (edit: just checked and at least one group of icons i thought were jpgs are actually pngs so maybe that does have something to do with the trouble).

other than two versions of take a screen shot (in jwm personal 1 and 2), i don't see anything in the pups themselves that cause the incompatibility beyond having a newer jwm--xenial seems to be the newest pup that this installs straight away in, but 666philb's 64 bit bionicpup includes all the geany plugins you'd need for those custom menus and launcher shortcuts to work, which no other pup before it has, so that's nice.

(in short, n in the launcher is the main nwp menu, and gg in the launcher is the geany launcher in aemenu. aef is all the aemenu menus as a popup. i'd also recommend dragging the lpx notetaker along with the pwn launcher to the desktop).

the Add A JWM Bookmarks Menu or Submenu/Messing Around With JWM thread (http://murga-linux.com/puppy/viewtopic.php?t=93637) has more on adding menus and buttons to your setup (generally and it shows how much of this word processor/utility suite came together).

--puppus.

edit:

the vtg line for ubuntu pups doesn't need the F2 in it and should read
<TrayButton label="vtg" icon="c.machue-207.jpg" >exec:xdotool key ctrl+9 ctrl+8 Return ctrl+7</TrayButton>

the two versions of the vtg activation code came about as a fix for the way geany works in slacko 700 (and possibly other slackos). the easiest way to check which one works better for you is to open up a document in geany, type out a command and see if shift plus spacebar plus v or plus vtg cleanly returns to the editing window (messenger window/terminal window shouldn't remain open once the vtg is done sending the command. use ctrl+7 if it's stuck open).

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

more workarounds for bionic and an update for MMView

#108 Post by Puppus Dogfellow »

here's the pet:
nwpfix4bionic+mmv419.pet

makes a backup of your current jwm configuration and adds as much of the the default nwp-jwm setup as i've gotten to work so far (many keycuts are gone--more info on the pinstall script):

Code: Select all

#!/bin/sh
mkdir -p /root/.jwm/con0/
#some of the keyboard functions still don't work under bionic 32/64, so i'll try to use xmodmap to compensate in a future version 
#for now, stay awayfrom the configuration swaps in bionic apart from this toggle (full retail plus shipping swaps should still work, but they'll likely have the same arrow bug i mentioned in the nwp thread. keycut and tray swaps won't work (apart from the toggle stock tray on or off and my39/my39r (the latter is prenwp and nwp default--first install toggle))--menu swaps should work but i haven't tested them yet
#use ctrl+7 if message window gets stays open when using vtg
#use the ll (two lowercase els) launcher command to pick between vtg and v (may as well make the shorter call to the one that works better. if v works better, nothing to do. if vtg works better, swap the # in the v file to the other line so that it works as well (save and close the file)).
 #backup original jwm configuration:
cp -f /root/.jwm/jwmrc-personal /root/.jwm/con0/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/con0/_root_.jwmrc
/etc/xdg/templates/_root_.jwmrc
#configuration swapper (original and bionic workaround) for nwp and the jwm folder:
 echo $'#!/bin/sh
#jwmc0
#!/bin/sh
cp -f /root/.jwm/con0/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/con0/jwmrc-personal /root/.jwm/jwmrc-personal 
 fixmenus
 jwm -restart
  ' > /root/.jwm/jwmc0
chmod 755 /root/.jwm/jwmc0
 echo $'#!/bin/sh
#jwmc1
#!/bin/sh
cp -f /root/.jwm/con1/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/con1/jwmrc-personal /root/.jwm/jwmrc-personal 
 fixmenus
 jwm -restart
  ' > /root/.jwm/jwmc1
 chmod 755 /root/.jwm/jwmc1
 echo $'#!/bin/sh
#jwmc0
#!/bin/sh
cp -f /root/.jwm/con0/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/con0/jwmrc-personal /root/.jwm/jwmrc-personal 
 fixmenus
 jwm -restart
  ' > /nwp/jwmc0
chmod 755 /nwp/jwmc0
  echo $'#!/bin/sh
#jwmc1
#!/bin/sh
cp -f /root/.jwm/con1/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/con1/jwmrc-personal /root/.jwm/jwmrc-personal 
 fixmenus
 jwm -restart
  ' > /nwp/jwmc1
 chmod 755 /nwp/jwmc1
 #jwmc1 or jwmc0 in the launcher to pick and activate a configuration
 #or go to /root/.jwm and click the activation scripts directly (modify the configuration files in the con1 con0 folders or future activations will overwrite your mods)
 #make icons and desktop files for jwm menu:
0txpm "jwmc0" >/root/puppy-reference/pixmaps/0tjwmc0.xpm
1txpm "jwmc1" >/root/puppy-reference/pixmaps/1tljwmc1.xpm

echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwm0
Icon=/root/puppy-reference/pixmaps/0tjwmc0.xpm
Comment=your jwm settings pre-nwp
Exec=/root/.jwm/jwmc0
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmc0.desktop

echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwm1
Icon=/root/puppy-reference/pixmaps/0tjwmc0.xpm
Comment=nwp/anuupuus workaround for bionic 32/64 (partial installation with toggle)
Exec=/root/.jwm/jwmc1
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmc1.desktop
 
 fixmenus
 jwm -restart
 
 # jwmc1 and jwmc0 are the launcher shortcuts for the swap (1 is original activated, 0 is bionic-nwp activated (far fewer keyboard mods by default--what works in other installations should still work))
 #p. dogfellow 4/25/19
here are the configuration files that get swapped in:

this is etc/../ _root_jwmrc:
<?xml version="1.0"?>

<JWM>

<!-- IMPORTANT, ONLY EDIT /etc/xdg/templates/_root_.jwmrc -->
<!-- jwm menu for puppy Linux -->
<RootMenu label="Menu" labeled="false" height="24" onroot="3">
<Include>/nwp/root3/menu3</Include>
<Program label="winswitcher" icon="ws.png">/nwp/ww</Program>
<Program label="speedials">/nwp/sd</Program>
<Program label="MMView" icon="dabullmv.png">/nwp/mmv</Program>
<Program label="applications">rox /usr/share/applications</Program>
<Desktops></Desktops>
<Program label="sakura">sakura</Program>
<Include>/root/places_submenu</Include>
<Program label="partview">partview</Program>

<Menu label="original menu" icon="" height="16">
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-desktop.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-system.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-setup.menu

<Separator/>

PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-utility.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-filesystem.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-graphic.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-document.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-calculate.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-personal.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-network.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-internet.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-multimedia.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-fun.menu
</Menu>
<Separator/>



<Menu label="Shutdown" icon="shutdown24.png" height="16">
<!-- <Exit confirm="false" label="Exit to prompt" icon="prompt16.xpm" /> -->
<Program label="Exit to prompt" icon="prompt16.xpm">exec wmexit</Program>
<Program label="Reboot computer" icon="mini-turn.xpm">exec wmreboot</Program>
<Program label="Power-off computer" icon="mini-stop.xpm">exec wmpoweroff</Program>
<Program label="Restart X server" icon="mini-x.xpm">restartwm</Program>
<Restart label="Restart JWM" icon="mini-windows.xpm"/>
<!-- <Program label="Change Window Manager" icon="mini-windows.xpm">changewm.sh</Program> -->
</Menu>

<Menu label="Shutdown+" icon="shutdown24.png" height="16">

<Include>/nwp/root3/menu3</Include>


<Program label="vtg" icon="">xdotool key ctrl+9 ctrl+8 Return ctrl+7</Program>
<Program label="winswitcher" icon="">/nwp/ww</Program>
<Desktops></Desktops>
<Program label="gnysys2" icon="help24.png">/nwp/gnysys2</Program>
<Include>/root/places_submenu</Include>
<Include>/nwp/root3/nwpmenujwm</Include>
<Menu label="menus submenu" icon="" height="16">
<Program label="windows menu" icon="" >xdotool key shift+Escape</Program>
<Program label="showdesktop" icon="" >xdotool key ctrl+Escape</Program>
<Program label="r1" icon="" >xdotool key alt+1</Program>
<Program label="r2" icon="" >xdotool key alt+2</Program>
<Program label="r3" icon="" >xdotool key alt+3</Program>
<Program label="r4" icon="" >xdotool key alt+4</Program>
<Program label="r5" icon="" >xdotool key alt+5</Program>
<Program label="r6" icon="" >xdotool key alt+6</Program>
<Program label="r7" icon="" >xdotool key alt+7</Program>
<Program label="r8" icon="" >xdotool key alt+8</Program>
<Program label="r9" icon="" >xdotool key alt+9</Program>
<Program label="r0" icon="" >xdotool key alt+0</Program>
<Program label="escape" icon="" >xdotool key Escape</Program>
<Program label="menu-f10" icon="" >xdotool key F10</Program>
<Program label="fullscreen" icon="" >xdotool key F11</Program>

<Program label="speedials">/nwp/sd</Program>
<Program label="applications">rox /usr/share/applications</Program>
<Include>/nwp/root3/singmon2</Include>
<Include>/nwp/root3/dubmon2</Include>

<Program label="sakura">sakura</Program>
<Include>/root/places_submenu</Include>
<Program label="partview">partview</Program>
<Program label="Restart X server" icon="mini-x.xpm">restartwm</Program>
<Restart label="Restart JWM" icon="mini-windows.xpm"/>
</Menu>
</Menu>
</RootMenu>

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

<Group>
<Class>Gaim</Class>
<Option>sticky</Option>
</Group>

<Group>
<Class>xmms</Class>
<Option>icon:xmms.xpm</Option>
</Group>

<Group>
<Class>absvolume</Class>
<Name>absvolume</Name>
<Option>nolist</Option>
</Group>

<Group>
<Name>xmessage</Name>
<!-- <Option>icon:info16.xpm</Option> -->
<Option>notitle</Option>
<Option>nolist</Option>
</Group>

<Group>
<Name>minixcal</Name>
<Option>nolist</Option>
<Option>layer:above</Option>
</Group>

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

<!-- created 130618, a class for all future popups -->
<Group>
<Class>splashwindow</Class>
<Option>nolist</Option>
<Option>layer:above</Option>
<Option>nofocus</Option>
</Group>

<!-- Additional tray attributes: autohide, width, border, layer, layout -->
<!-- Tray definition moved to separate file: .jwmrc-tray -->
<!-- <Include>/root/.jwmrc-tray</Include>-->

<!-- Visual Styles -->

<!-- <BorderStyle>
<Font>DejaVu Sans-10</Font>
<Width>4</Width>
<Height>19</Height>
<Foreground>black</Foreground>
<Background>gray90</Background>
<ActiveForeground>white</ActiveForeground>
<ActiveBackground>#4A5966</ActiveBackground>
</BorderStyle> -->

<!-- new for jwm 2.0, replaces borderstyle above -->
<WindowStyle>
<Font>DejaVu Sans-10</Font>
<Width>3</Width>
<Height>22</Height>
<Active>
<Text>black</Text>
<Title>#ffda51:#ffa100</Title>
<!-- <Corner>white</Corner> -->
<Outline>purple</Outline>
</Active>
<Inactive>
<Text>#aaaaaa</Text>
<Title>#fffa71:#ffda51</Title>
<!-- <Corner>#aaaaaa</Corner> -->
<Outline>gray70</Outline>
</Inactive>
</WindowStyle>
<PagerStyle>
<Outline>grey</Outline>
<Foreground>#7f7f7f</Foreground>
<Background>#333333</Background>
<ActiveForeground>#333333</ActiveForeground>
<ActiveBackground>#7f7f7f</ActiveBackground>
</PagerStyle>

<!--
<PagerStyle>
<Outline>black</Outline>
<Foreground>#ffc100</Foreground>
<Background>#ffc100</Background>
<ActiveForeground>#ff8100</ActiveForeground>
<ActiveBackground>#ffa100</ActiveBackground>
</PagerStyle>

<MenuStyle>
<Font>DejaVu Sans-10</Font>
<Foreground>black</Foreground>
<Background>#ffda51</Background>
<ActiveForeground>black</ActiveForeground>
<ActiveBackground>#ffda51:#ffa100</ActiveBackground>
</MenuStyle>-->
<MenuStyle>
<Font>DejaVu Sans-12</Font>
<Foreground>#A5A5A5</Foreground>
<Background>#181920</Background>
<ActiveForeground>#E2E2E2</ActiveForeground>
<ActiveBackground>#3F3F3F:#000000</ActiveBackground>
</MenuStyle>
<PopupStyle>
<Font>DejaVu Sans-11</Font>
<Outline>black</Outline>
<Foreground>black</Foreground>
<Background>#C9F9EB</Background>
</PopupStyle>

<!-- <Icons> -->
<!-- <IconPath>$HOME/.icons</IconPath> -->
<IconPath>/usr/local/lib/X11/mini-icons</IconPath>
<IconPath>/usr/local/lib/X11/pixmaps</IconPath>
<IconPath>/usr/share/pixmaps</IconPath>
<IconPath>/usr/local/share/pixmaps</IconPath>
<!-- </Icons> -->

<StartupCommand>
</StartupCommand>

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

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

<!-- Double click delta (in pixels) -->
<DoubleClickDelta>3</DoubleClickDelta>

<!-- The focus model (sloppy or click) -->
<FocusModel>click</FocusModel>

<!-- The snap mode (none, screen, or border) -->
<SnapMode distance="10">border</SnapMode>

<!-- The move mode (outline or opaque) -->
<MoveMode>opaque</MoveMode>

<!-- The resize mode (outline or opaque) -->
<ResizeMode>opaque</ResizeMode>

<!-- Key bindings -->
<Key key="Up">up</Key>
<Key key="Down">down</Key>
<Key key="Right">right</Key>
<Key key="Left">left</Key>
<Key key="h">left</Key>
<Key key="j">down</Key>
<Key key="k">up</Key>
<Key key="l">right</Key>
<Key key="Return">select</Key>
<Key key="Escape">escape</Key>

<Key mask="A" key="Tab">next</Key>
<Key mask="A" key="F4">close</Key>
<Key mask="A" key="#">desktop#</Key>
<Key mask="A" key="F1">root:3</Key>
<Key mask="A" key="F2">window</Key>

<!-- <Include>/root/.jwm/themes/jwm-default</Include> -->
<Include>/root/.jwm/jwmrc-theme</Include>
<Include>/root/.jwm/jwmrc-personal</Include>
</JWM>
here's /root/.jwm/jwmrc-personal:
<!-- Personally configurable options for JWM: these override default settings and theme settings -->

<JWM>
<Include>/root/places_submenu</Include>
<IconPath>/nwp/icons</IconPath>
<IconPath>/nwp/root3/icons</IconPath>
<IconPath>/usr/share/applications/icons-alt</IconPath>
<IconPath>/usr/share/applications/icons-alt/lab</IconPath>

<Include>/root/places_submenu</Include>
<Include>/nwp/root3/9/topright</Include>
<Include>/nwp/root3/9/3.jwmrc-tray</Include>
<Include>/nwp/root3/9/vtray1</Include>
<!--<Include>/nwp/root3/9/top2</Include>-->
<!--<Include>/nwp/root3/9/2.jwmrc-tray</Include>-->
<!--<Include>/nwp/root3/9/vtray2</Include>-->
<!--<Include>/nwp/root3/9/vtray3</Include>-->
<!--<Include>/nwp/root3/9/vtray4</Include>-->


<!--<Include>/nwp/root3/10/vtray1</Include>-->
<!--<Include>/nwp/root3/10/vtray2</Include>-->
<!--<Include>/nwp/root3/10/vtray3</Include>-->
<!--<Include>/nwp/root3/10/vtray4</Include>-->
<!--<Include>/nwp/root3/10/2.jwmrc-tray</Include>-->
<!--<Include>/nwp/root3/10/3.jwmrc-tray</Include>-->
<!--<Include>/nwp/root3/10/topright</Include>-->
<!--<Include>/nwp/root3/10/top2</Include>-->

<!--<Include>/nwp/root3/9menusblanks/vtray1</Include>-->
<!--<Include>/nwp/root3/9menusblanks/vtray2</Include>-->
<!--<Include>/nwp/root3/9menusblanks/vtray3</Include>-->
<!--<Include>/nwp/root3/9menusblanks/vtray4</Include>-->
<!--<Include>/nwp/root3/9menusblanks/2.jwmrc-tray</Include>-->
<!--<Include>/nwp/root3/9menusblanks/3.jwmrc-tray</Include>-->
<!--<Include>/nwp/root3/9menusblanks/topright</Include>-->
<!--<Include>/nwp/root3/9menusblanks/top2</Include>-->


<!--<Include>/root/.jwmrc-tray</Include>-->

<Include>/nwp/root3/9/root0menu</Include>
<Include>/nwp/root3/9/root1menu</Include>
<Include>/nwp/root3/9/root2menu</Include>
<Include>/nwp/root3/9/root4menu</Include>
<Include>/nwp/root3/9/root5menu</Include>
<Include>/nwp/root3/9/root6menu</Include>
<Include>/nwp/root3/9/root7menu</Include>
<Include>/nwp/root3/9/root8menu</Include>
<Include>/nwp/root3/9/root9menu</Include>

<!-- <TrayButton label="1">root:1</TrayButton> -->
<!-- <TrayButton label="2">root:2</TrayButton> -->
<!-- <TrayButton label="4">root:4</TrayButton> -->
<!-- <TrayButton label="5">root:5</TrayButton> -->
<!-- <TrayButton label="6">root:6</TrayButton> -->
<!-- <TrayButton label="7">root:7</TrayButton> -->
<!-- <TrayButton label="8">root:8</TrayButton> -->
<!-- <TrayButton label="9">root:9</TrayButton> -->
<!-- <TrayButton label="0">root:0</TrayButton> -->


<!-- Number of virtual desktops -->
<Desktops width="8" height="3"/>


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

<!-- Double click delta (in pixels) -->
<DoubleClickDelta>3</DoubleClickDelta>

<!-- The focus model (sloppy or click) -->
<FocusModel>click</FocusModel>

<!-- The snap mode (none, screen, or border) -->
<SnapMode distance="10">none</SnapMode>

<!-- The move mode (outline or opaque) -->
<MoveMode coordinates="off" delay="700">opaque</MoveMode>

<!-- The resize mode (outline or opaque) -->
<ResizeMode coordinates="off" >opaque</ResizeMode>

<WindowStyle>
<Height>30</Height>
<Width>3</Width>
<Corner>0</Corner>
</WindowStyle>

<!-- Key bindings -->


<Include>/root/.jwm/keys-sd</Include>


<Key key="Up">up</Key>
<Key key="Down">down</Key>
<Key key="Right">right</Key>
<Key key="Left">left</Key>
<Key key="h">left</Key>
<Key key="j">down</Key>
<Key key="k">up</Key>
<Key key="l">right</Key>
<Key key="Return">select</Key>
<Key key="Escape">escape</Key>
<Key key="F12">root:3</Key>

<Key mask="A" key="Tab">next</Key>
<Key mask="A" key="F4">close</Key>
<Key mask="A" key="F10">maximize</Key>
<Key mask="A" key="F6">minimize</Key>


<Key mask="A" key="F2">window</Key>
<Key mask="A" key="F1">root:3</Key>
<Key keycode="160">exec:amixer sset Master toggle</Key>
<Key keycode="176">exec:amixer sset Master 1+,1+</Key>
<Key keycode="174">exec:amixer sset Master 1-,1-</Key>
<Key keycode="178">exec:defaultbrowser</Key>
<Key keycode="236">exec:defaultbrowser</Key>
<Key key="Print">exec:defaultscreenshot</Key>


<Key mask="A" key="space">exec:rox</Key>
<Key mask="C" key="space">exec:/nwp/ww</Key>


<Key mask="AS" key="space">exec:/nwp/t</Key>
<Key mask="CAS" key="space">exec:/nwp/rup</Key>
<Key mask="4" key="space">exec:mmv</Key>

<Key mask="4A" key="space">exec:sd</Key>
<Key mask="4C" key="space">exec:/nwp/sdr</Key>
<Key mask="4S" key="space">exec:/nwp/bm</Key>
<Key mask="S" key="space">exec:/nwp/p</Key>
<!--
^added back the shift plus space keycut--not sure why it wasn't work first go around...

<Key mask="A" key="#">desktop#</Key>
<Key mask="S" key="F1">root:1</Key>
<Key mask="S" key="F2">root:2</Key>

<Key mask="CA" key="space">exec:/nwp/rr</Key>
<Key mask="CS" key="space">exec:/nwp/cr</Key>

<Key mask="A" key="z">exec:/nwp/vtg</Key>
<Key mask="4" key="Tab">exec:/nwp/tabspace</Key>

<Key mask="A" key="Print">exec:xdotool key space space space space</Key>
<Key mask="CA" key="space">exec:/nwp/v</Key>
<Key mask="CS" key="space">exec:/nwp/tabspace</Key>
<Key mask="4" key="Tab">exec:xdotool type ' '</Key>
<Key mask="A4" key="Tab">previous</Key>
<Key mask="A" key="z">exec:xdotool key ctrl+9 ctrl+8 Return ctrl+7</Key>


<Key mask="A" key="Print">exec:xdotool key space space space space</Key>
<Key mask="4" key="Print">exec:xdotool key ctrl+9 ctrl+8 Return ctrl+7</Key>
<Key mask="A4" key="Print">previous</Key>
<Key key="179">previous</Key>

152 255 148 179

<Key key="152">exec:xdotool key space space space space</Key>
<Key key="255">exec:xdotool key ctrl+9 ctrl+8 Return ctrl+7</Key>
<Key key="148">previous</Key>


<Key mask="S" key="F1">exec:xdotool key space space space space</Key>
<Key mask="S" key="F2">exec:xdotool key ctrl+9 ctrl+8 Return ctrl+7</Key>
(^commented bits that failed...)
-->

</JWM>
and here's the key file (keys-sd) swapped in (24 desktops, s4 send-tos, and alt plus 0-9 keycuts for the menus work)
<JWM>
<Key mask="A" key="1">root:1</Key>
<Key mask="A" key="2">root:2</Key>
<Key mask="A" key="3">root:3</Key>
<Key mask="A" key="4">root:4</Key>
<Key mask="A" key="5">root:5</Key>
<Key mask="A" key="6">root:6</Key>
<Key mask="A" key="7">root:7</Key>
<Key mask="A" key="8">root:8</Key>
<Key mask="A" key="9">root:9</Key>
<Key mask="A" key="0">root:0</Key>

<Key mask="4" key="1">exec:/nwp/n1</Key>
<Key mask="4" key="2">exec:/nwp/n2</Key>
<Key mask="4" key="3">exec:/nwp/n3</Key>
<Key mask="4" key="4">exec:/nwp/n</Key>
<Key mask="4" key="5">exec:/nwp/tem</Key>
<Key mask="4" key="6">exec:/nwp/uh</Key>
<Key mask="4" key="7">exec:/nwp/ii</Key>
<Key mask="4" key="8">exec:/nwp/pbw</Key>
<Key mask="4" key="9">exec:/nwp/paw</Key>
<Key mask="4" key="0">exec:/nwp/elp</Key>

<Key mask="4" key="F12">exec:/nwp/d12</Key>
<Key mask="4" key="F11">exec:/nwp/d11</Key>
<Key mask="4" key="F10">exec:/nwp/d10</Key>
<Key mask="4" key="F9">exec:/nwp/d9</Key>
<Key mask="4" key="F8">exec:/nwp/d8</Key>
<Key mask="4" key="F7">exec:/nwp/d7</Key>
<Key mask="4" key="F6">exec:/nwp/d6</Key>
<Key mask="4" key="F5">exec:/nwp/d5</Key>
<Key mask="4" key="F4">exec:/nwp/d4</Key>
<Key mask="4" key="F3">exec:/nwp/d3</Key>
<Key mask="4" key="F2">exec:/nwp/d2</Key>
<Key mask="4" key="F1">exec:/nwp/d1</Key>

<Key mask="4A" key="F12">exec:/nwp/d24</Key>
<Key mask="4A" key="F11">exec:/nwp/d23</Key>
<Key mask="4A" key="F10">exec:/nwp/d22</Key>
<Key mask="4A" key="F9">exec:/nwp/d21</Key>
<Key mask="4A" key="F8">exec:/nwp/d20</Key>
<Key mask="4A" key="F7">exec:/nwp/d19</Key>
<Key mask="4A" key="F6">exec:/nwp/d18</Key>
<Key mask="4A" key="F5">exec:/nwp/d17</Key>
<Key mask="4A" key="F4">exec:/nwp/d16</Key>
<Key mask="4A" key="F3">exec:/nwp/d15</Key>
<Key mask="4A" key="F2">exec:/nwp/d14</Key>
<Key mask="4A" key="F1">exec:/nwp/d13</Key>
<!-- go to desktops 1-24-->

<Key mask="4C" key="F12">exec:/nwp/s12</Key>
<Key mask="4C" key="F11">exec:/nwp/s11</Key>
<Key mask="4C" key="F10">exec:/nwp/s10</Key>
<Key mask="4C" key="F9">exec:/nwp/s9</Key>
<Key mask="4C" key="F8">exec:/nwp/s8</Key>
<Key mask="4C" key="F7">exec:/nwp/s7</Key>
<Key mask="4C" key="F6">exec:/nwp/s6</Key>
<Key mask="4C" key="F5">exec:/nwp/s5</Key>
<Key mask="4C" key="F4">exec:/nwp/s4</Key>
<Key mask="4C" key="F3">exec:/nwp/s3</Key>
<Key mask="4C" key="F2">exec:/nwp/s2</Key>
<Key mask="4C" key="F1">exec:/nwp/s1</Key>

<Key mask="4S" key="F12">exec:/nwp/s24</Key
<Key mask="4S" key="F11">exec:/nwp/s23</Key>
<Key mask="4S" key="F10">exec:/nwp/s22</Key>
<Key mask="4S" key="F9">exec:/nwp/s21</Key>
<Key mask="4S" key="F8">exec:/nwp/s20</Key>
<Key mask="4S" key="F7">exec:/nwp/s19</Key>
<Key mask="4S" key="F6">exec:/nwp/s18</Key>
<Key mask="4S" key="F5">exec:/nwp/s17</Key>
<Key mask="4S" key="F4">exec:/nwp/s16</Key>
<Key mask="4S" key="F3">exec:/nwp/s15</Key>
<Key mask="4S" key="F2">exec:/nwp/s14</Key>
<Key mask="4S" key="F1">exec:/nwp/s13</Key>
<JWM>
toggle for the configuration will also work in already working nwp installs--you'll just lose the key and tray swaps, but you'll gain a general backup of your currently working setup and a version to mess with.

if you've set the nwp/pwn launcher shortcut already with rox, move the spacebar plus shift line back between the <!-- --> or delete the rox shortcut (which would work regardless of config choice so maybe it's better overall).

there were some errors on the original nwp root three menu--they're fixed above in dark red. open (geany /etc/xdg/templates/_root_.jwmrc) /etc/xdg/templates/_root_.jwmrc and fix that manually. add the shortcut for Mochi Moppel's MMView (http://murga-linux.com/puppy/viewtopic. ... 325#941325) while you're there.

-p.dogfellow

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

terminal text editors and nwp utilities for them

#109 Post by Puppus Dogfellow »

micro1.4.1-nuupn32n64.pet

https://micro-editor.github.io/
https://www.nano-editor.org/

getmicro to install micro editor in either the launcher or terminal or use the micro batch launch folders renamed to the text editor of your choice. the nano pet popups will overwrite their alternative's config file but back it up--just install the one(s) that match your pup's architecture (say no to 64 bit if running a 32 bit pup and vice versa). as far as i know, 293 is the newest nano pups up to bionic can run. micro's a bit more user friendly but you can fiddle around with the configuration files for both. most of this is adapted from http://murga-linux.com/puppy/viewtopic. ... 71#1030571, the posts below it, and from pupli repo/word processing and related/nwp+vtg/recs and notes/notes2.

here's the contents of the pet:

Code: Select all

root# pwd
./micro1.4.1-nuupn32n64.pet_extracted/micro1.4.1-nuupn32n64
root# tree
.
├── pet.specs
├── pinstall.sh
├── root
│   ├── my-applications
│   │   └── bin
│   │       ├── note
│   │       ├── notesm
│   │       └── notesn
│   └── puppy-reference
│       └── mini-icons
├── tmp
│   ├── nano293-32md.pet
│   ├── nano293-32.pet
│   ├── nano293-64md.pet
│   └── nano293-64.pet
└── usr
    └── share
        └── applications

9 directories, 9 files
(basepet right click rox shortcut (right click utility under new) gives the usr folder--nothing in it but the empty defaults)

pinstall:

Code: Select all

#!/bin/sh
mv /nwp/wp/0n4n /nwp/wp/0n4n-0
cd /root/.config/rox.sourceforge.net/Templates/
note
cd /nwp/wp
note
/root/my-documents/
note
echo $'#!/bin/sh
cd  /root/my-applications/bin/
curl https://getmic.ro | bash
chmod 755 /root/my-applications/bin/micro
' > /root/my-applications/bin/getmicro
chmod 755 /root/my-applications/bin/getmicro
echo $'#!/bin/sh
cd  /root/my-applications/bin/
curl https://getmic.ro | bash
chmod 755 /root/my-applications/bin/micro
' > /nwp/getmicro
chmod 755 /nwp/getmicro

#[...]
#default is to open up with rxvt (which you can swap out above) and to open the templates as created by the micro pet's pinstall script. you can change that too--overwrite the nwp and regular PATH versions with your custom jobbies.#
##
#i'm in the process of releasing a general/migration (anuupuus) update for the recent additions and changes, so some of this stuff may seem redundant, but the extra's to be altered (or maybe i've abandoned an idea and left part of it in...)#
#
#the next batch of launcher shortcuts are still focused on the terminal text editors. most of them will either launch a batch from the desktop or terminal, but some will launch batches of batches in tmux windows. the basic breakdown of that launcher code is the first number is how many tmux panels will be filled with text editors launching batches of files; second is n for nano or m for micro as the coices for editor; next is version number (for either nwp/pwn or regular terminal--i.e. your renaming scheme goes here; letter that follows version number is s for sakura, u for urxvt, r for rxvt, rx for roxterm, l for txterminal; last letter is an optional n to say whether the version of, for example, nanb in my apps bin is being called or the one in nwp is being called. default is they're the same. alter for your placement of the (renamable) 0n4n/0m4u folders (scripts within folders are ignorant of of their parent folder and launch differently than the nwp and PATH versions (i.e. they're portable).#
##
#___#
##
#next bit is#
##
#Code:	
#tebatches
echo $'#!/bin/sh
nano /nwp/wp/0n4n/1/*
' > /root/my-applications/bin/nan1
chmod 755 /root/my-applications/bin/nan1
echo $'#!/bin/sh
nano /nwp/wp/0n4n/2/*
' > /root/my-applications/bin/nan2
chmod 755 /root/my-applications/bin/nan2
echo $'#!/bin/sh
nano /nwp/wp/0n4n/a/*
' > /root/my-applications/bin/nana
chmod 755 /root/my-applications/bin/nana
echo $'#!/bin/sh
nano /nwp/wp/0n4n/b/*
' > /root/my-applications/bin/nanb
chmod 755 /root/my-applications/bin/nanb
echo $'#!/bin/sh
nano /nwp/wp/0n4n/c/*
' > /root/my-applications/bin/nanc
chmod 755 /root/my-applications/bin/nanc

echo $'#!/bin/sh
micro /nwp/wp/0m4u/1/*
' > /root/my-applications/bin/mic1
chmod 755 /root/my-applications/bin/mic1
echo $'#!/bin/sh
micro /nwp/wp/0m4u/2/*
' > /root/my-applications/bin/mic2
chmod 755 /root/my-applications/bin/mic2
echo $'#!/bin/sh
micro /nwp/wp/0m4u/a/*
' > /root/my-applications/bin/mica
chmod 755 /root/my-applications/bin/mica
echo $'#!/bin/sh
micro /nwp/wp/0m4u/b/*
' > /root/my-applications/bin/micb
chmod 755 /root/my-applications/bin/micb
echo $'#!/bin/sh
micro /nwp/wp/0m4u/c/*
' > /root/my-applications/bin/micc
chmod 755 /root/my-applications/bin/micc

echo $'#!/bin/sh
micro /nwp/wp/0n4n/1/*
' > /root/my-applications/bin/mnan1
chmod 755 /root/my-applications/bin/mnan1
echo $'#!/bin/sh
micro /nwp/wp/0n4n/2/*
' > /root/my-applications/bin/mnan2
chmod 755 /root/my-applications/bin/mnan2
echo $'#!/bin/sh
micro /nwp/wp/0n4n/a/*
' > /root/my-applications/bin/mnana
chmod 755 /root/my-applications/bin/mnana
echo $'#!/bin/sh
micro /nwp/wp/0n4n/b/*
' > /root/my-applications/bin/mnanb
chmod 755 /root/my-applications/bin/mnanb
echo $'#!/bin/sh
micro /nwp/wp/0n4n/c/*
' > /root/my-applications/bin/mnanc
chmod 755 /root/my-applications/bin/mnanc
echo $'#!/bin/sh
nano /nwp/wp/0m4u/1/*
' > /root/my-applications/bin/nmic1
chmod 755 /root/my-applications/bin/nmic1
echo $'#!/bin/sh
nano /nwp/wp/0m4u/2/*
' > /root/my-applications/bin/nmic2
chmod 755 /root/my-applications/bin/nmic2
echo $'#!/bin/sh
nano /nwp/wp/0m4u/a/*
' > /root/my-applications/bin/nmica
chmod 755 /root/my-applications/bin/nmica
echo $'#!/bin/sh
nano /nwp/wp/0m4u/b/*
' > /root/my-applications/bin/nmicb
chmod 755 /root/my-applications/bin/nmicb
echo $'#!/bin/sh
nano /nwp/wp/0m4u/c/*
' > /root/my-applications/bin/nmicc
chmod 755 /root/my-applications/bin/nmicc

echo $'#!/bin/sh
mp /nwp/wp/0n4n/1/*
' > /root/my-applications/bin/mpn1
chmod 755 /root/my-applications/bin/mpn1
echo $'#!/bin/sh
mp /nwp/wp/0n4n/2/*
' > /root/my-applications/bin/mpn2
chmod 755 /root/my-applications/bin/mpn2
echo $'#!/bin/sh
mp /nwp/wp/0n4n/a/*
' > /root/my-applications/bin/mpna
chmod 755 /root/my-applications/bin/mpna
echo $'#!/bin/sh
mp /nwp/wp/0n4n/b/*
' > /root/my-applications/bin/mpnb
chmod 755 /root/my-applications/bin/mpnb
echo $'#!/bin/sh
mp /nwp/wp/0n4n/c/*
' > /root/my-applications/bin/mpnc
chmod 755 /root/my-applications/bin/mpnc
echo $'#!/bin/sh
mp /nwp/wp/0m4u/1/*
' > /root/my-applications/bin/mpu1
chmod 755 /root/my-applications/bin/mpu1
echo $'#!/bin/sh
mp /nwp/wp/0m4u/2/*
' > /root/my-applications/bin/mpu2
chmod 755 /root/my-applications/bin/mpu2
echo $'#!/bin/sh
mp /nwp/wp/0m4u/a/*
' > /root/my-applications/bin/mpua
chmod 755 /root/my-applications/bin/mpua
echo $'#!/bin/sh
mp /nwp/wp/0m4u/b/*
' > /root/my-applications/bin/mpub
chmod 755 /root/my-applications/bin/mpub
echo $'#!/bin/sh
mp /nwp/wp/0m4u/c/*
' > /root/my-applications/bin/mpuc
chmod 755 /root/my-applications/bin/mpuc

echo $'#!/bin/sh
geany /nwp/wp/0n4n/1/*
' > /root/my-applications/bin/gn1
chmod 755 /root/my-applications/bin/gn1
echo $'#!/bin/sh
geany /nwp/wp/0n4n/2/*
' > /root/my-applications/bin/gn2
chmod 755 /root/my-applications/bin/gn2
echo $'#!/bin/sh
geany /nwp/wp/0n4n/a/*
' > /root/my-applications/bin/gna
chmod 755 /root/my-applications/bin/gna
echo $'#!/bin/sh
geany /nwp/wp/0n4n/b/*
' > /root/my-applications/bin/gnb
chmod 755 /root/my-applications/bin/gnb
echo $'#!/bin/sh
geany /nwp/wp/0n4n/c/*
' > /root/my-applications/bin/gnc
chmod 755 /root/my-applications/bin/gnc
echo $'#!/bin/sh
geany /nwp/wp/0m4u/1/*
' > /root/my-applications/bin/gu1
chmod 755 /root/my-applications/bin/gu1
echo $'#!/bin/sh
geany /nwp/wp/0m4u/2/*
' > /root/my-applications/bin/gu2
chmod 755 /root/my-applications/bin/gu2
echo $'#!/bin/sh
geany /nwp/wp/0m4u/a/*
' > /root/my-applications/bin/gua
chmod 755 /root/my-applications/bin/gua
echo $'#!/bin/sh
geany /nwp/wp/0m4u/b/*
' > /root/my-applications/bin/gub
chmod 755 /root/my-applications/bin/gub
echo $'#!/bin/sh
geany /nwp/wp/0m4u/c/*
' > /root/my-applications/bin/guc
chmod 755 /root/my-applications/bin/guc

echo $'#!/bin/sh
geany -i /nwp/wp/0n4n/1/*
' > /root/my-applications/bin/gin1
chmod 755 /root/my-applications/bin/gin1
echo $'#!/bin/sh
geany -i /nwp/wp/0n4n/2/*
' > /root/my-applications/bin/gin2
chmod 755 /root/my-applications/bin/gin2
echo $'#!/bin/sh
geany -i /nwp/wp/0n4n/a/*
' > /root/my-applications/bin/gina
chmod 755 /root/my-applications/bin/gina
echo $'#!/bin/sh
geany -i /nwp/wp/0n4n/b/*
' > /root/my-applications/bin/ginb
chmod 755 /root/my-applications/bin/ginb
echo $'#!/bin/sh
geany -i /nwp/wp/0n4n/c/*
' > /root/my-applications/bin/ginc
chmod 755 /root/my-applications/bin/ginc
echo $'#!/bin/sh
geany -i /nwp/wp/0m4u/1/*
' > /root/my-applications/bin/giu1
chmod 755 /root/my-applications/bin/giu1
echo $'#!/bin/sh
geany -i /nwp/wp/0m4u/2/*
' > /root/my-applications/bin/giu2
chmod 755 /root/my-applications/bin/giu2
echo $'#!/bin/sh
geany -i /nwp/wp/0m4u/a/*
' > /root/my-applications/bin/giua
chmod 755 /root/my-applications/bin/giua
echo $'#!/bin/sh
geany -i /nwp/wp/0m4u/b/*
' > /root/my-applications/bin/giub
chmod 755 /root/my-applications/bin/giub
echo $'#!/bin/sh
geany -i /nwp/wp/0m4u/c/*
' > /root/my-applications/bin/giuc
chmod 755 /root/my-applications/bin/giuc
#
#reverse: same as above but with nano opening micro's default folder and files and micro opening nano's folders and files:
echo $'#!/bin/sh
micro /nwp/wp/0n4n/1/*
' > /nwp/mnan1
chmod 755 /nwp/mnan1
echo $'#!/bin/sh
micro /nwp/wp/0n4n/2/*
' > /nwp/mnan2
chmod 755 /nwp/mnan2
echo $'#!/bin/sh
micro /nwp/wp/0n4n/a/*
' > /nwp/mnana
chmod 755 /nwp/mnana
echo $'#!/bin/sh
micro /nwp/wp/0n4n/b/*
' > /nwp/mnanb
chmod 755 /nwp/mnanb
echo $'#!/bin/sh
micro /nwp/wp/0n4n/c/*
' > /nwp/mnanc
chmod 755 /nwp/mnanc
echo $'#!/bin/sh
nano /nwp/wp/0m4u/1/*
' > /nwp/nmic1
chmod 755 /nwp/nmic1
echo $'#!/bin/sh
nano /nwp/wp/0m4u/2/*
' > /nwp/nmic2
chmod 755 /nwp/nmic2
echo $'#!/bin/sh
nano /nwp/wp/0m4u/a/*
' > /nwp/nmica
chmod 755 /nwp/nmica
echo $'#!/bin/sh
nano /nwp/wp/0m4u/b/*
' > /nwp/nmicb
chmod 755 /nwp/nmicb
echo $'#!/bin/sh
nano /nwp/wp/0m4u/c/*
' > /nwp/nmicc
chmod 755 /nwp/nmicc
echo $'#!/bin/sh
nano /nwp/wp/0n4n/1/*
' > /nwp/nan1
chmod 755 /nwp/nan1
echo $'#!/bin/sh
nano /nwp/wp/0n4n/2/*
' > /nwp/nan2
chmod 755 /nwp/nan2
echo $'#!/bin/sh
nano /nwp/wp/0n4n/a/*
' > /nwp/nana
chmod 755 /nwp/nana
echo $'#!/bin/sh
nano /nwp/wp/0n4n/b/*
' > /nwp/nanb
chmod 755 /nwp/nanb
echo $'#!/bin/sh
nano /nwp/wp/0n4n/c/*
' > /nwp/nanc
chmod 755 /nwp/nanc
echo $'#!/bin/sh
micro /nwp/wp/0m4u/1/*
' > /nwp/mic1
chmod 755 /nwp/mic1
echo $'#!/bin/sh
micro /nwp/wp/0m4u/2/*
' > /nwp/mic2
chmod 755 /nwp/mic2
echo $'#!/bin/sh
micro /nwp/wp/0m4u/a/*
' > /nwp/mica
chmod 755 /nwp/mica
echo $'#!/bin/sh
micro /nwp/wp/0m4u/b/*
' > /nwp/micb
chmod 755 /nwp/micb
echo $'#!/bin/sh
micro /nwp/wp/0m4u/c/*
' > /nwp/micc
chmod 755 /nwp/micc

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

#activate the cat scripts then open the catted .txt files in batches with micro or nano
echo $'#!/bin/sh
cd /nwp/wp/0m4u/
./allcat
./allcatted
./cat4n
./cat4n0
nano ./*.txt
' > /nwp/nantxt2
chmod 755 /nwp/nantxt2

echo $'#!/bin/sh
cd /nwp/wp/0n4n/
./allcat
./allcatted
./cat4n
./cat4n0
micro ./*.txt
' > /nwp/mitxt2
chmod 755 /nwp/mitxt2

echo $'#!/bin/sh
cd /nwp/wp/0n4n/
./allcat
./allcatted
./cat4n
./cat4n0
nano ./*.txt
' > /nwp/nantxt1
chmod 755 /nwp/nantxt1

echo $'#!/bin/sh
cd /nwp/wp/0m4u/
./allcat
./allcatted
./cat4n
./cat4n0
micro ./*.txt
' > /nwp/mitxt1
chmod 755 /nwp/mitxt1

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

echo $'#!/bin/sh
cd /nwp/wp/0m4u/
./allcat
./allcatted
./cat4n
./cat4n0
nano ./*.txt
' > /root/my-applications/bin/nantxt2
chmod 755 /root/my-applications/bin/nantxt2

echo $'#!/bin/sh
cd /nwp/wp/0n4n/
./allcat
./allcatted
./cat4n
./cat4n0
micro ./*.txt
' > /root/my-applications/bin/mitxt2
chmod 755 /root/my-applications/bin/mitxt2

echo $'#!/bin/sh
cd /nwp/wp/0n4n/
./allcat
./allcatted
./cat4n
./cat4n0
nano ./*.txt
' > /root/my-applications/bin/nantxt1
chmod 755 /root/my-applications/bin/nantxt1

echo $'#!/bin/sh
cd /nwp/wp/0m4u/
./allcat
./allcatted
./cat4n
./cat4n0
micro ./*.txt
' > /root/my-applications/bin/mitxt1
chmod 755 /root/my-applications/bin/mitxt1
#
#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#
##
##
#________________________________

echo $"#!/bin/sh
/usr/bin/sakura -e tmux new-session \; send-keys 'nana' C-m \; split-window -v \;   send-keys 'nanb' C-m \; split-window -h \;   send-keys 'nanc' C-m \; split-window -h \;   send-keys 'nan1' C-m \; split-window -h \;   send-keys 'nan2' C-m \; split-window -v \; send-keys 'nmic1' C-m \; select-layout tiled \; attach
" > /nwp/6n1s
chmod 755 /nwp/6n1s
echo $"#!/bin/sh
/usr/bin/sakura -e tmux new-session \; send-keys 'mica' C-m \; split-window -v \;   send-keys 'micb' C-m \; split-window -h \;   send-keys 'micc' C-m \; split-window -h \;   send-keys 'mic1' C-m \; split-window -h \;   send-keys 'mic2' C-m \; split-window -v \; send-keys 'mnan1' C-m \; select-layout tiled \; attach
" > /nwp/6m1s
chmod 755 /nwp/6m1s
echo $"#!/bin/sh
/usr/bin/sakura -e tmux new-session \; send-keys 'mnana' C-m \; split-window -v \;   send-keys 'mnanb' C-m \; split-window -h \; send-keys 'mnanc' C-m \; split-window -h \;   send-keys 'mnan2' C-m \; select-layout tiled \; attach
" > /nwp/4m1s
chmod 755 /nwp/4m1s

echo $"#!/bin/sh
/usr/bin/sakura -e tmux new-session \; send-keys 'nmica' C-m \; split-window -v \;   send-keys 'nmicb' C-m \; split-window -h \; send-keys 'nmicc' C-m \; split-window -h \;   send-keys 'nmic2' C-m \; select-layout tiled \; attach
" > /nwp/4n1s
chmod 755 /nwp/4n1s

echo $"#!/bin/sh
/usr/bin/sakura -e tmux new-session \; send-keys 'mitxt1' C-m \; split-window -v \;   send-keys 'mitxt2' C-m \; attach
" > /nwp/2m1s
chmod 755 /nwp/2m1s

echo $"#!/bin/sh
/usr/bin/sakura -e tmux new-session \; send-keys 'nantxt1' C-m \; split-window -h \;   send-keys 'nantxt2' C-m \; attach
" > /nwp/2n1s
chmod 755 /nwp/2n1s

#
#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#
##nwp calls main systems version fo the batches#
##
#..#
##
#___#
##
##
#________________________________
echo $"#!/bin/sh
/usr/bin/rxvt -e tmux new-session \; send-keys 'nana' C-m \; split-window -v \;   send-keys 'nanb' C-m \; split-window -h \;   send-keys 'nanc' C-m \; split-window -h \;   send-keys 'nan1' C-m \; split-window -h \;   send-keys 'nan2' C-m \; split-window -v \; send-keys 'nmic1' C-m \; select-layout tiled \; attach
" > /nwp/6n1r
chmod 755 /nwp/6n1r
echo $"#!/bin/sh
/usr/bin/rxvt -e tmux new-session \; send-keys 'mica' C-m \; split-window -v \;   send-keys 'micb' C-m \; split-window -h \;   send-keys 'micc' C-m \; split-window -h \;   send-keys 'mic1' C-m \; split-window -h \;   send-keys 'mic2' C-m \; split-window -v \; send-keys 'mnan1' C-m \; select-layout tiled \; attach
" > /nwp/6m1r
chmod 755 /nwp/6m1r
echo $"#!/bin/sh
/usr/bin/rxvt -e tmux new-session \; send-keys 'mnana' C-m \; split-window -v \;   send-keys 'mnanb' C-m \; split-window -h \; send-keys 'mnanc' C-m \; split-window -h \;   send-keys 'mnan2' C-m \; select-layout tiled \; attach
" > /nwp/4m1r
chmod 755 /nwp/4m1r
echo $"#!/bin/sh
/usr/bin/rxvt -e tmux new-session \; send-keys 'nmica' C-m \; split-window -v \;   send-keys 'nmicb' C-m \; split-window -h \; send-keys 'nmicc' C-m \; split-window -h \;   send-keys 'nmic2' C-m \; select-layout tiled \; attach
" > /nwp/4n1r
chmod 755 /nwp/4n1r
echo $"#!/bin/sh
/usr/bin/rxvt -e tmux new-session \; send-keys 'mitxt1' C-m \; split-window -v \;   send-keys 'mitxt2' C-m \; attach
" > /nwp/2m1r
chmod 755 /nwp/2m1r
echo $"#!/bin/sh
/usr/bin/rxvt -e tmux new-session \; send-keys 'nantxt1' C-m \; split-window -h \;   send-keys 'nantxt2' C-m \; attach
" > /nwp/2n1r
chmod 755 /nwp/2n1r
#________________________________##
##________________________________
echo $"#!/bin/sh
/usr/bin/urxvt -e tmux new-session \; send-keys 'nana' C-m \; split-window -v \;   send-keys 'nanb' C-m \; split-window -h \;   send-keys 'nanc' C-m \; split-window -h \;   send-keys 'nan1' C-m \; split-window -h \;   send-keys 'nan2' C-m \; split-window -v \; send-keys 'nmic1' C-m \; select-layout tiled \; attach
" > /nwp/6n1u
chmod 755 /nwp/6n1u
echo $"#!/bin/sh
/usr/bin/urxvt -e tmux new-session \; send-keys 'mica' C-m \; split-window -v \;   send-keys 'micb' C-m \; split-window -h \;   send-keys 'micc' C-m \; split-window -h \;   send-keys 'mic1' C-m \; split-window -h \;   send-keys 'mic2' C-m \; split-window -v \; send-keys 'mnan1' C-m \; select-layout tiled \; attach
" > /nwp/6m1u
chmod 755 /nwp/6m1u
echo $"#!/bin/sh
/usr/bin/urxvt -e tmux new-session \; send-keys 'mnana' C-m \; split-window -v \;   send-keys 'mnanb' C-m \; split-window -h \; send-keys 'mnanc' C-m \; split-window -h \;   send-keys 'mnan2' C-m \; select-layout tiled \; attach
" > /nwp/4m1u
chmod 755 /nwp/4m1u
echo $"#!/bin/sh
/usr/bin/urxvt -e tmux new-session \; send-keys 'nmica' C-m \; split-window -v \;   send-keys 'nmicb' C-m \; split-window -h \; send-keys 'nmicc' C-m \; split-window -h \;   send-keys 'nmic2' C-m \; select-layout tiled \; attach
" > /nwp/4n1u
chmod 755 /nwp/4n1u
echo $"#!/bin/sh
/usr/bin/urxvt -e tmux new-session \; send-keys 'mitxt1' C-m \; split-window -v \;   send-keys 'mitxt2' C-m \; attach
" > /nwp/2m1u
chmod 755 /nwp/2m1u
echo $"#!/bin/sh
/usr/bin/urxvt -e tmux new-session \; send-keys 'nantxt1' C-m \; split-window -h \;   send-keys 'nantxt2' C-m \; attach
" > /nwp/2n1u
chmod 755 /nwp/2n1u
#________________________________
echo $"#!/bin/sh
/usr/bin/lxterminal -e tmux new-session \; send-keys 'nana' C-m \; split-window -v \;   send-keys 'nanb' C-m \; split-window -h \;   send-keys 'nanc' C-m \; split-window -h \;   send-keys 'nan1' C-m \; split-window -h \;   send-keys 'nan2' C-m \; split-window -v \; send-keys 'nmic1' C-m \; select-layout tiled \; attach
" > /nwp/6n1l
chmod 755 /nwp/6n1l
echo $"#!/bin/sh
/usr/bin/lxterminal -e tmux new-session \; send-keys 'mica' C-m \; split-window -v \;   send-keys 'micb' C-m \; split-window -h \;   send-keys 'micc' C-m \; split-window -h \;   send-keys 'mic1' C-m \; split-window -h \;   send-keys 'mic2' C-m \; split-window -v \; send-keys 'mnan1' C-m \; select-layout tiled \; attach
" > /nwp/6m1l
chmod 755 /nwp/6m1l
echo $"#!/bin/sh
/usr/bin/lxterminal -e tmux new-session \; send-keys 'mnana' C-m \; split-window -v \;   send-keys 'mnanb' C-m \; split-window -h \; send-keys 'mnanc' C-m \; split-window -h \;   send-keys 'mnan2' C-m \; select-layout tiled \; attach
" > /nwp/4m1l
chmod 755 /nwp/4m1l
echo $"#!/bin/sh
/usr/bin/lxterminal -e tmux new-session \; send-keys 'nmica' C-m \; split-window -v \;   send-keys 'nmicb' C-m \; split-window -h \; send-keys 'nmicc' C-m \; split-window -h \;   send-keys 'nmic2' C-m \; select-layout tiled \; attach
" > /nwp/4n1l
chmod 755 /nwp/4n1l
echo $"#!/bin/sh
/usr/bin/lxterminal -e tmux new-session \; send-keys 'mitxt1' C-m \; split-window -v \;   send-keys 'mitxt2' C-m \; attach
" > /nwp/2m1l
chmod 755 /nwp/2m1l
echo $"#!/bin/sh
/usr/bin/lxterminal -e tmux new-session \; send-keys 'nantxt1' C-m \; split-window -h \;   send-keys 'nantxt2' C-m \; attach
" > /nwp/2n1l
chmod 755 /nwp/2n1l
#________________________________________________________________
echo $"#!/bin/sh
/usr/bin/sakura -e tmux new-session \; send-keys 'nana' C-m \; split-window -v \;   send-keys 'nanb' C-m \; split-window -h \;   send-keys 'nanc' C-m \; split-window -h \;   send-keys 'nan1' C-m \; split-window -h \;   send-keys 'nan2' C-m \; split-window -v \; send-keys 'nmic1' C-m \; select-layout tiled \; attach
" > /nwp/6n1s
chmod 755 /nwp/6n1s
echo $"#!/bin/sh
/usr/bin/sakura -e tmux new-session \; send-keys 'mica' C-m \; split-window -v \;   send-keys 'micb' C-m \; split-window -h \;   send-keys 'micc' C-m \; split-window -h \;   send-keys 'mic1' C-m \; split-window -h \;   send-keys 'mic2' C-m \; split-window -v \; send-keys 'mnan1' C-m \; select-layout tiled \; attach
" > /nwp/6m1s
chmod 755 /nwp/6m1s
echo $"#!/bin/sh
/usr/bin/sakura -e tmux new-session \; send-keys 'mnana' C-m \; split-window -v \;   send-keys 'mnanb' C-m \; split-window -h \; send-keys 'mnanc' C-m \; split-window -h \;   send-keys 'mnan2' C-m \; select-layout tiled \; attach
" > /nwp/4m1s
chmod 755 /nwp/4m1s
echo $"#!/bin/sh
/usr/bin/sakura -e tmux new-session \; send-keys 'nmica' C-m \; split-window -v \;   send-keys 'nmicb' C-m \; split-window -h \; send-keys 'nmicc' C-m \; split-window -h \;   send-keys 'nmic2' C-m \; select-layout tiled \; attach
" > /nwp/4n1s
chmod 755 /nwp/4n1s
echo $"#!/bin/sh
/usr/bin/sakura -e tmux new-session \; send-keys 'mitxt1' C-m \; split-window -v \;   send-keys 'mitxt2' C-m \; attach
" > /nwp/2m1s
chmod 755 /nwp/2m1s
echo $"#!/bin/sh
/usr/bin/sakura -e tmux new-session \; send-keys 'nantxt1' C-m \; split-window -h \;   send-keys 'nantxt2' C-m \; attach
" > /nwp/2n1s
chmod 755 /nwp/2n1s
#________________________________________________________________
echo $"#!/bin/sh
/usr/bin/roxterm -e tmux new-session \; send-keys 'nana' C-m \; split-window -v \;   send-keys 'nanb' C-m \; split-window -h \;   send-keys 'nanc' C-m \; split-window -h \;   send-keys 'nan1' C-m \; split-window -h \;   send-keys 'nan2' C-m \; split-window -v \; send-keys 'nmic1' C-m \; select-layout tiled \; attach
" > /nwp/6n1rx
chmod 755 /nwp/6n1rx
echo $"#!/bin/sh
/usr/bin/roxterm -e tmux new-session \; send-keys 'mica' C-m \; split-window -v \;   send-keys 'micb' C-m \; split-window -h \;   send-keys 'micc' C-m \; split-window -h \;   send-keys 'mic1' C-m \; split-window -h \;   send-keys 'mic2' C-m \; split-window -v \; send-keys 'mnan1' C-m \; select-layout tiled \; attach
" > /nwp/6m1rx
chmod 755 /nwp/6m1rx
echo $"#!/bin/sh
/usr/bin/roxterm -e tmux new-session \; send-keys 'mnana' C-m \; split-window -v \;   send-keys 'mnanb' C-m \; split-window -h \; send-keys 'mnanc' C-m \; split-window -h \;   send-keys 'mnan2' C-m \; select-layout tiled \; attach
" > /nwp/4m1rx
chmod 755 /nwp/4m1rx
echo $"#!/bin/sh
/usr/bin/roxterm -e tmux new-session \; send-keys 'nmica' C-m \; split-window -v \;   send-keys 'nmicb' C-m \; split-window -h \; send-keys 'nmicc' C-m \; split-window -h \;   send-keys 'nmic2' C-m \; select-layout tiled \; attach
" > /nwp/4n1rx
chmod 755 /nwp/4n1rx
echo $"#!/bin/sh
/usr/bin/roxterm -e tmux new-session \; send-keys 'mitxt1' C-m \; split-window -v \;   send-keys 'mitxt2' C-m \; attach
" > /nwp/2m1rx
chmod 755 /nwp/2m1rx
echo $"#!/bin/sh
/usr/bin/roxterm -e tmux new-session \; send-keys 'nantxt1' C-m \; split-window -h \;   send-keys 'nantxt2' C-m \; attach
" > /nwp/2n1rx
chmod 755 /nwp/2n1rx
#
#________________________________#
##
#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#
##
##
##
#the portable folders made by note, notesm, and notesn have "cat" scripts.#
##
#catted as opposed to cat on a script or .txt file means it was concatenated without overwriting (has past)#
#the other version only differs in catting all the cats or not. for that pair, the one with the 0 (cat4n0) overwrites. alter to call notesn/m folders elsewhere or delete. hold down control x in in nano or control q in micro to quickly close a batch. add any readable file to the folders and the text editors will open them when that folder's batch is called.#
##
#enjoy.#
##
#p. dogfellow
#nwp and my apps bin set to launch a set in root/my-documents with nano and micro
#swap to suit
#tebatches2-my Documents (..d)
echo $'#!/bin/sh
nano /root/my-documents/0n4n/1/*
' > /root/my-applications/bin/nan1d
chmod 755 /root/my-applications/bin/nan1d
echo $'#!/bin/sh
nano /root/my-documents/0n4n/2/*
' > /root/my-applications/bin/nan2d
chmod 755 /root/my-applications/bin/nan2d
echo $'#!/bin/sh
nano /root/my-documents/0n4n/a/*
' > /root/my-applications/bin/nanad
chmod 755 /root/my-applications/bin/nanad
echo $'#!/bin/sh
nano /root/my-documents/0n4n/b/*
' > /root/my-applications/bin/nanbd
chmod 755 /root/my-applications/bin/nanbd
echo $'#!/bin/sh
nano /root/my-documents/0n4n/c/*
' > /root/my-applications/bin/nancd
chmod 755 /root/my-applications/bin/nancd

echo $'#!/bin/sh
micro /root/my-documents/0m4u/1/*
' > /root/my-applications/bin/mic1d
chmod 755 /root/my-applications/bin/mic1d
echo $'#!/bin/sh
micro /root/my-documents/0m4u/2/*
' > /root/my-applications/bin/mic2d
chmod 755 /root/my-applications/bin/mic2d
echo $'#!/bin/sh
micro /root/my-documents/0m4u/a/*
' > /root/my-applications/bin/micad
chmod 755 /root/my-applications/bin/micad
echo $'#!/bin/sh
micro /root/my-documents/0m4u/b/*
' > /root/my-applications/bin/micbd
chmod 755 /root/my-applications/bin/micbd
echo $'#!/bin/sh
micro /root/my-documents/0m4u/c/*
' > /root/my-applications/bin/miccd
chmod 755 /root/my-applications/bin/miccd

#tebatches-my Documents (..d)
echo $'#!/bin/sh
/usr/bin/sakura -e nano  /root/my-documents/0n4n/1/*
' > /nwp/nan1d
chmod 755 /nwp/nan1d
echo $'#!/bin/sh
/usr/bin/sakura -e nano  /root/my-documents/0n4n/2/*
' > /nwp/nan2d
chmod 755 /nwp/nan2d
echo $'#!/bin/sh
/usr/bin/sakura -e nano  /root/my-documents/0n4n/a/*
' > /nwp/nanad
chmod 755 /nwp/nanad
echo $'#!/bin/sh
/usr/bin/sakura -e nano  /root/my-documents/0n4n/b/*
' > /nwp/nanbd
chmod 755 /nwp/nanbd
echo $'#!/bin/sh
/usr/bin/sakura -e nano  /root/my-documents/0n4n/c/*
' > /nwp/nancd
chmod 755 /nwp/nancd

echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/1/*
' > /nwp/mic1d
chmod 755 /nwp/mic1d
echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/2/*
' > /nwp/mic2d
chmod 755 /nwp/mic2d
echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/a/*
' > /nwp/micad
chmod 755 /nwp/micad
echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/b/*
' > /nwp/micbd
chmod 755 /nwp/micbd
echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/c/*
' > /nwp/miccd
chmod 755 /nwp/miccd

#install nano
petget /tmp/nano293-32md.pet
petget /tmp/nano293-32.pet
petget /tmp/nano293-64md.pet
petget /tmp/nano293-64.pet
#the md packages have mouse support disabled, which may allow it to keep some of its expected terminal behavior--you cna install both versions of a given architecture and the second one will backup the earlier one's rc file (but don't install 32 bit in 64 bit or 64 bit in 32 bit--say no to the popups)

notesm:

Code: Select all


#!/bin/sh
#swap rxvt for terminal of your choice
#(search and replace) micro/nano for text editor of your choice
mkdir -p ./0m4u/a/
mkdir -p ./0m4u/b/
mkdir -p ./0m4u/c/
mkdir -p ./0m4u/1/
mkdir -p ./0m4u/2/
touch  ./0m4u/b/00{1..10}
touch  ./0m4u/a/0{1..10}
touch  ./0m4u/1/{a..z}
touch  ./0m4u/2/a{a..z}
touch ./0m4u/c/{1..10}
echo $'#!/bin/sh
#cat4n
#no overwrite by incoming/running tabs
cat ./a/* >> ./4nal.txt
cat ./b/* >> ./4nbl.txt
cat ./1/* >> ./4n1l.txt
cat ./2/* >> ./4n2l.txt
cat ./c/* >> ./4ncl.txt
' > ./0m4u/cat4n
chmod 755 ./0m4u/cat4n
echo $'#!/bin/sh
#cat4n0
#incoming 0verwrites contents
cat ./a/* > ./4na.txt
cat ./b/* > ./4nb.txt
cat ./1/* > ./4n1.txt
cat ./2/* > ./4n2.txt
cat ./c/* > ./4nc.txt
' > ./0m4u/cat4n0
chmod 755 ./0m4u/cat4n0
echo $'#!/bin/sh
cat ./a/* > ./4na.txt
cat ./b/* > ./4nb.txt
cat ./1/* > ./4n1.txt
cat ./2/* > ./4n2.txt
cat ./c/* > ./4nc.txt
cat 4n*  > ./4cat.txt
' > ./0m4u/allcat
chmod 755 ./0m4u/allcat
echo $'#!/bin/sh
cat ./a/* >> ./4na.txt
cat ./b/* >> ./4nb.txt
cat ./1/* >> ./4n1.txt
cat ./2/* >> ./4n2.txt
cat ./c/* >> ./4nc.txt
cat 4n*  >> ./4cata.txt 
' >> ./0m4u/allcatted
chmod 755 ./0m4u/allcatted
echo $'#!/bin/sh
rxvt -e micro ./1/*
' > ./0m4u/mic1
chmod 755  ./0m4u/mic1
echo $'#!/bin/sh
rxvt -e micro ./2/*  
' > ./0m4u/mic2
chmod 755  ./0m4u/mic2
echo $'#!/bin/sh
rxvt -e micro ./a/*  
' > ./0m4u/mica
chmod 755  ./0m4u/mica
echo $'#!/bin/sh
rxvt -e micro ./b/*
' > ./0m4u/micb
chmod 755  ./0m4u/micb
echo $'#!/bin/sh
rxvt -e micro ./c/*
' > ./0m4u/micc
chmod 755  ./0m4u/micc

notesn:

Code: Select all

#!/bin/sh
#swap rxvt for terminal of your choice
#(search and replace) micro/nano for text editor of your choice
mkdir -p ./0n4n/a/
mkdir -p ./0n4n/b/
mkdir -p ./0n4n/c/
mkdir -p ./0n4n/1/
mkdir -p ./0n4n/2/
touch  ./0n4n/b/00{1..10}
touch  ./0n4n/a/0{1..10}
touch  ./0n4n/1/{a..z}
touch  ./0n4n/2/a{a..z}
touch ./0n4n/c/{1..10}
echo $'#!/bin/sh
#cat4n
#no overwrite by incoming/running tabs
cat ./a/* >> ./4nal.txt
cat ./b/* >> ./4nbl.txt
cat ./1/* >> ./4n1l.txt
cat ./2/* >> ./4n2l.txt
cat ./c/* >> ./4ncl.txt
' > ./0n4n/cat4n
chmod 755 ./0n4n/cat4n
echo $'#!/bin/sh
#cat4n0
#incoming 0verwrites contents
cat ./a/* > ./4na.txt
cat ./b/* > ./4nb.txt
cat ./1/* > ./4n1.txt
cat ./2/* > ./4n2.txt
cat ./c/* > ./4nc.txt
' > ./0n4n/cat4n0
chmod 755 ./0n4n/cat4n0
echo $'#!/bin/sh
cat ./a/* > ./4na.txt
cat ./b/* > ./4nb.txt
cat ./1/* > ./4n1.txt
cat ./2/* > ./4n2.txt
cat ./c/* > ./4nc.txt
cat 4n*  > ./4cat.txt
' > ./0n4n/allcat
chmod 755 ./0n4n/allcat
echo $'#!/bin/sh
cat ./a/* >> ./4na.txt
cat ./b/* >> ./4nb.txt
cat ./1/* >> ./4n1.txt
cat ./2/* >> ./4n2.txt
cat ./c/* >> ./4nc.txt
cat 4n*  >> ./4cata.txt
' >> ./0n4n/allcatted
chmod 755 ./0n4n/allcatted
echo $'#!/bin/sh
rxvt -e nano ./1/*
' > ./0n4n/nan1
chmod 755  ./0n4n/nan1
echo $'#!/bin/sh
rxvt -e nano ./2/*  
' > ./0n4n/nan2
chmod 755  ./0n4n/nan2
echo $'#!/bin/sh
rxvt -e nano ./a/*  
' > ./0n4n/nana
chmod 755  ./0n4n/nana
echo $'#!/bin/sh
rxvt -e nano ./b/*
' > ./0n4n/nanb
chmod 755  ./0n4n/nanb
echo $'#!/bin/sh
rxvt -e nano ./c/*
' > ./0n4n/nanc
chmod 755  ./0n4n/nanc

note:

Code: Select all

#!/bin/sh
notesn
notesm

i'll add a more concise list of the launcher and terminal shortcuts (names of the scripts generated above), but for now here's the most recent one explained as a guide:


Code: Select all

echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/1/*
' > /nwp/mic1d
chmod 755 /nwp/[b]mic1d[/b]
echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/2/*
' > /nwp/mic2d
chmod 755 /nwp/mic2d
echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/a/*
' > /nwp/micad
chmod 755 /nwp/micad
echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/b/*
' > /nwp/micbd
chmod 755 /nwp/micbd
echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/c/*
' > /nwp/miccd
chmod 755 /nwp/miccd
there are five subfolders (1,2,a,b,c) that get generated with the note(sm,n) scripts. each is filled with blank documents. you can add to, delete, or rename what's there and still batch launch and combine them with the helper scripts. this one's got the mic for micro and the d- because i generated the folders in my-documents with a call to "note" in the pinstall script. the letter/number in between that last d and the the mic is which batch is being called. versions without a terminal (as in that ..sakura -e bit) are better suited to be called in tmux panes, and there are templates for a number of those as well (get tmux through your ppm before trying the ones in the link at the top of this post).

enjoy

--p. dogfellow

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

newest batch of launcher (and terminal) shortcuts/codes

#110 Post by Puppus Dogfellow »

i'll add a more concise list of the launcher and terminal shortcuts (names of the scripts generated above), but for now here's the most recent one explained as a guide:



Code:

echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/1/*
' > /nwp/mic1d
chmod 755 /nwp/mic1d
echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/2/*
' > /nwp/mic2d
chmod 755 /nwp/mic2d
echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/a/*
' > /nwp/micad
chmod 755 /nwp/micad
echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/b/*
' > /nwp/micbd
chmod 755 /nwp/micbd
echo $'#!/bin/sh
/usr/bin/sakura -e micro /root/my-documents/0m4u/c/*
' > /nwp/miccd
chmod 755 /nwp/miccd


there are five subfolders (1,2,a,b,c) that get generated with the note(sm,n) scripts. each is filled with blank documents. you can add to, delete, or rename what's there and still batch launch and combine them with the helper scripts. this one's got the mic for micro and the d- because i generated the folders in my-documents with a call to "note" in the pinstall script. the letter/number in between that last d and the the mic is which batch is being called. versions without a terminal (as in that ..sakura -e bit) are better suited to be called in tmux panes, and there are templates for a number of those as well (get tmux through your ppm before trying the ones in the link at the top of this post).
that's the launcher version. the terminal version has no addition terminal as part of the launch command. helpful to know: control q in micro and control x in nano will rapidly close all your open documents (unless there's an unsaved change). another tip is that you can move the default folders anywhere you like and rename them--just symlink back to the original location and rename the symlink back to the original folder (0n4n/0m4u) or just recopy the pinstall in a text editor, do search and replace, and resend through the terminal or vtg it in geany.

use ll or gl (name) to edit the individual sets (for instance, keep the name, swap the terminal you don't use out, swap in a new set (like nand), or substitute custom commands in those nan/mic slots):



(nwp only:)
6--open all defaults of one plus one of the other
4 the rest of the five from the one not covered by the 6tmux series
2 catted files from micro set or nano set
rx roxterm
l - lxterminal
u - urxvt
r - rxvt
s - sakura
m - micro
n - nano
6,4,2 --how many panes; defaults are:

6n1rx
6m1rx
4n1rx
4m1rx
2n1rx
2m1rx

6n1r
6m1r
4n1r
4m1r
2n1r
2m1r

6n1s
6m1s
4n1s
4m1s
2n1s
2m1s

6n1u
6m1u
4n1u
4m1u
2n1u
2m1u

6n1l
6m1l
4n1l
4m1l
2n1l
2m1l


in terminal launches subfolder named out of /root/my-documtents/(0n4n/0m4u)
in launcher opens terminal to do it (set for sakura)(most things default to rxvt.
nanad
nanbd
nancd
nan1d
nan2d
micad
micbd
miccd
mic1d
mic2d


____


in nwp/pwn (p in terminal) launcher,
nana --open the txt file batch in nwp/wp/0nan4/a with nano
mnana --same but with micro
nanb --open the txt file batch in nwp/wp/0nan4/b with nano
mnanb --same but with micro
nanc --open the txt file batch in nwp/wp/0nan4/c with nano
mnanc --same but with micro
nan1 --open the txt file batch in nwp/wp/0nan4/1 with nano
mnan1 --same but with micro
nan2 --open the txt file batch in nwp/wp/0nan4/2 with nano
mnan2 --same but with micro
#(0nan4 was nano's default folder from the earlier nano293 pets, now part of notesn,note)
#
in nwp/pwn (p in terminal) launcher,
mica --open the txt file batch in nwp/wp/0m4u/a with micro
nmica --same but with nano
micb --open the txt file batch in nwp/wp/0m4u/b with micro
nmicb --same but with nano
micc --open the txt file batch in nwp/wp/0m4u/c with micro
nmicc --same but with nano
mic1 --open the txt file batch in nwp/wp/0m4u/1 with micro
nmic1 --same but with nano
mic2 --open the txt file batch in nwp/wp/0m4u/2 with micro
nmic2 --same but with nano
#(0m4u was micro's default folder from the earlier nano 293 pets, now part of notesm,note)
#

non terminal perusal:
same as the micro nano sets for nwp/wp but with gui based editors. mp is minimum profit, gi is geany new instance, g is geany. the 12abc are the same convention as above. the ones tith the n use nano, the ones with t u use micro.
mpu1
mpn1
gin1
giu1
gn1
gu1
mpu2
mpn2
gin2
giu2
gn2
gu2
mpua
mpna
gina
giua
gna
gua
mpub
mpnb
ginb
giub
gnb
gub
mpuc
mpnc
ginc
giuc
gnc
guc


send template to directory through terminal:
notesn
notesm
note
nanotes (nano directory as xz compressed file)
nanoh -nano config and help and markdown help
nanoc -just nano config file

nan + a,b,c,1, or 2 --open the sub folder in nano
mic + a,b,c,1, or 2 -- open that subfolder in micro
(terminal and nwp are laid out the same way, but the nwp one makes no sense to call from the launcher--modify and use in scripts (such as the tmux batch launches).


getmicro -- get or update micro text editor
____

for desktop files you can either use the file manager to open the directory where you keep/move the defaults--the scripts inside can be clicked or just use cd (new directory); script in that folder, or make separate ones for the terminal opening up either a subdirectory (terminal e- nan/mic (a,b,c,1,2,) or a group of them (terminal e- tmux nan/mic (a,b,c,1, or 2).

Post Reply