~572, p575, and p57577: three spins/updates of Precise 5.7.1

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

large and small word processor updates

#241 Post by Puppus Dogfellow »

libre office updates:
LibreOffice-6.0.4_en-US_xz.sfs, LibreOffice-6.0.4_en-US_xz.pet, LibreOffice-6.0.4_64_en-US_xz.pet, LibreOffice-6.0.4_64_en-US_xz.sfs

and thanks to mow9902 for a fix for unresponsive hyperlinks:
dump the following into a terminal and press enter, or copy it into a geany document and press the cauliflower:

Code: Select all

ln -s /usr/local/bin/xdg-open /usr/bin
(adapted from 2 annoying problems with Libreoffice - SOLVED by mow9902)

i can recall an earlier pup refusing to allow a symbolic link unless i used mkdir -p (/already/ existing/ directory's /path)--if you find the above doesn't work, use the mkdir -p line or do it manually as outlined in the above thread.

mini word processor also updated:

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

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

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

more info: PostPosted: Fri 25 May 2018, 18:39 Post subject: space bar keybank toggle and mini word processor
Subject description: bwp1.5 and mcbwp1 use a browser and/or text editor as a word processor, but can't key in a tab space
___

the various versions of the browser based word processor appear to also work on my android phone, which gives more options to play with when downloading, but so far saving to pdf works, saving as html doesn't seem to preserve your changes...that's actually as far as i've gotten (testers welcome--you can just download the html files from the bwp folder in the nwp+vtg folder in word processing and related (in pupli repo)).

(more vtg-centric version of the linked help/"help" post upcoming, but the short version is you add commented out commands to the scripts and use the vtg to change the keys on the fly)(not that that's really faster than having swap folders, but it's probably just as fast and allows for perhaps quicker on-the-fly customization than the geany and leafpad launchers could add--just rerun the echo/shebang/chmod chunks after swapping the # or making your change(s)).

___
(second annoying problem mentioned in mow9902's helpful thread is related to language packs and offline help. check it out if your installation is giving you some sort of grief that relates).

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

java, libre office, and rox filer updates

#242 Post by Puppus Dogfellow »

first the libre office updates:

LibreOffice-6.1.0_64_en-US_xz.sfs

LibreOffice-6.1.0_64_en-US_xz.pet

LibreOffice-6.0.6_64_en-US_xz.pet

LibreOffice-6.0.6_64_en-US_xz.sfs

LibreOffice-6.1.0_en-US_xz.pet

LibreOffice-6.1.0_en-US_xz.sfs

LibreOffice-6.0.6_en-US_xz.pet

LibreOffice-6.0.6_en-US_xz.sfs
___

java:

jre-8u181-i586 and jre-10.0.2-x64 (sfs+pet)

____

rox:

from http://murga-linux.com/puppy/viewtopic. ... 815#995815
Puppus Dogfellow wrote:thanks for this, woodenshoe-wi.

working well in an old xenial32 spin (based on 704) and a few tahr64 spins (based on 605).

had backups of the pinboard(s) so having mine reset to the alien default wasn't a problem; being able to remove and move columns is great; the installation preserved all my other rox mods (custom icons and the ability to set right click shortcuts were added to the original iso and not lost when the new items were added to the tool bar and menus); the clipboard is great....


mirrored your efforts here: rox filer 4 by woodenshoe (32/64)

thanks again!

-pd
woodenshoe has continued to update it (i think it's up to version eight), but i like version four and have been testing it for a while while simultaneously not keeping up with that thread, so maybe there are better changes out there, but as it stands it's an improvement and i recommend it for both the 32 and 64 bit spins. before you install, enter n in the nwp/pwn launcher (shift plus spacebar) to call up the main/original nwp menu. go to the rox slot, go to pinboards, and select "make 6 puppy pins for the pp series." restart x after the pet installation, navigate to ~/Choices and copy one of the 2-6 Puppy Pins as PuppyPin. if you're actually using the pp series to swap between distinct pins, go to choices and rename the one you're using as the PuppyPin before the installation--the pet will overwrite the main pinboard and reset all of your keyboard in-rox-folder shortcuts (o for odt, f for file, s for script, d for directory, etc), but you can easily reset them--the function is preserved even if the keycuts themselves are not (hover the cursor, select a letter for the function or to change one that's already set by default).

enjoy!

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

some updates

#243 Post by Puppus Dogfellow »

libreoffice updates:

LibreOffice-6.1.4_64_en-US_xz.sfs
LibreOffice-6.1.4_64_en-US_xz.pet

LibreOffice-6.1.4_en-US_xz.sfs
LibreOffice-6.1.4_en-US_xz.pet

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 cnt shortcut, i made the update from nwp9 to nwp10, ewp1.pet
(it's also a standalone (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!

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

word processor updates

#244 Post by Puppus Dogfellow »

LibreOffice-6.2.4_en-US_xz.pet

LibreOffice-6.2.4_en-US_xz.sfs

LibreOffice-6.2.4_64_en-US_xz.sfs

LibreOffice-6.2.4_64_en-US_xz.pet

____

thanks to smithy, jrb and webmayo, there's also a lightweight rtf editor available (unlike roughdraft, it doesn't require wine): http://www.murga-linux.com/puppy/viewto ... 36#1029936
link in the thread is down so here it is from my repo: rtfed-word-processor.pet

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

Nanoi 293 32/64

#245 Post by Puppus Dogfellow »

nano293-32md.pet
nano293-32.pet
nano293-64md.pet
nano293-64.pet
tmux_1.8-5-32.pet
tmux_1.8-5_i386.deb
tmux_2.1-3build1_amd64.pet
tmux_2.6-3ubuntu0.1_amd64.pet

from pupli repo/word processing and related/nwp+vtg/recs and notes/notes2:

6/19/19

all my 32 bit machines are dead but i've included the bionic era nanos and the tahr era tmux here for precise and similar vintage pups. tmux plus nano is like a suped up version of those first word processors by brother and magnavox from the mid eighties or so, but instead of one 5 by 8 inch screen, you can have unlimited pages of unlimited screens, each opened to a hundred or so documents that you can flip through with a press of of alt+> or< (which the documentation calls M plus those keys--M is meta, and the pets install nanoh and nanoc; the latter is just nano's main configuration file, the one with the H has help for nano being run, nano before it's run, and markdown, in case you want to try to make a word processor of the nanos. for a better experience, in all but that older 32 bit tmux package, tmux set -g mouse on will allow you resize the panes and hop around with the mouse. next version will have tmux help, too, but ctrl+b is the default to activate commands, and once there you'll be using ctrl+b: new -s (name) to make a new session (like a new desktop in puppy) and ctrl+b s to switch to it. more on that later, or maybe in the help file for nanoi.1, but i believe these packages will work in all the spins as long as you pick the right one. tahr couldn't use xenial's tmux, and ubuntu has taken the tahr repo down, so i got that package from http://archive.ubuntu.com/ubuntu/pool/main/t/tmux/


the md nano packages have mouse support disabled, which means you can highlight select and middle click paste between tmux (or general terminal) windows.

nanotes in the terminal or cd (location); nanotes will give you a 1kb archive that has scripts for it to be opened in nano or concatenated (either as a running tab of your notes or overwriting the choices). here's one of the pinstall scripts:

#!/bin/sh
cp -f /bin/nano /bin/nano-old
cp -f /etc/nanorc /etc/nanorc-old
cp -f /tmp/nano/etc/nanorc /etc/nanorc
cp -f /tmp/nano/bin/nano /bin/nano
cp -f /tmp/nano/bin/rnano /bin/rnano
cp -fR /root/.config/rox.sourceforge.net/Templates/0n4n /nwp/wp/0n4n
cp -f /root/my-applications/bin/nanoc /nwp/nanoc
#^r for new file /default nano insertation behavior removed
#alt 6 for copy is nwp incompatible but alt caret (M^) works and is a built in alternative
#you may want to toggle mouse support
cp -f /tmp/nano/markdownhelp /usr/share/doc/nano/markdownhelp
cp -f /tmp/nano/nano_help /usr/share/doc/nano/nano_help
cp -f /root/my-applications/bin/nanoc /nwp/nanoc
cp -f /root/my-applications/bin/nanoh /nwp/nanoh
#nanotes is a call to a directory from the terminal so no nwp shortcut (cd /path; nanotes)
echo $'#!/bin/sh
rxvt -e nano /nwp/wp/0n4n/1/*
' > /nwp/nan1
chmod 755 /nwp/nan1
echo $'#!/bin/sh
rxvt -e nano /nwp/wp/0n4n/2/*
' > /nwp/nan2
chmod 755 /nwp/nan2
echo $'#!/bin/sh
rxvt -e nano /nwp/wp/0n4n/a/*
' > /nwp/nana
chmod 755 /nwp/nana
echo $'#!/bin/sh
rxvt -e nano /nwp/wp/0n4n/b/*
' > /nwp/nanb
chmod 755 /nwp/nanb


_________

i made the notes folders with the mcc utility, but you could do it with the vtg as well (put this text in a geany doc and hit the cauliflower):

mkdir -p /tmp/nwp/wp/0n4n/b/
mkdir -p /tmp/nwp/wp/0n4n/a/
touch /tmp/nwp/wp/0n4n/b/00{1..10}
touch /tmp/nwp/wp/0n4n/a/0{1..10}


mkdir -p /tmp/nwp/wp/0n4n/c/
mkdir -p /tmp/nwp/wp/0n4n/1/
mkdir -p /tmp/nwp/wp/0n4n/2/
touch /tmp/nwp/wp/0n4n/1/{a..z}
touch /tmp/nwp/wp/0n4n/2/a{a..z}
touch /tmp/nwp/wp/0n4n/c/{1..10}

(change the test directory to the path of your choice. clicking the tilde/back tick/grave in a rox folder and typing nanotes will give you two folders of 27 blanks and 2 folders of 11 blanks (more or less a,b and 1,2 from above). the nanb nana scripts work on their specific directories--it'll work on the copied set from the set but not from a menu. for this reason, making menu entries for this stuff might be better if calling the directory to be opened rather than a specific script or action chosen.

anyway, tmux plus nano (and i've downloaded emacs and vim but they're even more annoying to get started with than these weirdly shortcutted unix fossils) has made my android boxes shitloads more fun so i thought i'd share.

another tip--making tmux windows is a way to avoid the disaster of screwing up your present one, in addition to making the interface overall better (especially if you're going to be sticking to mostly cli). so, ^Cb (control b in most lingo from what i've been seeing lately) " (double quotes) and you'll split a window vertically. same prefix plus % and you'll split it horizontally. you can drag with the mouse--it's so much faster i'm going to leave it up to you to find the shortcut to do it with the keys (ctrl b ? gives you a bunch, on line you'll find more, not every tip and code from the newest tmuxes works on the 1.8 (android boxes have 4-something and i don't notice the 2-something from bionic lacking for lag. yet.)

so that's that. i'm running 6t4 and 64 bit xenial and bionic pups with the nwp installed. geany vtg stuff works great in bionic, but i've had to disable some of the jwm stuff. a second run of part of the pinstall script fixed some stuff that appeared not to work correctly with regard to rox tweaks (keyboard shortcuts mostly), but i'm on 798 which is more or less a pre-release…

mcedit and joe's own editor are other micro editors worth checking out--the former's part of mc, which is a terminal file manager without the weird ass vim shortcuts (unlike ranger)
(they seem worth learning (something to read on the kindle); i'll save so many minutes in the future dd ing ...and escape escape escaping…

(mouse made the tmux navigation, selection, and workspace creation experience better. same with the transferring text between nano documents experience, though opening up dozens of documents isn't a bad work around if you do have the mouse "enabled" (you can select and mark but in a limited, confined to nano-box way).
)
_______

tests were mostly done on the most limited terminal i could find (rxvt). your experience on better terminals (sakura, roxterm, lxterminal, ...urxvt..) should be even better.

--puppus dogfellow, four thirty in the morning.
:)

***


in pups that have the nwp installed with the default jwm stuff in place, alt+6 for the sixth menu (or fifth extra since these documents frequently refer to the 10 total as 9 extra without telling...that there are three sets of them--) is also nano's version of copy. you don't need a work around for either since it's got the alternate of control caret, which the main help (second help you'll see after the default bottom row help--press ^G and you'll get the longer list with the alternates if any exist) shows after a little scroll down. nanoh in the terminal or in the nwp/pwn launcher get you the nano help printed out in an editable file (move around and group what's most relevant as you learn the interface).

those of you who like the default nano setup might be upset to find it opens new files now without wearing a disguise and creating a diversion--^r opens a dialog for a new file in a new space, not the contents of a file to be dumped into the current one. (same nanoh opens the config file and help file. change the defaults and learn the preloads that override them).

...it's unfortunate that the workaround for copy involves an extra key stroke, but it's kind of a visual and musical aid if you think of it in terms of marking with an A and copying with a ^ as pencil shaped letters/characters leading into some assonance, consonance.



--puppus dogfellow, 544 in the morning (took some time out from some terminal multiplexing to tend to pupli repo). will update the threads with this, and maybe make a thread for the nanos once i remove the nwp specific stuff. and if you haven't played around with tmux on puppy or android, give it a shot.

--one last tip (unless i'm so sleepy that it's merely a redundancy)--if you've got your 20 or 200 documents open and you're worried about zipping through the closings with a held down control-x, any unsaved changes will prompt you before continuing with the few-per second closings. keep track of yourself or make a tmux window watch the progress of a networked file. set nano to make backups. or not. (if you install both versions of the nano pet, you'll get a backed up main configuration file to play around with).



if i want to get rid of the window quickly, i usually just control b x it in tmux rather than hold down the control x for nano's interface (making sure there's another pane to go to). i also do this when i make changes to a configuration file that's for a program i'm actively using in a pane elsewhere--that version is in the past, and even if you close the window, the terminal is in the past. you'll need a newer pane to get the newer configuration for whatever it is you've just modded.

--p. dogfellow, 1008, tuesday, 6.19.2019

***

short version: use tmux plus nano to get endless grids of text editor interfaces. some help files and other tweaks to the nano bits, maybe that old 386 tmux pet will work in precise. tmux/termux combo is helping my pups get along with my android boxes.

enjoy

--p. dogfellow

(nano is up to 4.2 but the 293 is from the bionic repo and appears to be the newest version the pups can use. somewhere in the twos it gained the ability to undo and then it gained a more colorful help menu--not sure what improved from 293 to present, but this plus tmux is a pretty cool notetaker and text editor combo. oldest tmux pet in this post is a suggestion for precise. newest one came from bionic, the 2.1 came from xenial64, and i forgot to get the 1.8 from tahr, which couldn't take any of the newer versions but shares a lot of compatibility with precise from what i remember, so i tracked down a 386 version of it. use scottman's pkg to get the 1.8 or the deb from the link if your ppm is dead (my tahr has a dead ppm)).

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

micro text editor 1.4.1. for all pups and tmux for tahr64

#246 Post by Puppus Dogfellow »

https://micro-editor.github.io/

the pups might not be up to date with the nanos, but they can have the latest micros:
micro1.4.1-nuup.pet

(pet gives a note folder function like the nano pet above and gives a nwp and terminal command for downloading the binary to the PATH and setting permissions)

here's one with the micro binary already installed--for tahr 64 but works in xenial and bionic 64:

micro1.4.1-t64.1.pet

here's the tahr 64 tmux pet i should've posted in the previous post, but which makes a nice segue to the rewrite of the terminal and launcher short cuts for these things:
tmux_1.8-5_amd64.pet

, which is to say there at the moment are no desktop files for these pets. at first i thought it made sense to assign the nanb, mica, etc scripts to specific terminals and/or tmux sessions within them, but i think that can be set more easily and flexibly through the desktop files themselves (though the scripts in the folders shouldn't need to be called from a terminal to open their batches, so i'm leaving those as is (swap the rxvt for the terminal of your choice).

urxvt's tab switching shortcuts interfere with nano's buffer switching shortcuts (which is basically nano's tabs), so if you want to mix and match which terminal launches what batch in which terminal text editor, you may want to avoid that particular combination.

notesm and notesn entered in a terminal or called from a script put the micro and nano folders, files, and scripts in that working directory. note is notesm plus notesn. you can also get a new default set by clicking a blank spot in a rox folder, clicking new, and selecting either the 0n4n or 0m4u folder. new micro pet moves moves your original /nwp/wp/0n4n if present as 0n4n-0. any text file put in the folder will be launched or concatenated with the rest of them when the scripts in their folder are activated. deleting files from the folders or renaming them should also work.

"getmicro" in the launcher or a terminal should download and install/update micro for all pups that use the script (nwp stuff will just fail without doing harm on non nwp pups).


enjoy.

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

making the scripts that may replace or be called by the

#247 Post by Puppus Dogfellow »

[...]the rewrite of the terminal and launcher short cuts for these things:
here's the basic reason i no longer want to scripts to call the batch of files and the terminal to run the text editor:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=tmux thru rxvt
Icon=mini-Utility.xpm
Comment=tmux through rxvt
Exec=/usr/bin/rxvt -e tmux new-session \; send-keys '/nwp/nana' C-m \; split-window -v \;   send-keys '/nwp/nanb' C-m \; split-window -h \;   send-keys '/nwp/nanc' C-m \; split-window -h \;   send-keys '/nwp/nan1' C-m \; split-window -h \;   send-keys '/nwp/nan2' C-m \; split-window -v \; send-keys 'date' C-m \; select-layout tiled \; attach
Terminal=false
Type=Application
Categories=TextEditor;TerminalEmulator
GenericName=tmux-rxvt
--i don't want the tmux windows launching external terminals. batch of 6 batches above--tiled. here are some templates for the sets of files the two recent text editor pets make:

Code: Select all


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


it's easier to plug the names of the scripts in than their contents (though you can do that, too.). the -h and -v are guides--the tiled at the end over rule them. swap out the rxvt for the terminal emulator of your choice, and one of the text editor selections for anything other than the geany varieties above (geany and mp allow easy, gui perusing of these files (though mp has a terminal interface option).

here's the same as above but with rxvt swapped for sakura and the nano scripts swapped for the micros (dependent on the above being run).

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=tmux thru rxvt
Icon=mini-Utility.xpm
Comment=tmux through sakura
Exec=/usr/bin/sakura -e tmux new-session \; send-keys '/nwp/mica' C-m \; split-window -v \;   send-keys '/nwp/micb' C-m \; split-window -h \;   send-keys '/nwp/micc' C-m \; split-window -h \;   send-keys '/nwp/mic1' C-m \; split-window -h \;   send-keys '/nwp/mic2' C-m \; split-window -v \; send-keys 'date' C-m \; select-layout tiled \; attach
Terminal=false
Type=Application
Categories=TextEditor;TerminalEmulator
GenericName=tmux-rxvt


so, that's a lot of potential menu items that may be better placed on panels (you can still link them to specific icons as if they were desktop files by right clicking them and selecting icon), the desktop, or left as terminal or launcher calls.

you could always just add the terminal to the shorts of your choice by using the ll launcher. ll in the main launcher, the name of the short cut, then preface the code with terminalchoice -e or terminalchoice -e tmux. ll launcher is set to act on/create in /nwp. to work on the files in my applications/bin, use lab instead of ll as the code in the main launcher (shift plus spacebar).

permissions launcher is ch for the nwp folder and chab for my applications bin (which you might need if micro doesn't launch for you)

that script was part of the pinstall for the previous micro pets:

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


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

notesn, notesm, and the scripts that make the next batch of

#248 Post by Puppus Dogfellow »

the templates for the batches launched by (mainly) nano and/or micro (there are a few new launcher calls to geany and mp) can be changed live or when created. the name of the directory can be changed but all the scripts that it need to be aware of it. the following gives an overview of what's looking for what where. first is the creation of the blank pages, or notebooks, or file cabinet--however you want to look at it.

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


#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

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

suggested icon batch for launchers

#249 Post by Puppus Dogfellow »

Code: Select all

#!/bin/sh
#thanks to technosaurus for text2xpm: http://www.murga-linux.com/puppy/viewtopic.php?p=561822#561822
#template example for txt2xpm scripts i used to make the icons--this one's set up for "mcc" in both lowercase and caps--change the file name (bit just before the .xpm since the rest identifies the creating script and that the content).

#odt txt doc docx pdf mon san ser pwn lpx nwp vtg rtf [h] [x] [p] [o] [d] bae mae n n1 n2 n3 n4 ae-p >x<  >d<  >o< [   ] {   } |  |  | 1 2 3 4 5 6 7 8 9 0 !# >_  [=] () )(  [!] [...] [.] [..] (/) ( / )  ODT TXT DOC DOCX PDF MON SAN SER PWN LPX NWP VTG RTF [H] [X] [P] [O] [D] BAE MAE N N1 N2 N3 N4 AE-P >X<  >D<  >O<
#mkdir -p /usr/share/applications/icons-alt/lab
mkdir -p /root/Desktop/desktops/icons/
0artxpm "MICRO" >/root/Desktop/desktops/icons/0artlmicro.xpm
0atxpm "MICRO" >/root/Desktop/desktops/icons/0atlmicro.xpm
0rwtxpm "MICRO" >/root/Desktop/desktops/icons/0rwtlmicro.xpm
0txpm "0MICRO" >/root/Desktop/desktops/icons/0tlmicro.xpm
1txpm "1MICRO" >/root/Desktop/desktops/icons/1tlmicro.xpm
2txpm "2MICRO" >/root/Desktop/desktops/icons/2tlmicro.xpm
3txpm "3MICRO" >/root/Desktop/desktops/icons/3tlmicro.xpm
4txpm "4MICRO" >/root/Desktop/desktops/icons/4tlmicro.xpm
5txpm "5MICRO" >/root/Desktop/desktops/icons/5tlmicro.xpm
6txpm "6MICRO" >/root/Desktop/desktops/icons/6tlmicro.xpm
7txpm "7MICRO" >/root/Desktop/desktops/icons/7tlmicro.xpm
8txpm "8MICRO" >/root/Desktop/desktops/icons/8tlmicro.xpm
9txpm "9MICRO" >/root/Desktop/desktops/icons/9tlmicro.xpm
bltxpm "MICRO" >/root/Desktop/desktops/icons/bltlmicro.xpm
botxpm "MICRO" >/root/Desktop/desktops/icons/botlmicro.xpm
btxpm "MICRO" >/root/Desktop/desktops/icons/btlmicro.xpm
bwtxpm "MICRO" >/root/Desktop/desktops/icons/bwtlmicro.xpm
deftxpm "MICRO" >/root/Desktop/desktops/icons/deftlmicro.xpm
defxpm "MICRO" >/root/Desktop/desktops/icons/deflmicro.xpm
gbtxpm "MICRO" >/root/Desktop/desktops/icons/gbtlmicro.xpm
gwtxpm "MICRO" >/root/Desktop/desktops/icons/gwtlmicro.xpm
kwtxpm "MICRO" >/root/Desktop/desktops/icons/kwtlmicro.xpm
lbtxpm "MICRO" >/root/Desktop/desktops/icons/lbtlmicro.xpm
lotxpm "MICRO" >/root/Desktop/desktops/icons/lotlmicro.xpm
obtxpm "MICRO" >/root/Desktop/desktops/icons/obtlmicro.xpm
oltxpm "MICRO" >/root/Desktop/desktops/icons/oltlmicro.xpm
prtext2xpm "MICRO" >/root/Desktop/desktops/icons/prtext2lmicro.xpm
prtxpm "MICRO" >/root/Desktop/desktops/icons/prtlmicro.xpm
ptxpm "MICRO" >/root/Desktop/desktops/icons/ptlmicro.xpm
rdbltxpm "MICRO" >/root/Desktop/desktops/icons/rdbltlmicro.xpm
rdltxpm "MICRO" >/root/Desktop/desktops/icons/rdltlmicro.xpm
rldtxpm "MICRO" >/root/Desktop/desktops/icons/rldtlmicro.xpm
rrdbltxpm "MICRO" >/root/Desktop/desktops/icons/rrdbltlmicro.xpm
text2xpm "MICRO" >/root/Desktop/desktops/icons/text2lmicro.xpm
wbtxpm "MICRO" >/root/Desktop/desktops/icons/wbtlmicro.xpm
wgtxpm "MICRO" >/root/Desktop/desktops/icons/wgtlmicro.xpm
wktxpm "MICRO" >/root/Desktop/desktops/icons/wktlmicro.xpm
wtxpm "MICRO" >/root/Desktop/desktops/icons/wtlmicro.xpm
wtxt2xpm "MICRO" >/root/Desktop/desktops/icons/wtxt2lmicro.xpm
0artxpm "NANO" >/root/Desktop/desktops/icons/0artnano.xpm
0atxpm "NANO" >/root/Desktop/desktops/icons/0atnano.xpm
0rwtxpm "NANO" >/root/Desktop/desktops/icons/0rwtnano.xpm
0txpm "0NANO" >/root/Desktop/desktops/icons/0tnano.xpm
1txpm "1NANO" >/root/Desktop/desktops/icons/1tnano.xpm
2txpm "2NANO" >/root/Desktop/desktops/icons/2tnano.xpm
3txpm "3NANO" >/root/Desktop/desktops/icons/3tnano.xpm
4txpm "4NANO" >/root/Desktop/desktops/icons/4tnano.xpm
5txpm "5NANO" >/root/Desktop/desktops/icons/5tnano.xpm
6txpm "6NANO" >/root/Desktop/desktops/icons/6tnano.xpm
7txpm "7NANO" >/root/Desktop/desktops/icons/7tnano.xpm
8txpm "8NANO" >/root/Desktop/desktops/icons/8tnano.xpm
9txpm "9NANO" >/root/Desktop/desktops/icons/9tnano.xpm
bltxpm "NANO" >/root/Desktop/desktops/icons/bltnano.xpm
botxpm "NANO" >/root/Desktop/desktops/icons/botnano.xpm
btxpm "NANO" >/root/Desktop/desktops/icons/btnano.xpm
bwtxpm "NANO" >/root/Desktop/desktops/icons/bwtnano.xpm
deftxpm "NANO" >/root/Desktop/desktops/icons/deftnano.xpm
defxpm "NANO" >/root/Desktop/desktops/icons/defnano.xpm
gbtxpm "NANO" >/root/Desktop/desktops/icons/gbtnano.xpm
gwtxpm "NANO" >/root/Desktop/desktops/icons/gwtnano.xpm
kwtxpm "NANO" >/root/Desktop/desktops/icons/kwtnano.xpm
lbtxpm "NANO" >/root/Desktop/desktops/icons/lbtnano.xpm
lotxpm "NANO" >/root/Desktop/desktops/icons/lotnano.xpm
obtxpm "NANO" >/root/Desktop/desktops/icons/obtnano.xpm
oltxpm "NANO" >/root/Desktop/desktops/icons/oltnano.xpm
prtext2xpm "NANO" >/root/Desktop/desktops/icons/prtext2nano.xpm
prtxpm "NANO" >/root/Desktop/desktops/icons/prtnano.xpm
ptxpm "NANO" >/root/Desktop/desktops/icons/ptnano.xpm
rdbltxpm "NANO" >/root/Desktop/desktops/icons/rdbltnano.xpm
rdltxpm "NANO" >/root/Desktop/desktops/icons/rdltnano.xpm
rldtxpm "NANO" >/root/Desktop/desktops/icons/rldtnano.xpm
rrdbltxpm "NANO" >/root/Desktop/desktops/icons/rrdbltnano.xpm
text2xpm "NANO" >/root/Desktop/desktops/icons/text2nano.xpm
wbtxpm "NANO" >/root/Desktop/desktops/icons/wbtnano.xpm
wgtxpm "NANO" >/root/Desktop/desktops/icons/wgtnano.xpm
wktxpm "NANO" >/root/Desktop/desktops/icons/wktnano.xpm
wtxpm "NANO" >/root/Desktop/desktops/icons/wtnano.xpm
wtxt2xpm "NANO" >/root/Desktop/desktops/icons/wtxt2nano.xpm
#mixbyname12abc
0artxpm "NAN2" >/root/Desktop/desktops/icons/0artumicro.xpm
0atxpm "NAN2" >/root/Desktop/desktops/icons/0atumicro.xpm
0rwtxpm "NAN2" >/root/Desktop/desktops/icons/0rwtumicro.xpm
0txpm "NAN2" >/root/Desktop/desktops/icons/0tumicro.xpm
1txpm "NAN1" >/root/Desktop/desktops/icons/1tumicro.xpm
2txpm "NAN1" >/root/Desktop/desktops/icons/2tumicro.xpm
3txpm "NAN1" >/root/Desktop/desktops/icons/3tumicro.xpm
4txpm "NAN1" >/root/Desktop/desktops/icons/4tumicro.xpm
5txpm "NAN1" >/root/Desktop/desktops/icons/5tumicro.xpm
6txpm "NANC" >/root/Desktop/desktops/icons/6tumicro.xpm
7txpm "NANC" >/root/Desktop/desktops/icons/7tumicro.xpm
8txpm "NANC" >/root/Desktop/desktops/icons/8tumicro.xpm
9txpm "NANC" >/root/Desktop/desktops/icons/9tumicro.xpm
bltxpm "NANB" >/root/Desktop/desktops/icons/bltumicro.xpm
botxpm "NANB" >/root/Desktop/desktops/icons/botumicro.xpm
btxpm "NANB" >/root/Desktop/desktops/icons/btumicro.xpm
bwtxpm "NANA" >/root/Desktop/desktops/icons/bwtumicro.xpm
deftxpm "NANA" >/root/Desktop/desktops/icons/deftumicro.xpm
defxpm "MIC2" >/root/Desktop/desktops/icons/defumicro.xpm
gbtxpm "MIC2" >/root/Desktop/desktops/icons/gbtumicro.xpm
gwtxpm "MIC2" >/root/Desktop/desktops/icons/gwtumicro.xpm
kwtxpm "MIC2" >/root/Desktop/desktops/icons/kwtumicro.xpm
lbtxpm "MIC2" >/root/Desktop/desktops/icons/lbtumicro.xpm
lotxpm "MIC1" >/root/Desktop/desktops/icons/lotumicro.xpm
obtxpm "MICC" >/root/Desktop/desktops/icons/obtumicro.xpm
oltxpm "MICC" >/root/Desktop/desktops/icons/oltumicro.xpm
prtext2xpm "MICC" >/root/Desktop/desktops/icons/prtext2umicro.xpm
prtxpm "MICC" >/root/Desktop/desktops/icons/prtumicro.xpm
ptxpm "MICC" >/root/Desktop/desktops/icons/ptumicro.xpm
rdbltxpm "MICC" >/root/Desktop/desktops/icons/rdbltumicro.xpm
rdltxpm "MICB" >/root/Desktop/desktops/icons/rdltumicro.xpm
rldtxpm "MICB" >/root/Desktop/desktops/icons/rldtumicro.xpm
rrdbltxpm "MICB" >/root/Desktop/desktops/icons/rrdbltumicro.xpm
text2xpm "MICB" >/root/Desktop/desktops/icons/text2umicro.xpm
wbtxpm "MICB" >/root/Desktop/desktops/icons/wbtumicro.xpm
wgtxpm "MICA" >/root/Desktop/desktops/icons/wgtumicro.xpm
wktxpm "MICA" >/root/Desktop/desktops/icons/wktumicro.xpm
wtxpm "MICA" >/root/Desktop/desktops/icons/wtumicro.xpm
wtxt2xpm "MICA" >/root/Desktop/desktops/icons/wtxt2umicro.xpm
#tmuxes
0artxpm "TMUX" >/root/Desktop/desktops/icons/0arttmux.xpm
0atxpm "TMUX" >/root/Desktop/desktops/icons/0attmux.xpm
0rwtxpm "TMUX" >/root/Desktop/desktops/icons/0rwttmux.xpm
0txpm "0TMUX" >/root/Desktop/desktops/icons/0ttmux.xpm
1txpm "1TMUX" >/root/Desktop/desktops/icons/1ttmux.xpm
2txpm "2TMUX" >/root/Desktop/desktops/icons/2ttmux.xpm
3txpm "3TMUX" >/root/Desktop/desktops/icons/3ttmux.xpm
4txpm "4TMUX" >/root/Desktop/desktops/icons/4ttmux.xpm
5txpm "5TMUX" >/root/Desktop/desktops/icons/5ttmux.xpm
6txpm "6TMUX" >/root/Desktop/desktops/icons/6ttmux.xpm
7txpm "7TMUX" >/root/Desktop/desktops/icons/7ttmux.xpm
8txpm "8TMUX" >/root/Desktop/desktops/icons/8ttmux.xpm
9txpm "9TMUX" >/root/Desktop/desktops/icons/9ttmux.xpm
bltxpm "TMUX" >/root/Desktop/desktops/icons/blttmux.xpm
botxpm "TMUX" >/root/Desktop/desktops/icons/bottmux.xpm
btxpm "TMUX" >/root/Desktop/desktops/icons/bttmux.xpm
bwtxpm "TMUX" >/root/Desktop/desktops/icons/bwttmux.xpm
deftxpm "TMUX" >/root/Desktop/desktops/icons/defttmux.xpm
defxpm "TMUX" >/root/Desktop/desktops/icons/deftmux.xpm
gbtxpm "TMUX" >/root/Desktop/desktops/icons/gbttmux.xpm
gwtxpm "TMUX" >/root/Desktop/desktops/icons/gwttmux.xpm
kwtxpm "TMUX" >/root/Desktop/desktops/icons/kwttmux.xpm
lbtxpm "TMUX" >/root/Desktop/desktops/icons/lbttmux.xpm
lotxpm "TMUX" >/root/Desktop/desktops/icons/lottmux.xpm
obtxpm "TMUX" >/root/Desktop/desktops/icons/obttmux.xpm
oltxpm "TMUX" >/root/Desktop/desktops/icons/olttmux.xpm
prtext2xpm "TMUX" >/root/Desktop/desktops/icons/prtext2tmux.xpm
prtxpm "TMUX" >/root/Desktop/desktops/icons/prttmux.xpm
ptxpm "TMUX" >/root/Desktop/desktops/icons/pttmux.xpm
rdbltxpm "TMUX" >/root/Desktop/desktops/icons/rdblttmux.xpm
rdltxpm "TMUX" >/root/Desktop/desktops/icons/rdlttmux.xpm
rldtxpm "TMUX" >/root/Desktop/desktops/icons/rldttmux.xpm
rrdbltxpm "TMUX" >/root/Desktop/desktops/icons/rrdblttmux.xpm
text2xpm "TMUX" >/root/Desktop/desktops/icons/text2tmux.xpm
wbtxpm "TMUX" >/root/Desktop/desktops/icons/wbttmux.xpm
wgtxpm "TMUX" >/root/Desktop/desktops/icons/wgttmux.xpm
wktxpm "TMUX" >/root/Desktop/desktops/icons/wkttmux.xpm
wtxpm "TMUX" >/root/Desktop/desktops/icons/wttmux.xpm
wtxt2xpm "TMUX" >/root/Desktop/desktops/icons/wtxt2tmux.xpm
wtxpm "3TMUX" >/root/Desktop/desktops/icons/wtt3mux.xpm
wtxt2xpm "2TMUX" >/root/Desktop/desktops/icons/wtxt2tm2ux.xpm
deftxpm "6TMUX" >/root/Desktop/desktops/icons/def6ttmux.xpm
defxpm "4TMUX" >/root/Desktop/desktops/icons/deft4mux.xpm
gbtxpm "2TMUX" >/root/Desktop/desktops/icons/gbttmu2x.xpm
gwtxpm "6TMUX" >/root/Desktop/desktops/icons/gwttm6ux.xpm
kwtxpm "4TMUX" >/root/Desktop/desktops/icons/kwt4tmux.xpm
lbtxpm "2TMUX" >/root/Desktop/desktops/icons/lbttm2ux.xpm
lotxpm "6TMUX" >/root/Desktop/desktops/icons/lot6tmux.xpm
obtxpm "4TMUX" >/root/Desktop/desktops/icons/obt4tmux.xpm
oltxpm "3TMUX" >/root/Desktop/desktops/icons/oltt3mux.xpm
#smaller direcotry icons:
bltxpm " /  " >/root/Desktop/desktops/icons/bltdir.xpm
botxpm " /  " >/root/Desktop/desktops/icons/botdir.xpm
btxpm " /  " >/root/Desktop/desktops/icons/btdir.xpm
bwtxpm " /  " >/root/Desktop/desktops/icons/bwtdir.xpm
deftxpm " /  " >/root/Desktop/desktops/icons/deftdir.xpm
defxpm " /  " >/root/Desktop/desktops/icons/defdir.xpm
gbtxpm " /  " >/root/Desktop/desktops/icons/gbtdir.xpm
gwtxpm " /  " >/root/Desktop/desktops/icons/gwtdir.xpm
kwtxpm " /  " >/root/Desktop/desktops/icons/kwtdir.xpm
lbtxpm " /  " >/root/Desktop/desktops/icons/lbtdir.xpm
lotxpm " /  " >/root/Desktop/desktops/icons/lotdir.xpm
obtxpm " /  " >/root/Desktop/desktops/icons/obtdir.xpm
oltxpm " /  " >/root/Desktop/desktops/icons/oltdir.xpm
prtext2xpm " /  " >/root/Desktop/desktops/icons/prtext2dir.xpm
prtxpm " /  " >/root/Desktop/desktops/icons/prtdir.xpm
ptxpm " /  " >/root/Desktop/desktops/icons/ptdir.xpm
rdbltxpm " /  " >/root/Desktop/desktops/icons/rdbltdir.xpm
rdltxpm " /  " >/root/Desktop/desktops/icons/rdltdir.xpm
rldtxpm " /  " >/root/Desktop/desktops/icons/rldtdir.xpm
rrdbltxpm " /  " >/root/Desktop/desktops/icons/rrdbltdir.xpm
text2xpm " /  " >/root/Desktop/desktops/icons/text2dir.xpm
wbtxpm " /  " >/root/Desktop/desktops/icons/wbtdir.xpm
wgtxpm " /  " >/root/Desktop/desktops/icons/wgtdir.xpm
wktxpm " /  " >/root/Desktop/desktops/icons/wktdir.xpm
wtxpm " /  " >/root/Desktop/desktops/icons/wtdir.xpm
wtxt2xpm " /  " >/root/Desktop/desktops/icons/wtxt2dir.xpm
subtitle to the post talks of vtg (through geany--the cauliflower on the interface) but i've recently discovered that built in mp has a nifty way of deleting and/or renaming files in a directory.

a little more (plus directory and panel icons in the mode of above):
http://murga-linux.com/puppy/viewtopic. ... 44#1031444

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

newest batch of launcher (and terminal) shortcuts/codes

#250 Post by Puppus Dogfellow »

from http://murga-linux.com/puppy/viewtopic. ... 15#1031615


micro1.4.1-nuupn32n64.pet: https://drive.google.com/file/d/11xAyVX ... sp=sharing
---
from Re: newest batch of launcher (and terminal) shortcuts/codes (http://murga-linux.com/puppy/viewtopic. ... 89#1031689)
Puppus Dogfellow wrote:
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 -- install 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).

Code: Select all


#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 

run the green bit in the terminal to give the my-documents version of the batches something to refer to.


micro1.4.1-nuupn32n64.pet: https://drive.google.com/file/d/11xAyVX ... sp=sharing

(green bit comes from the pinstall in the above pet)
______

here are the newest libre offices:

LibreOffice-6.2.5_en-US_xz.sfs
LibreOffice-6.2.5_en-US_xz.pet
LibreOffice-6.2.5_64_en-US_xz.sfs
LibreOffice-6.2.5_64_en-US_xz.pet

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

tnux.pet updates/improves micro1..-nuupn3264n.pet above

#251 Post by Puppus Dogfellow »

tnux.pet will back up your folders if you've installed the earlier version. as above, say no to the wrong architecture when the nano pop ups appear (or both as that's the same as above--293. if you've got newer, say no to all). menu entry opens up /root/my-documents to the folders with the scripts and blanks. you could change the exec line to point to specific scripts inside those folders depending on how you want to run things. the pinstall script:

Code: Select all

#!/bin/sh
mv /nwp/wp/0n4n /nwp/wp/0n4n-00
mv /nwp/wp/0m4u /nwp/wp/0m4u-0
mv /root/my-documents/0m4u /root/my-documents/0m4u-0
mv /root/my-documents/0n4n /root/my-documents/0n4n-0
cd /root/.config/rox.sourceforge.net/Templates/
note
cd /nwp/wp
note
cd /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


wktxpm "TMUX" >/root/puppy-reference/mini-icons/wkttnu.xpm
gbtxpm "TMUX" >/root/puppy-reference/mini-icons/gbttnu.xpm
rdltxpm "TMUX" >/root/puppy-reference/mini-icons/rdlttnu.xpm
rldtxpm "TMUX" >/root/puppy-reference/mini-icons/rldttnu.xpm
1txpm "DOCS 0,0" >/root/puppy-reference/mini-icons/1ttnut.xpm
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=TNUT--DOCS00
Icon=1ttnut.xpm
Comment=open panel main directory
Exec=rox  /root/my-documents
Terminal=false
Type=Application
Categories=TextEditor;TerminalEmulator
GenericName=TNUT

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


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

fixmenus
jwm -restart


the new notesm:

Code: Select all

#!/bin/sh
#nano batches (0n4n) still set for rxvt
#micro batches (0m4u) now set for sakura
#tmux 6grid of text editor banks as part of improved
#notesn, notesm, and notes scripts
#last box is the other five catted in a number of ways
#use ctrl b +z to toggle zooming of one specific panel
#use ctrl b +x to close a panel
#remove "send-keys \'micro/nano ./a-c,1-2/*\' C-m \; split-window -v \;" type chunks to 
#make smaller grid presets
#notesm:

#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
#addon1:
echo $'#!/bin/sh
#cd ./0n4n/
./allcat
./allcatted
./cat4n
./cat4n0
micro ./*.txt
' > ./0m4u/mitxt
chmod 755 ./0m4u/mitxt
#addon2:
echo $'#!/bin/sh
/usr/bin/sakura -e tmux new-session \; send-keys \'micro ./a/*\' C-m \; split-window -v \;  send-keys \'micro ./b/*\' C-m \; split-window -h \;  send-keys \'micro ./c/*\' C-m \; split-window -h \;  send-keys \'micro ./1/*\' C-m \; split-window -h \;  send-keys \'micro ./2/*\' C-m \; split-window -v \; send-keys \'./mitxt\' C-m \; select-layout tiled \; attach
' > ./0m4u/6m1s
chmod 755 ./0m4u/6m1s
#if not symlinking back, replace the dot with the rest of your real path to make launcher codes or terminal calls for them. for a desktop file you could do the same or just open the folder in your file manager and click on individual or group launch for the subfolders.
the new 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
echo $'#!/bin/sh
#cd ./0n4n/
./allcat
./allcatted
./cat4n
./cat4n0
nano ./*.txt
' > ./0n4n/nantxt
chmod 755 ./0n4n/nantxt

echo $'#!/bin/sh
/usr/bin/rxvt -e tmux new-session \; send-keys \'nano ./a/*\' C-m \; split-window -v \;  send-keys \'nano ./b/*\' C-m \; split-window -h \;  send-keys \'nano ./c/*\' C-m \; split-window -h \;  send-keys \'nano ./1/*\' C-m \; split-window -h \;  send-keys \'nano ./2/*\' C-m \; split-window -v \; send-keys \'./nantxt\' C-m \; select-layout tiled \; attach
' > ./0n4n/6n1r
chmod 755 ./0n4n/6n1r 

#if not symlinking back, replace the dot with the rest of your real path to make launcher codes or terminal calls for them. for a desktop file you could do the same or just open the folder in your file manager and click on individual or group launch for the subfolders.

and something in what should be in the icon path for most pups, an on the spot version of the earler icon scripts, iconshere:

Code: Select all

#!/bin/sh
#mkdir -p /root/Desktop/desktops/{scripts,icons/{pans,defaults,dirs,conf,cus}}
#requires mcc http://murga-linux.com/puppy/viewtopic.php?p=884162#884162
#or some later for of nwp/anuupuus: http://murga-linux.com/puppy/viewtopic.php?p=850270#850270
#mkdir -p ./[add/subfolders]icon.xpm
#search and replace TMUX to change the icon, tnu to change the icon's name
#/root/puppy-reference/mini-icons/ should be in your icon path 
#so you'd only need to name of the icon to get it to show up on desktop files.
#(you could also skip that part and right click associate icons with files--no menu
#entries, but you can still use them on the panels and desktops and assign
#keyboard shortcuts to them
0artxpm "TMUX" >./0arttnu.xpm
0atxpm "TMUX" >./0attnu.xpm
0rwtxpm "TMUX" >./0rwttnu.xpm
0txpm "TMUX" >./0ttnu.xpm
1txpm "TMUX" >./1ttnu.xpm
2txpm "TMUX" >./2ttnu.xpm
3txpm "TMUX" >./3ttnu.xpm
4txpm "TMUX" >./4ttnu.xpm
5txpm "TMUX" >./5ttnu.xpm
6txpm "TMUX" >./6ttnu.xpm
7txpm "TMUX" >./7ttnu.xpm
8txpm "TMUX" >./8ttnu.xpm
9txpm "TMUX" >./9ttnu.xpm
bltxpm "TMUX" >./blttnu.xpm
botxpm "TMUX" >./bottnu.xpm
btxpm "TMUX" >./bttnu.xpm
bwtxpm "TMUX" >./bwttnu.xpm
deftxpm "TMUX" >./defttnu.xpm
defxpm "TMUX" >./deftnu.xpm
gbtxpm "TMUX" >./gbttnu.xpm
gwtxpm "TMUX" >./gwttnu.xpm
kwtxpm "TMUX" >./kwttnu.xpm
lbtxpm "TMUX" >./lbttnu.xpm
lotxpm "TMUX" >./lottnu.xpm
obtxpm "TMUX" >./obttnu.xpm
oltxpm "TMUX" >./olttnu.xpm
prtext2xpm "TMUX" >./prtext2tnu.xpm
prtxpm "TMUX" >./prttnu.xpm
ptxpm "TMUX" >./pttnu.xpm
rdbltxpm "TMUX" >./rdblttnu.xpm
rdltxpm "TMUX" >./rdlttnu.xpm
rldtxpm "TMUX" >./rldttnu.xpm
rrdbltxpm "TMUX" >./rrdblttnu.xpm
text2xpm "TMUX" >./text2tnu.xpm
wbtxpm "TMUX" >./wbttnu.xpm
wgtxpm "TMUX" >./wgttnu.xpm
wktxpm "TMUX" >./wkttnu.xpm
wtxpm "TMUX" >./wttnu.xpm
wtxt2xpm "TMUX" >./wtxt2tnu.xpm
1txpm "DOCS 0,0" >./1ttnut.xpm
#swap tmux for icon and tnu for name of icon
#TMUX NANO MICRO
#recs: pinks for sakura:  rldttnu.xpm     rdlttnu.xpm
# black and white for rxvt: wkttnu.xpm
# green and black in general for tmux: gbttnu.xpm
#mkdir -p ./cus/cus{1..4}
#wktxpm "TMUX" >/root/puppy-reference/mini-icons/wkttnu.xpm
#gbtxpm "TMUX" >/root/puppy-reference/mini-icons/gbttnu.xpm
#rdltxpm "TMUX" >/root/puppy-reference/mini-icons/rdlttnu.xpm
#rldtxpm "TMUX" >/root/puppy-reference/mini-icons/rldttnu.xpm
#1txpm "DOCS 0,0" >/root/puppy-reference/mini-icons/1ttnut.xpm
#echo $'
#[Desktop Entry]
#Encoding=UTF-8
#Name=TNUT--DOCS00
#Icon=1ttnut.xpm
#Comment=open panel main directory
#Exec=rox  /root/my-documents
#Terminal=false
#Type=Application
#Categories=TextEditor;TerminalEmulator
#GenericName=TNUT

#' > /usr/share/applications/DOCS00.desktop
#fixmenus
#jwm -reload
the last icon making bit's not activated by default, but you can click it to get TMUXes in all the default colors. it's set for /root/puppy-reference/mini-icons/, and the above script has the uncommented out version activated at installation--swap out the exec=rox line for one of the scripts in the folders (wherever you drag them--they're portable from within, but external calls need to know the absolute path(s)) if you want a specific script called (..nanb, 6m2s1) rather than the platter of choices.

---

here's the pet again:
tnux.pet


(TNUX --text editors, nano, micro (u), tmu(x) terminal multiplexer)

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

an update and fix for tnux.pet

#252 Post by Puppus Dogfellow »

i mistakenly left out some launcher shortcuts and made files with duplicate names. fix by dumping the following into a terminal:

Code: Select all

#!/bin/sh
#launcher shortcuts (name of the script) for mp editor and other gui text editors opening the cli/0- folders as launcher shortcuts:
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
#geany
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
#geany new instance
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 


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

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

echo $'#!/bin/sh
geany -i /nwp/wp/0n4n/1/*
' > /nwp/gin1
chmod 755 /nwp/gin1
echo $'#!/bin/sh
geany -i /nwp/wp/0n4n/2/*
' > /nwp/gin2
chmod 755 /nwp/gin2
echo $'#!/bin/sh
geany -i /nwp/wp/0n4n/a/*
' > /nwp/gina
chmod 755 /nwp/gina
echo $'#!/bin/sh
geany -i /nwp/wp/0n4n/b/*
' > /nwp/ginb
chmod 755 /nwp/ginb
echo $'#!/bin/sh
geany -i /nwp/wp/0n4n/c/*
' > /nwp/ginc
chmod 755 /nwp/ginc
echo $'#!/bin/sh
geany -i /nwp/wp/0m4u/1/*
' > /nwp/giu1
chmod 755 /nwp/giu1
echo $'#!/bin/sh
geany -i /nwp/wp/0m4u/2/*
' > /nwp/giu2
chmod 755 /nwp/giu2
echo $'#!/bin/sh
geany -i /nwp/wp/0m4u/a/*
' > /nwp/giua
chmod 755 /nwp/giua
echo $'#!/bin/sh
geany -i /nwp/wp/0m4u/b/*
' > /nwp/giub
chmod 755 /nwp/giub 


sed -i 's/\.txt/a\.txt/' /nwp/wp/0n4n/allcatted
sed -i 's/cataa/cata/' /nwp/wp/0n4n/allcatted
sed -i 's/\.txt/a\.txt/' /nwp/wp/0m4u/allcatted
sed -i 's/cataa/cata/' /nwp/wp/0m4u/allcatted

sed -i 's/\.txt/a\.txt/' /root/.config/rox.sourceforge.net/Templates/0n4n/allcatted
sed -i 's/cataa/cata/' /root/.config/rox.sourceforge.net/Templates/0n4n/allcatted
sed -i 's/\.txt/a\.txt/' /root/.config/rox.sourceforge.net/Templates/0m4u/allcatted
sed -i 's/cataa/cata/' /root/.config/rox.sourceforge.net/Templates/0m4u/allcatted
sed -i 's/\.txt/a\.txt/' /root/my-documents/0n4n/allcatted 
sed -i 's/cataa/cata/' /root/my-documents/0n4n/allcatted 
sed -i 's/\.txt/a\.txt/' /root/my-documents/0m4u/allcatted
sed -i 's/cataa/cata/' /root/my-documents/0m4u/allcatted

#hit ` and enter the following two lines into the terminal wherever you've copied the template folders or activated the note scripts
#sed -i 's/\.txt/a\.txt/' ./allcatted
#sed -i 's/cataa/cata/' ./allcatted
i'm updating tnux.pet to include mcedit and lxterminal in its tmux launch (third folder), but i'll include that along with the other tweaks in the next post (rather than making a pet that backs up/replaces 0n4u for a third time).

the basic code for the batches and tmux works in android, but i'm getting different results in different devices--for some the asterisk launches everything in a folder but for others (amazon product) it just opens up a file named "*"--i think i remember seeing similar inconsistent behavior through various terminals and editor combos, but i've been through so many lately i'm not sure if including the code is relevant to puppy beyond a way to search and replace to call directly and instantly the batches or block of batches from wherever you places them--just do a substitution of nwp/wp (or /data/com/storage/0/ --i may not adjust it back from the android paths to give more utility and a template that shows a more unpuppy/custom location) for your path--i plan to make swapping of the shortcuts to my-documents (etc) easier in the next pet (and maybe just post the androido scripts --i'm synced between puppy and my android boxes now the same the way i use geany to link up notes and text between my pups (i'm using syncthing folders since looking at the ssh stuff is still like deciphering alien artwork and in jokes to me).

if you've activated note or used the new > template function to create the 0m4u or 0n4n folders, go to the location and dump

sed -i 's/\.txt/a\.txt/' ./allcatted
sed -i 's/cataa/cata/' ./allcatted

into a terminal in that folder (hit the ` key to open a terminal or do a substitution --doubt you have as many all over the place as i do ...

:lol:

enjoy

--p. dogfellow

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

some updates: tnux gets better android compatibility, geany

#253 Post by Puppus Dogfellow »

LibreOffice-6.3.0_64_en-US_xz.pet
LibreOffice-6.3.0_64_en-US_xz.sfs
libre6.3.desktops.pet
geanythemes.pet
tnux.1.pet
___

you can see the contents of the tnux pet in the anuupus thread ( http://murga-linux.com/puppy/viewtopic. ... 86#1034386), but it's basically the above tnux.0 plus androido/tnux-a, which i'll post below (as mentioned above, it's the android version of the nano and micro utilities).

___

use the desktops pet if your LibreOffice gives you no menu entries

____

from the vtg thread:
Puppus Dogfellow wrote:i like geany's right click /open/file/given/full/path/ feature, but often found myself using the vtg and geany -i [path] to open file in a new window. turns out there's a faster way. go to Edit>Preferences>Tools and enter

Code: Select all

geany -i %s
in the box labeled Command, and you can do it throught right click>Context Action (you could obviously program it to do something else with the file or text, but this is a use for that menu item).

------
geanythemes.pet

with the above pet (compatible with 1.22 and above) you can change geany's color scheme through view>change color scheme (or alt+v, c).

enjoy.
:D



screenshots:
https://www.geany.org/download/themes/
-------------

from themes and a tip

***
from pupli repo/word processing and related/nwp+vtg/recs and notes/Androido!/notes3:
here's a general use version of the script i've been using (piecemeal) to configure my android devices to use the tnux text editor utilities (it's not a typo--text editors, nano, micro (u), tmu(x) terminal multiplexer; sometimes the little red line's more annoying than others) and be more useable in general. the .. business moves up directories (rather than cd /path to where you were), but the everything else should be fairly heavily commented (it started out as Androido but is now tnux-a):

#!/bin/sh
#androido/tnux-a. tnux0.pet as a script to configure android devices to use binder like batches of text editor files launched in tmux or terminal
#text editors used are nano, mc edit, and micro; terminal app and tmux req.
#android version gets rid of calls to specific consoles since you have to be in the terminal to use in the first place
#i perhaps mistakenly use terminal and console interchangeably.
echo $'#!/bin/sh
notesn
notesm
notesmcx
#seems that in android/termux/tmux you need to call bash to run scripts not in the path. i.e. bash ./ thishere.sh.
#try changing permissions or preceeding the call with bash if things aren\'t working as expected. this script is the
#android device version of tnux.0 and the other On4n/0m4u grids of text editor notebooks in tmux (nano, micro, and now mc edit).
# call with notesn, note (all at once), notesmcx, or notesm (there\'s no lpx conflict but i named things the same way in the android version anyway). in testing i used puppy to make the folders i tried out on the android boxes, phone, and kindle, but this newest version can make the folders in the android device itself (in theory--i haven\'t actually tested it yet--at worse it\'ll just fail and you can make it in linux and access them in the networked android folder)
#some of the bits that are commented probably should be uncommented out and their versions taken off bash.bashrc, but calling cd /path scripts wasnt working on the kindle originally (i think a bash update fixed that and opening the asterisk weirdness (opening a file named * rather than all the files in a directory). if not, i\'ll post the longer version at some later time. (all files listed and you don\'t get auto inclusion of whatever you put in that folder or syncing conflicts, etc--it\'s not preferable).
' > /data/data/com.termux/files/usr/bin/applets/note
chmod 755 /data/data/com.termux/files/usr/bin/applets/note
###
#above refers to scripts not yet included, but first i want to get the bashrc stuff out of the way (mostly stuff to make navigation and editing of configuration files easier):
#back up bash profile and add some stuff to it:
cp -f /data/data/com.termux/files/usr/etc/bash.bashrc /data/data/com.termux/files/usr/etc/bash.bashrc-bk
echo $'
alias .....=\'cd ../../../../\'
alias ....=\'cd ../../../\'
alias ...=\'cd ../../\'
alias ..=\'cd ..\'
alias ll=\'ls -sa\'
alias ls=\'ls --color=auto\'
#(can\'t find the specific original source, but) the above bit is pretty common--hop up the directory tree and make ls a little more user friendly. more navigation shorts:
alias usr=\'cd /data/data/com.termux/files/usr/\'
alias config=\'cd /data/data/com.termux/files/home/.config/\'
alias etc=\'cd /data/data/com.termux/files/usr/etc/\'
alias home=\'cd /data/data/com.termux/files/home/\'
alias home2=\'cd /storage/emulated/0/CUS/\'
alias sto=\'cd /storage/emulated/0/\'
#these next two are uncommented but you should either swap in your dropbox stuff and card details or comment them out:
alias cardb=\'cd /storage/emulated/0/Android/data/com.dropbox.android/files/[]/\'
alias card=\'cd /storage/[somenumber]\'
path1=\'cd /data/data/com.termux/files/usr/bin/\'
path2=\'cd /data/data/com.termux/files/usr/bin/applets/\'
#you could add a path and do other bash tricks, many or all of which may be better than having to remember to not update the bash profile when you update bash (the reason some of the individual scripts this script makes duplicate some of these functions--you may forget and need to get back in here (or you can just rerun this bit).
alias microno=\'nano /data/data/com.termux/files/usr/etc/nanorc /data/data/com.termux/files/home/.config/micro/settings.json /data/data/com.termux/files/usr/etc/bash.bashrc\'
alias microc=\'micro /data/data/com.termux/files/usr/etc/nanorc /data/data/com.termux/files/home/.config/micro/settings.json /data/data/com.termux/files/usr/etc/bash.bashrc\'
#^main configuration files i seem to find myself tweaking, opened in your choice of nano or micro.
#i put cd ../[sto]/0n4n (etc) on the bash profile as well for easy access, but i no longer think the cd /path scripts would be a problem--i may have forgotten to add some authorization package first time around.
' >> /data/data/com.termux/files/usr/etc/bash.bashrc
#sto and home2 (swap out CUS or the rest of the path) are set for where android seems to prefer you store your stuff.
#
#the rest of my original config script (assumes you made the text editor batch launch folders already and placed them ..storage/../CUS:
#
#
#swap out the CUS for the folder if using sto; swap out whole path if using some other location
#(though you could just ignore the defaults and use the note(s- n,m,mcx) scripts)
# for easy filling of the tmux grids with text editor/document batches:
echo $'#!/bin/sh
nano /storage/emulated/0/CUS/0n4n/1/*
' > /data/data/com.termux/files/usr/bin/applets/na1
chmod 755 /data/data/com.termux/files/usr/bin/applets/na1
echo $'#!/bin/sh
nano /storage/emulated/0/CUS/0n4n/2/*
' > /data/data/com.termux/files/usr/bin/applets/na2
chmod 755 /data/data/com.termux/files/usr/bin/applets/na2
echo $'#!/bin/sh
nano /storage/emulated/0/CUS/0n4n/a/*
' > /data/data/com.termux/files/usr/bin/applets/naa
chmod 755 /data/data/com.termux/files/usr/bin/applets/naa
echo $'#!/bin/sh
nano /storage/emulated/0/CUS/0n4n/b/*
' > /data/data/com.termux/files/usr/bin/applets/nab
chmod 755 /data/data/com.termux/files/usr/bin/applets/nab
echo $'#!/bin/sh
nano /storage/emulated/0/CUS/0n4n/c/*
' > /data/data/com.termux/files/usr/bin/applets/nac
chmod 755 /data/data/com.termux/files/usr/bin/applets/nac
echo $'#!/bin/sh
micro /storage/emulated/0/CUS/0m4u/1/*
' > /data/data/com.termux/files/usr/bin/applets/mi1
chmod 755 /data/data/com.termux/files/usr/bin/applets/mi1
echo $'#!/bin/sh
micro /storage/emulated/0/CUS/0m4u/2/*
' > /data/data/com.termux/files/usr/bin/applets/mi2
chmod 755 /data/data/com.termux/files/usr/bin/applets/mi2
echo $'#!/bin/sh
micro /storage/emulated/0/CUS/0m4u/a/*
' > /data/data/com.termux/files/usr/bin/applets/mia
chmod 755 /data/data/com.termux/files/usr/bin/applets/mia
echo $'#!/bin/sh
micro /storage/emulated/0/CUS/0m4u/b/*
' > /data/data/com.termux/files/usr/bin/applets/mib
chmod 755 /data/data/com.termux/files/usr/bin/applets/mib
echo $'#!/bin/sh
micro /storage/emulated/0/CUS/0m4u/c/*
' > /data/data/com.termux/files/usr/bin/applets/mic
chmod 755 /data/data/com.termux/files/usr/bin/applets/mic
echo $'#!/bin/sh
/storage/emulated/0/CUS/0n4n/allcat
/storage/emulated/0/CUS/0n4n/allcatted
/storage/emulated/0/CUS/0n4n/cat4n
/storage/emulated/0/CUS/0n4n/cat4n0
nano /storage/emulated/0/CUS/0n4n/*.txt
' > /data/data/com.termux/files/usr/bin/applets/natxt
chmod 755 /data/data/com.termux/files/usr/bin/applets/natxt
echo $'#!/bin/sh
/storage/emulated/0/CUS/0n4n/allcat
/storage/emulated/0/CUS/0n4n/allcatted
/storage/emulated/0/CUS/0n4n/cat4n
/storage/emulated/0/CUS/0n4n/cat4n0
micro /storage/emulated/0/CUS/0n4n/*.txt
' > /data/data/com.termux/files/usr/bin/applets/mnatxt
chmod 755 /data/data/com.termux/files/usr/bin/applets/mnatxt
echo $'#!/bin/sh
/storage/emulated/0/CUS/0m4u/allcat
/storage/emulated/0/CUS/0m4u/allcatted
/storage/emulated/0/CUS/0m4u/cat4n
/storage/emulated/0/CUS/0m4u/cat4n0
micro /storage/emulated/0/CUS/0m4u/*.txt
' > /data/data/com.termux/files/usr/bin/applets/mitxt
chmod 755 /data/data/com.termux/files/usr/bin/applets/mitxt
echo $'#!/bin/sh
/storage/emulated/0/CUS/0m4u/allcat
/storage/emulated/0/CUS/0m4u/allcatted
/storage/emulated/0/CUS/0m4u/cat4n
/storage/emulated/0/CUS/0m4u/cat4n0
nano /storage/emulated/0/CUS/0m4u/*.txt
' > /data/data/com.termux/files/usr/bin/applets/nmitxt
chmod 755 /data/data/com.termux/files/usr/bin/applets/nmitxt
echo $'#!/bin/sh
tmux new-session \; send-keys \'naa\' C-m \; split-window -v \; send-keys \'nab\' C-m \; split-window -h \; send-keys \'nac\' C-m \; split-window -h \; send-keys \'na1\' C-m \; split-window -h \; send-keys \'na2\' C-m \; split-window -v \; send-keys \'natxt\' C-m \; select-layout tiled \; attach
' > /data/data/com.termux/files/usr/bin/applets/6ny2
chmod 755 /data/data/com.termux/files/usr/bin/applets/6ny2
echo $'#!/bin/sh
tmux new-session \; send-keys \'mia\' C-m \; split-window -v \; send-keys \'mib\' C-m \; split-window -h \; send-keys \'mic\' C-m \; split-window -h \; send-keys \'mi1\' C-m \; split-window -h \; send-keys \'mi2\' C-m \; split-window -v \; send-keys \'mitxt\' C-m \; select-layout tiled \; attach
' > /data/data/com.termux/files/usr/bin/applets/6my2
chmod 755 /data/data/com.termux/files/usr/bin/applets/6my2
echo $'#!/bin/sh
tmux new-session \; send-keys \'naa\' C-m \; split-window -v \; send-keys \'nab\' C-m \; split-window -h \; send-keys \'nac\' C-m \; split-window -h \; send-keys \'na1\' C-m \; split-window -h \; send-keys \'na2\' C-m \; split-window -v \; send-keys \'mnatxt\' C-m \; select-layout tiled \; attach
' > /data/data/com.termux/files/usr/bin/applets/6nCUS
chmod 755 /data/data/com.termux/files/usr/bin/applets/6nCUS
echo $'#!/bin/sh
tmux new-session \; send-keys \'mia\' C-m \; split-window -v \; send-keys \'mib\' C-m \; split-window -h \; send-keys \'mic\' C-m \; split-window -h \; send-keys \'mi1\' C-m \; split-window -h \; send-keys \'mi2\' C-m \; split-window -v \; send-keys \'nmitxt\' C-m \; select-layout tiled \; attach
' > /data/data/com.termux/files/usr/bin/applets/6mCUS
chmod 755 /data/data/com.termux/files/usr/bin/applets/6mCUS
#--------------6-------------------------
echo $'#!/bin/sh
tmux new-session \; send-keys \'naa\' C-m \; split-window -v \; send-keys \'nab\' C-m \; split-window -h \; send-keys \'nac\' C-m \; split-window -h \; send-keys \'na1\' C-m \; split-window -h \; send-keys \'na2\' C-m \; split-window -v \; send-keys \'natxt\' C-m \; select-layout tiled \; attach
' > /data/data/com.termux/files/usr/bin/applets/6n
chmod 755 /data/data/com.termux/files/usr/bin/applets/6n
echo $'#!/bin/sh
tmux new-session \; send-keys \'mia\' C-m \; split-window -v \; send-keys \'mib\' C-m \; split-window -h \; send-keys \'mic\' C-m \; split-window -h \; send-keys \'mi1\' C-m \; split-window -h \; send-keys \'mi2\' C-m \; split-window -v \; send-keys \'mitxt\' C-m \; select-layout tiled \; attach
' > /data/data/com.termux/files/usr/bin/applets/6m
chmod 755 /data/data/com.termux/files/usr/bin/applets/6m
#---------------4-------------------------
echo $'#!/bin/sh
tmux new-session \; send-keys \'naa\' C-m \; split-window -v \; send-keys \'nab\' C-m \; split-window -h \; send-keys \'nac\' C-m \; split-window -h \; send-keys \'na1\' C-m \; select-layout tiled \; attach
' > /data/data/com.termux/files/usr/bin/applets/4n
chmod 755 /data/data/com.termux/files/usr/bin/applets/4n
echo $'#!/bin/sh
tmux new-session \; send-keys \'mia\' C-m \; split-window -v \; send-keys \'mib\' C-m \; split-window -h \; send-keys \'mic\' C-m \; split-window -h \; send-keys \'mi1\' C-m \; select-layout tiled \; attach
' > /data/data/com.termux/files/usr/bin/applets/4m
chmod 755 /data/data/com.termux/files/usr/bin/applets/4m
#---------------2-------------------------
echo $'#!/bin/sh
tmux new-session \; send-keys \'na2\' C-m \; split-window -v \; send-keys \'natxt\' C-m \; attach
' > /data/data/com.termux/files/usr/bin/applets/2n
chmod 755 /data/data/com.termux/files/usr/bin/applets/2n
echo $'#!/bin/sh
tmux new-session \; send-keys \'mi2\' C-m \; split-window -v \; send-keys \'mitxt\' C-m \; attach
' > /data/data/com.termux/files/usr/bin/applets/2m
chmod 755 /data/data/com.termux/files/usr/bin/applets/2m
echo $'#!/bin/sh
tmux kill-server
#To close a specific session, use tmux list-sessions to identify the session you want to kill, and then use tmux kill-session -t targetSession to kill that specific session.
' > /data/data/com.termux/files/usr/bin/applets/kil
chmod 755 /data/data/com.termux/files/usr/bin/applets/kil
echo $'#!/bin/sh
tmux kill-session -a
' > /data/data/com.termux/files/usr/bin/applets/kila
chmod 755 /data/data/com.termux/files/usr/bin/applets/kila
#
echo $'#!/bin/sh
tmux new-session \; send-keys \'naa\' C-m \; split-window -v \; send-keys \'nab\' C-m \; split-window -h \; send-keys \'nac\' C-m \; split-window -h \; send-keys \'na1\' C-m \; split-window -h \; send-keys \'na2\' C-m \; split-window -v \; send-keys \'mnatxt\' C-m \; select-layout tiled \; attach
' > /data/data/com.termux/files/usr/bin/applets/6nm
chmod 755 /data/data/com.termux/files/usr/bin/applets/6nm
echo $'#!/bin/sh
tmux new-session \; send-keys \'mia\' C-m \; split-window -v \; send-keys \'mib\' C-m \; split-window -h \; send-keys \'mic\' C-m \; split-window -h \; send-keys \'mi1\' C-m \; split-window -h \; send-keys \'mi2\' C-m \; split-window -v \; send-keys \'nmitxt\' C-m \; select-layout tiled \; attach
' > /data/data/com.termux/files/usr/bin/applets/6mn
chmod 755 /data/data/com.termux/files/usr/bin/applets/6mn
#
#presets/quick calls have no mcedit version, but you can navigate to the 0mce folder to batch launch those versions
echo $'#!/bin/sh
micro /data/data/com.termux/files/usr/etc/nanorc /data/data/com.termux/files/home/.config/micro/settings.json /data/data/com.termux/files/usr/etc/bash.bashrc
' > /data/data/com.termux/files/usr/bin/applets/bashm
chmod 755 /data/data/com.termux/files/usr/bin/applets/bashm
echo $'#!/bin/sh
nano /data/data/com.termux/files/usr/etc/nanorc /data/data/com.termux/files/home/.config/micro/settings.json /data/data/com.termux/files/usr/etc/bash.bashrc
' > /data/data/com.termux/files/usr/bin/applets/bashn
chmod 755 /data/data/com.termux/files/usr/bin/applets/bashn
#end of original file. here's the bit that makes the folders and tmux grids from the terminal (and which will attempt to run them in the ../CUS/.. folder--do a search and replace before running this script):

echo $'
#!/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/* >> ./4naa.txt
cat ./b/* >> ./4nba.txt
cat ./1/* >> ./4n1a.txt
cat ./2/* >> ./4n2a.txt
cat ./c/* >> ./4nca.txt
cat 4n* >> ./4cata.txt
\' >> ./0n4n/allcatted
chmod 755 ./0n4n/allcatted
echo $\'#!/bin/sh
nano ./1/*
\' > ./0n4n/nan1
chmod 755 ./0n4n/nan1
echo $\'#!/bin/sh
nano ./2/*
\' > ./0n4n/nan2
chmod 755 ./0n4n/nan2
echo $\'#!/bin/sh
nano ./a/*
\' > ./0n4n/nana
chmod 755 ./0n4n/nana
echo $\'#!/bin/sh
nano ./b/*
\' > ./0n4n/nanb
chmod 755 ./0n4n/nanb
echo $\'#!/bin/sh
nano ./c/*
\' > ./0n4n/nanc
chmod 755 ./0n4n/nanc
echo $\'#!/bin/sh
#cd ./0n4n/
./allcat
./allcatted
./cat4n
./cat4n0
nano ./*.txt
\' > ./0n4n/nantxt
chmod 755 ./0n4n/nantxt
echo $\'#!/bin/sh
tmux new-session \\; send-keys \\\'nano ./a/*\\\' C-m \\; split-window -v \\; send-keys \\\'nano ./b/*\\\' C-m \\; split-window -h \\; send-keys \\\'nano ./c/*\\\' C-m \\; split-window -h \\; send-keys \\\'nano ./1/*\\\' C-m \\; split-window -h \\; send-keys \\\'nano ./2/*\\\' C-m \\; split-window -v \\; send-keys \\\'./nantxt\\\' C-m \\; select-layout tiled \\; attach
\' > ./0n4n/6n1r
chmod 755 ./0n4n/6n1r
#if not symlinking back, replace the dot with the rest of your real path to make launcher codes or terminal calls for them. for a desktop file you could do the same or just open the folder in your file manager and click on individual or group launch for the subfolders.
' > /data/data/com.termux/files/usr/bin/applets/notesn
chmod 755 /data/data/com.termux/files/usr/bin/applets/notesn

echo $'
#!/bin/sh
#nano batches (0n4n) still set for rxvt
#micro batches (0m4u) now set for sakura
#tmux 6grid of text editor banks as part of improved
#notesn, notesm, and notes scripts
#last box is the other five catted in a number of ways
#use ctrl b +z to toggle zooming of one specific panel
#use ctrl b +x to close a panel
#remove "send-keys \\\'micro/nano ./a-c,1-2/*\\\' C-m \\; split-window -v \\;" type chunks to
#make smaller grid presets
#notesm:
#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/* >> ./4naa.txt
cat ./b/* >> ./4nba.txt
cat ./1/* >> ./4n1a.txt
cat ./2/* >> ./4n2a.txt
cat ./c/* >> ./4nca.txt
cat 4n* >> ./4cata.txt
\' >> ./0m4u/allcatted
chmod 755 ./0m4u/allcatted
echo $\'#!/bin/sh
micro ./1/*
\' > ./0m4u/mic1
chmod 755 ./0m4u/mic1
echo $\'#!/bin/sh
micro ./2/*
\' > ./0m4u/mic2
chmod 755 ./0m4u/mic2
echo $\'#!/bin/sh
micro ./a/*
\' > ./0m4u/mica
chmod 755 ./0m4u/mica
echo $\'#!/bin/sh
micro ./b/*
\' > ./0m4u/micb
chmod 755 ./0m4u/micb
echo $\'#!/bin/sh
micro ./c/*
\' > ./0m4u/micc
chmod 755 ./0m4u/micc
#addon1:
echo $\'#!/bin/sh
#cd ./0n4n/
./allcat
./allcatted
./cat4n
./cat4n0
micro ./*.txt
\' > ./0m4u/mitxt
chmod 755 ./0m4u/mitxt
#addon2:
echo $\'#!/bin/sh
tmux new-session \\; send-keys \\\'micro ./a/*\\\' C-m \\; split-window -v \\; send-keys \\\'micro ./b/*\\\' C-m \\; split-window -h \\; send-keys \\\'micro ./c/*\\\' C-m \\; split-window -h \\; send-keys \\\'micro ./1/*\\\' C-m \\; split-window -h \\; send-keys \\\'micro ./2/*\\\' C-m \\; split-window -v \\; send-keys \\\'./mitxt\\\' C-m \\; select-layout tiled \\; attach
\' > ./0m4u/6m1s
chmod 755 ./0m4u/6m1s
#if not symlinking back, replace the dot with the rest of your real path to make launcher codes or terminal calls for them. for a desktop file you could do the same or just open the folder in your file manager and click on individual or group launch for the subfolders.
' > /data/data/com.termux/files/usr/bin/applets/notesm
chmod 755 /data/data/com.termux/files/usr/bin/applets/notesm
echo $'
#!/bin/sh
#swap /usr/bin/lxterminal for terminal of your choice
#(search and replace) micro/mcedit -x for text editor of your choice
mkdir -p ./0mce/a/
mkdir -p ./0mce/b/
mkdir -p ./0mce/c/
mkdir -p ./0mce/1/
mkdir -p ./0mce/2/
touch ./0mce/b/00{1..10}
touch ./0mce/a/0{1..10}
touch ./0mce/1/{a..z}
touch ./0mce/2/a{a..z}
touch ./0mce/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
\' > ./0mce/cat4n
chmod 755 ./0mce/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
\' > ./0mce/cat4n0
chmod 755 ./0mce/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
\' > ./0mce/allcat
chmod 755 ./0mce/allcat
echo $\'#!/bin/sh
cat ./a/* >> ./4naa.txt
cat ./b/* >> ./4nba.txt
cat ./1/* >> ./4n1a.txt
cat ./2/* >> ./4n2a.txt
cat ./c/* >> ./4nca.txt
cat 4n* >> ./4cata.txt
\' >> ./0mce/allcatted
chmod 755 ./0mce/allcatted
echo $\'#!/bin/sh
mcedit -x ./1/*
\' > ./0mce/mcx1
chmod 755 ./0mce/mcx1
echo $\'#!/bin/sh
mcedit -x ./2/*
\' > ./0mce/mcx2
chmod 755 ./0mce/mcx2
echo $\'#!/bin/sh
mcedit -x ./a/*
\' > ./0mce/mcxa
chmod 755 ./0mce/mcxa
echo $\'#!/bin/sh
mcedit -x ./b/*
\' > ./0mce/mcxb
chmod 755 ./0mce/mcxb
echo $\'#!/bin/sh
mcedit -x ./c/*
\' > ./0mce/mcxc
chmod 755 ./0mce/mcxc
echo $\'#!/bin/sh
#cd ./0mce/
./allcat
./allcatted
./cat4n
./cat4n0
mcedit -x ./*.txt
\' > ./0mce/mcxtxt
chmod 755 ./0mce/mcxtxt
echo $\'#!/bin/sh
tmux new-session \\; send-keys \\\'mcedit -x ./a/*\\\' C-m \\; split-window -v \\; send-keys \\\'mcedit -x ./b/*\\\' C-m \\; split-window -h \\; send-keys \\\'mcedit -x ./c/*\\\' C-m \\; split-window -h \\; send-keys \\\'mcedit -x ./1/*\\\' C-m \\; split-window -h \\; send-keys \\\'mcedit -x ./2/*\\\' C-m \\; split-window -v \\; send-keys \\\'./mcxtxt\\\' C-m \\; select-layout tiled \\; attach
\' > ./0mce/6mx
chmod 755 ./0mce/6mx
#if not symlinking back, replace the dot with the rest of your real path to make launcher codes or terminal calls for them. for a desktop file you could do the same or just open the folder in your file manager and click on individual or group launch for the subfolders.
' > /data/data/com.termux/files/usr/bin/applets/notesmcx
chmod 755 /data/data/com.termux/files/usr/bin/applets/notesmcx
#make a copy of the three defaults (0n4n, 0m4u, 0mce) in the CUS folder:
cd /storage/emulated/0/CUS/
note

#deps:
#pkg install tmux
#pkg install nano
#pkg install micro
#pkg install mc
#(xsel and/or xclip and some repos that need to be added (termux opens with suggestions) could also be helpful)
#i'm leaving this part commented out as you may already have some/all of it.

#the android/termux version of pkg is backwards compared to sc0ttman's; if you haven't got micro/nano/tmux installed but have installed his gui/cli package manager (http://murga-linux.com/puppy/viewtopic. ... 531#985531) the above (uncommented and with the install swapped to add would add those packages in puppy (but for this to work in puppy, you'd still need to swap the path1 path2 matches (see the cd bash shortcuts) for that stuff to work (/root/my-applications/bin is where i usually send the non-nwp nwp stuff)).

#in nano, use alt plus < > to cycle through the batch of documents in a given pane; in micro use , .; in mcedit use F9 w l (unless you know of a faster way to get the document list). alt+g is help in both nano and micro. alt+m toggles mouse support in nano.


#swap out the names/locations of the default folders and text editors (nano, micro, and/or mcedit -x) before running and those changes will be present as the new defaults
#enjoy.
#
#---puppus dogfellow, 8/12/19
#

__________

(440 pm edt)

____

some of android's configuration files end up in /../home/.config and others in ../etc. mcedit's configuration folder is in .config/../mcedit, but its .config (which would need to be created) is not one of the configuration files that pops open with the bashn or bashm command (nano or micro opening their configuration files and bash.bashrc). as the comments say,

enjoy.

____

almost forgot: the tnux.0 pet is just a fix of the earlier tnux.pet: i accidently had some files with duplicate names and i left out the nwp shortcuts for the gui text editors opening these files.

tnux.1 will include (a possibly compressed to keep deactivated..paths are different so it shouldn't cause a problem regardless...) version of this script--swap the paths and it's puppy friendly without forcing specific terminals on your batch and editor choices.

..

before i realized you had to use bash /path/to/script to call non-PATH scripts in android, i was saving the scripts to a folder, catting them (cat ./script), and then using highlight middle click paste to run the contents. sometimes the non terminal android editors are better at making a highlight to select and middle click to dump in a terminal script, but as long as you remember to toggle the mouse on and off in nano (alt m) and install xsel or xclip, moving the text around isn't too awkward (compared to what it was like the last time i tried to write using terminal text editors). last box in the six grid updates each time it's run, so holding down ctrl x in nano or ctrl q in micro to clear it and then arrowing back up to rerun the box gets the updated versions. control s is save in both. tmux has its own clipboard function, but it still seems a bit awkward to me compared to highlighting to select and middle clicking to paste (or relying on the android clipboard. control+b (then) = will get you what you've managed to grab with the tmux clipboard).

..

script for android gets copied to /nwp/wp. intstall termux (or equivalent), uncomment the dependencies bit (or run pkg install nano micro tmux in addition to the above script). swap out (search androido for for cardb) the storage card ID number, your actual dropbox location, and what you want to call the CUS directory (home2, which you should personalize before running the thing).

if syncing the folders between your pup and an android device, be aware the puppy versions usually call a terminal then tmux and the android versions assume you're calling from a terminal. n for nano, mx for mcedit, mi or mic for micro, and abc12 for the five folders is the basic idea behind the launch codes for these things (see the names of the scripts--that's why they're so short and seemingly cryptic all the time--they're usually made to launch from shift plus spacebar (nwp/pwn launcher). the ny# and my# scripts are calling grids through tmux. the batches and cat scripts can be run without it. you can zoom with the mouse or touch screen, and toggle the view to to one specific pane (you can use six tiny panes even on a phone). both nano and micro (i haven't tested mcedit as much so i'm not sure off hand if this holds true--the zipping through the close by holding the close shortcut doesn't seem to work as well from what i recall..) will warn you if a change has been made (or the document so much as looked at it seems), but it won't offer to reload it for you like geany does (so hold down close, arrow up, and press enter to reload a batch (including the 6th box, which is the others catted/combined) manually).

--pd

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

panels and pins on the jwm menus

#254 Post by Puppus Dogfellow »

Code: Select all

echo $'<JWM>
<Menu label="Panels and Pins" icon="" height="16">
<Program label="panel frame set1" icon="">/nwp/p1</Program>
<Program label="panel frame set2" icon="">/nwp/p2</Program>
<Program label="panel frame set3" icon="">/nwp/p3</Program>
<Program label="panel frame set4" icon="">/nwp/p4</Program>
<Program label="panel frame set5" icon="">/nwp/p5</Program>
<Program label="panel frame set6" icon="">/nwp/p6</Program>
<Program label="panel frame set7" icon="">/nwp/p7</Program>
<Program label="panel frame set8" icon="">/nwp/p8</Program>
<Program label="panel frame set9" icon="">/nwp/p9</Program>
<Menu label="Pins" icon="" height="16">
<Program label="pinboard 1" icon="">/nwp/pp1</Program>
<Program label="pinboard 2" icon="">/nwp/pp2</Program>
<Program label="pinboard 3" icon="">/nwp/pp3</Program>
<Program label="pinboard 4" icon="">/nwp/pp4</Program>
<Program label="pinboard 5" icon="">/nwp/pp5</Program>
<Program label="pinboard 6" icon="">/nwp/pp6</Program>
<Program label="make  6 puppy pins for pp# series" icon="">/nwp/mk6p</Program>
</Menu>
</Menu>

<!--  you could use any name for the icon then make the scripts to match after the fact-->
</JWM>
' > /root/.jwm/pansnpins
sed -i 's/<Menu label="Shutdown/<Include>\/root\/.jwm\/pansnpins<\/Include>\n<Menu label="Shutdown/' /etc/xdg/templates/_root_.jwmrc
jwm -reload

#to add the <Include>/root/.jwm/pansnpins</Include> to one of the other menus, uncomment the line below pick a spot in one of the other menus:
#geany -i /nwp/root3/9/root0menu /nwp/root3/9/root1menu /nwp/root3/9/root2menu /nwp/root3/9/root4menu /nwp/root3/9/root5menu /nwp/root3/9/root6menu /nwp/root3/9/root7menu /nwp/root3/9/root8menu /nwp/root3/9/root9menu
#the -i opens it in a new window (search and replace by session to work on these files in a new window without affecting your other stuff.)
#geany -i /etc/xdg/templates/_root_.jwmrc #to change the location of the line added by the above script 



#menu is already under rox in the n aemenu (n in the launcher >rox> panels and pins)
#for icons see http://www.murga-linux.com/puppy/viewtopic.php?p=1031459#1031459
#for more on panels, see http://www.murga-linux.com/puppy/viewtopic.php?p=1031770#1031770
#non anuupuus/approximatic (these spins) setups can use either of the above posts for the panel part of the scripts.
#and grab the pinboard codes from: http://www.murga-linux.com/puppy/viewtopic.php?p=1034601#1034601

dump the above into a terminal to get the aemenu rox submenu for the panels and pins (n in launcher) on the right click menu. see
http://www.murga-linux.com/puppy/viewto ... 01#1034601
http://www.murga-linux.com/puppy/viewto ... 70#1031770
http://www.murga-linux.com/puppy/viewto ... 459#103145

for more on icons, panels, and the pinboard swaps. you don't have to follow any of those directions except to get icons since the swapping scripts exist in /nwp, but the general purpose versions (linked and in the comments) use the terminal instead of the launcher so work out of /root/my-applications/bin. the icon making scripts are built in--just run the code in the link and pick your icons (you could also reuse the pinboard icons in /usr/share/applications/icons-alt). if you put them in an icon path (like /root/puppy-reference/mini-icons) you only need the name in the icon="" field. if in some random spot on your system, use the full path between the quotation marks.

...

the four hundred or so icons (0-9 in the default mcc colors) are only about 11k gz compressed, so i'll add them at the end of this post.


default location for menu and submenu is above the shutdown menu (right click/alt+3)
Attachments
pans.tar.gz
sets of icons for the panels and pins (0-9) as &quot; # &quot;
(10.7 KiB) Downloaded 373 times

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

new libre office packages and a large fonts pet

#255 Post by Puppus Dogfellow »

LibreOffice 6.2.7-32.pet
LibreOffice 6.2.7-32.sfs
LibreOffice 6.3.1-64.sfs
LibreOffice 6.3.1-64.pet

mswebfonts pet (don't know the original author), vicmz's extra fonts pet, John Biles' Superfonts package, and icake's CJk pet combined:

manyfonts.pet
_____

hashes::

LibreOffice 6.2.7-32.sfs:
md5: 6ddb8aa9e3a92e2796ac54bc6aa49560
sha1:a2a48c09ae7f63fc88be2fe0321c9f373243e105
sha256:10054ae9dd76ef48aca11318e90d49597cec8631146e95511edfd9705f780541
____
LibreOffice 6.2.7-32.pet:

md5: c2e2462cd855be39c00f87758fb9ef9b
sha1: 96269e10102ad11f27e0d8c9f630f0e62289a871
sha256: 02374bc96b2e19a526947c384d150fb97a4c01e92605543c709f24d4ca08dd2c
_____

LibreOffice 6.3.1-64.pet
md5: 0387820693c25e7d0d363783d12a6f7e
sha1: cfd36fc91dcf3cf06395318e0081368b8a211673
sha256: a91de8470045bba096a9b5b4b4a1172e2125153ee9bc92645c4f4f5cbc18bb62
crc32: 6d420ea5
_____

LibreOffice 6.3.1-64.sfs
md5: 1d7c859fd1fc9a8961132ea236a496c7
sha1: 0abfeb820270796fb08c692ee84a54623479bb0d
sha256: 64c47e21d27a508bc126c580e845064bf7ab77e94279d50f0907dab57e5d709a
crc32: 4d134fad
_____

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

microdoc.1.2.pet: some more text editor utilities/addons

#256 Post by Puppus Dogfellow »

microdoc.1.2.pet

from pupli repo/word processing and related/nwp+vtg/recs and notes/microdoc/notes 4:
9/19

i've been playing around with nano, micro, and mcedit and have developed a distinct preference for micro. i'm more used to its built in shortcuts (typical word processor copy paste select all, etc) and with a few tweaks it's getting to be almost as useful as geany. with the github colorscheme (ctrl+e > set colorscheme github) on an android box running termux/tmux, you get that tv is off aesthetic while still having a powerful text editor that does in fact offer to reload when you've changed your synced files elsewhere on the system (apologies for an earlier post down at murga-linux that claimed otherwise--i must've been thinking of nano). the pinstall script for microdocs1.1 can explain a little further why this pet exists

#!/bin/sh
mkdir -p /root/.config/rox.sourceforge.net/Templates/microdocs
cd /root/.config/rox.sourceforge.net/Templates/microdocs
microdoc
cd /root/.config/rox.sourceforge.net/Templates/microdocs/10110/
#(10 of 1-10)
mbatch10
cd /root/.config/rox.sourceforge.net/Templates/microdocs/az10/
mbatchaz
cd /root/.config/rox.sourceforge.net/Templates/microdocs/azaz/
mbatchaz
cd /root/.config/rox.sourceforge.net/Templates/microdocs/10az/
mbatch10
#microdoc00 produces considerably more files and is better done through the terminal than right click menu (feels instantaneous compared to watching rox display the names as they move). both versions cat (combine) all to micro with the callm callm2 scripts. pet fixes the ctrl+b conflict with tmux (shell mode for micro is tmux's command prefix). code for batch launching a directory's so short the launchers don't really save too much time relative to the space they take up (one per directory), so none for the 100s and an option for 10s (26x26 gets made by both microdoc and microdoc00)
#update to 1.1. adds microdoc0, which calls both to a directory (backtick, microdoc0) and tmuxm, which is set to enable mouse control on tmux vintage tahr and older. (comment out what's there and uncomment (or manage to remember) tmux set -g mouse for xenial and newer. not sure about which version to use for what slacko or unicorn)
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/* ./100/{1..100}/* | micro
#cat ./N/* | micro
#micro ./N/*
#added many of the non tc (true color) colorschemes from micros website
#new keycuts are f6 close all, f7 shell mode, f8 save all, f9 save as, alt t tab switch (enter name or number in status bar)
#microdoc and microdoc00 can be called to the same directory without overwriting one another. default for right click is microdocs (ten versus 100 version) with the mini batch scripts included in the subdirectories.
#p. dogfellow 9/29/19

#see micro's website for more https://micro-editor.github.io/

though it would take some rationale of the logic behind androido and tnux.1_ to see what's being improved and why. basically, this pet makes it easy to call, navigate, and collect the text from batches of files using micro and the cat utility. here's the tree -sa output of the pet:


root# tree -sa
.
├── [ 140] pet.specs
├── [ 1971] pinstall.sh
└── [ 80] root
├── [ 60] .config
│ └── [ 80] micro
│ ├── [ 112] bindings.json
│ └── [ 440] colorschemes
│ ├── [ 802] bubblegum.micro
│ ├── [ 1374] cmc16.micro
│ ├── [ 1316] cmcpaper.micro
│ ├── [ 770] codeblocks.micro
│ ├── [ 824] codeblocks-paper.micro
│ ├── [ 1073] darcula.micro
│ ├── [ 1057] default.micro
│ ├── [ 678] geany.micro
│ ├── [ 810] github.micro
│ ├── [ 591] gruvbox.micro
│ ├── [ 1057] monokai.micro
│ ├── [ 1038] nano.micro
│ ├── [ 1031] railscast.micro
│ ├── [ 817] simple2.micro
│ ├── [ 811] simple.micro
│ ├── [ 807] solarized2.micro
│ ├── [ 814] solarized3.micro
│ ├── [ 941] solarized.micro
│ ├── [ 1067] twilight.micro
│ └── [ 722] zenburn.micro
└── [ 60] my-applications
└── [ 180] bin
├── [ 113] getmicro
├── [ 408] mbatch10
├── [ 1012] mbatchaz
├── [ 1402] microdoc
├── [ 29] microdoc0
├── [ 1394] microdoc00
└── [ 215] tmuxm

6 directories, 30 files
_____

here's microdoc:

(sorry, but i don't have the energy to mimic geany's syntax highlighting like i did with the pinstall script (plus it's also got orange and really green is for numbers there and code on forums (generally), and i'd have to change most of the non commented text back to black...):

#!/bin/sh
mkdir -p ./10110/{1..10}/
touch ./10110/{1..10}/{1..10}
mkdir -p ./10az/{1..10}/
touch ./10az/{1..10}/{a..z}
mkdir -p ./az10/{a..z}/
touch ./az10/{a..z}/{1..10}
mkdir -p ./azaz/{a..z}/
touch ./azaz/{a..z}/{a..z}
#./10110/m110 ##10X10
#./az10/m110 ##26X10
#./azaz/maz ##26X26
#./10az/maz ##10X26
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
micro ./10.txt
' > ./10110/m110
chmod 755 ./10110/m110
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az10/maz
chmod 755 ./az10/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./azaz/maz
chmod 755 ./azaz/maz
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
micro ./10.txt
' > ./10az/m110
chmod 755 ./10az/m110
#cat only version plus open the 4 catted directories as 4 files in micro:
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
' > ./10110/m110c
chmod 755 ./10110/m110c
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az10/maz
chmod 755 ./az10/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
' > ./azaz/mazc
chmod 755 ./azaz/mazc
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az10/mazc
chmod 755 ./az10/mazc
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
' > ./10az/m110c
chmod 755 ./10az/m110c
echo $'#!/bin/sh
#callm
#cat the four directories and open them up with micro
cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/* ./10110/{1..10}/* | micro
' > ./callm
chmod 755 ./callm

here's microdoc00, which makes and can call/cat even more files (as with the above set, you add, rename, remove contents to/of/from the subdirectories without affecting the efficacy of the tips or scripts):

#!/bin/sh
mkdir -p ./100/{1..100}/
touch ./100/{1..100}/{1..100}
mkdir -p ./100az/{1..100}/
touch ./100az/{1..100}/{a..z}
mkdir -p ./az100/{a..z}/
touch ./az100/{a..z}/{1..100}
mkdir -p ./azaz2/{a..z}/
touch ./azaz2/{a..z}/{a..z}
#./100/m110 ##100X100
#./az100/m110 ##26X100
#./azaz2/maz ##26X26
#./100az/maz ##100X26
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
micro ./100.txt
' > ./100/m110
chmod 755 ./100/m110
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az100/maz
chmod 755 ./az100/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./azaz2/maz
chmod 755 ./azaz2/maz
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
micro ./100.txt
' > ./100az/m110
chmod 755 ./100az/m110
#cat only version
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
' > ./100/m110c
chmod 755 ./100/m110c
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az100/maz
chmod 755 ./az100/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
' > ./azaz2/mazc
chmod 755 ./azaz2/mazc
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az100/mazc
chmod 755 ./az100/mazc
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
' > ./100az/m110c
chmod 755 ./100az/m110c
echo $'#!/bin/sh
#m100azcall
#callm2
#cat the four directories and open them up with micro
cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/* ./100/{1..100}/* | micro

' > ./callm2
chmod 755 ./callm2

____

that's basically it. the getmicro script is on the path like in the tnux scripts: i consider this more or less an improvement of those pets (minus the provisions for the other terminal text editors).

...here's the config file for the keys that gets added to /root/.config/micro:

{
"F6": "QuitAll",
"F7": "ShellMode",
"F8": "SaveAll",
"F9": "SaveAs",
"Alt-t": "command-edit:tabswitch "
}

F6 comes in handy because the batches take a while to close even at .12 seconds per (hold down ctrl plus q otherwise). alt+t comes in handy for a similar reason--entering 85 or 13 (m) or the name is faster than holding down alt+ , or .

this version makes almost no txt files for the catting by default. the scripts in the subdirectories do, but when you call callm or callm2, the buffer is opened in micro but not officially saved anywhere unless you decide to save what you see (which is a sense is a potential back up of either main batch of batches (4 directories are made by each microdoc or microdoc00, 8 are made by microdoc0, which calls both to your current directory (if you call it from the terminal) or your chosen directory (if used in a script of with cd /chosen/path; microdoc0)).

--p.dogfellow, 9/29/19

***
(fwiw, i thought i remembered reading typical delay between repeats is about .12 seconds on most keyboards but now that i think about it some more, i think it may be xdotool's default repeat rate).



____

here's the mouse fix for the newer tmuxes (if you need it, dump it in a terminal and it'll overwrite the previous one for the older tmuxes):

echo $'#!/bin/sh
#older than xenial:
#tmux set -g mouse-select-pane on
#tmux set -g mouse-resize-pane on
#xenial and newer: set -g mouse
tmux set -g mouse
' > /root/my-applications/bin/tmuxm
chmod 755 /root/my-applications/bin/tmuxm


****
dump this into a terminal to update the microdoc0 script:

#!/bin/sh
echo $'#!/bin/sh
microdoc
microdoc00
echo $\'#!/bin/sh
#callm0
#all 8, numbers first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/* ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/* ./100/{1..100}/* | micro
cat ./10az/{1..10}/* ./100/{1..100}/* ./100az/{1..100}/* ./10110/{1..10}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* | micro
\' > ./callm0
chmod 755 ./callm0

' > /root/my-applications/bin/microdoc0
chmod 755 /root/my-applications/bin/microdoc0
#callm and callm2 get made with the first two commands and cat the a* directories first. if you call either of these scripts while already in micro, it opens another "layer" you can add other tabs/files to or must close to get back to your original set or file. if you call both from shell mode, you have two other layers (which may not be what you want)
(^not as tedious to mimic as the earlier script, which bounced back and forth from color to color a lot more. micro's version of geany doesn't look like geany on my terminals, and many are arguably prettier (see http://zbyedidia.webfactional.com/micro ... shots.html for some), but

https://youtu.be/C2ApUj96wOg?t=930

has me sitting at the machine when i intended to get up, so...i went back on my word and...continued to put effort into the wrong aspects of the is file.

enjoy!

:)

(syntax highlighting aside, the github theme on a black t.v. is mostly black (no white bars for contrast or messages) with gray, grayed or white text (tab names and micro's ui text is slightly brighter than your text, line numbers are gray))
[...]
(looking at the color config file, my old eyes appear to be seeing light blue as gray..

***

9/30/19:

excerpt of changes/tree -sa for 1.2:

└── [ 60] my-applications
└── [ 260] bin
├── [ 362] echocat
├── [ 310] echomicro
├── [ 113] getmicro
├── [ 408] mbatch10
├── [ 1012] mbatchaz
├── [ 1678] microcatters
├── [ 1402] microdoc
├── [ 442] microdoc0
├── [ 1394] microdoc00
├── [ 444] mkcallm0
└── [ 215] tmuxm


microdoc.1.2/root/my-applications/bin/mkcallm0
microdoc.1.2/root/my-applications/bin/microdoc0
microdoc.1.2/root/my-applications/bin/microcatters
microdoc.1.2/root/my-applications/bin/echomicro
microdoc.1.2/root/my-applications/bin/echocat

are new for 1.2 or changed. microcatters makes cuscat, medcat, and largecat.
largecat:
#!/bin/sh
#largecat
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/* | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/* | micro
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/* | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/* | micro
#cat ./{a..z}/* ./{0..110}/* | micro
cat ./{0..110}/* ./{a..z}/* | micro





medcat:

#!/bin/sh
#medcat
#callm0
#all 8, numbers first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/* ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/* ./100/{1..100}/* | micro
#cat ./10az/{1..10}/* ./100/{1..100}/* ./100az/{1..100}/* ./10110/{1..10}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* | micro
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/* | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/* | micro
cat ./{0..10}/* ./{a..z}/* | micro



cuscat:

#!/bin/sh
#cuscat
#callm0
#all 8, numbers first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/* ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/* ./100/{1..100}/* | micro
#cat ./10az/{1..10}/* ./100/{1..100}/* ./100az/{1..100}/* ./10110/{1..10}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* | micro
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/* | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/* | micro
cat ./{0..4}/* ./{a..e}/* | micro



microdocs0 now adds the callm0 micro cat code for all the directories (call it from the terminal (back tick) and it will make both the 26 and 10s set and the 26 and 100s set.
echo cat is helper code for catting/combining the directory sets and opening the results in micro
microcat is helper code for opening the subdirectories as batches in micro
mkcallm0 makes the callm0 script in the directory it's called from.

you can see a lot of commented out code in the three -cat files--use that to include or exclude directories or further customize your cat calls. one of the ways i discovered i had a preference for micro was i found i kept changing the nano and mcedit codes in the 0n4n and 0mce folders to micro. all of them also wound up going to e and 4, so that's what the custom version of the cat2micro scripts shows. if you go above and possibly below (00.. or 0001 to where you start and a few beyond the last directory you've got (set to 105 in your directory of 100 az's for example), you can symlink in directories from other sources and they'll get picked up so long as you rename the symlink to follow the convention you're calling (though you don't have to worry about it if you call all the numbers and letters together). if you want to give yourself a buffer in that regard (use the 100s script in a directory with subdirectories of 10 to 26), the error messages from cat saying the directories don't (maybe yet) exist fly by instantly--i'm only aware they happened after i close micro and see what messages the terminal gave. if you want to be able to call the micro scripts without first opening the terminal, either right click run in terminal or make a version that prepends terminal (rxvt, urxvt, lxterminal, roxterm, and sakura all are standard or attainable--use sc0ttman's pkg utility if the package manager in your pup fails) -e to the code. that is, micro blah becomes sakura -e micro blah (which would open a file called blah in micro in the sakura terminal). use that on scripts or desktop files.

___

in a somewhat related matter, i'm porting all these scripts over to my android by making three folders (in addition to a micro folder, since i know the locations of the config files for it on both the pups and android boxes. updating that's even simpler than what i'm about to describe (copy contents of folder by clicking a script set up to send the stuff over).

for general use, i have a script folder and two file folders. script folder takes into account setting permissions in puppy might not mean anything to android, so in a synced folder, i copy the scripts over the paths after chmod 755 ./* -ing the thing. androido (see notes 3) has path2 listed, which is on the android $PATH. copied that over and added some copy to ./ (copy to here) scripts to the android system--installing updates and overwriting older files and adding scripts is pretty painless now. added more scripts to open the bashrc file since some of the cd /path scripts only work on that file and not as scripts (not sure why but i'm going to give up trying to get it to use those scripts. stuff >> bash.bashrc is the way to go with that sort of thing. adding to the path makes you prefix with bash, even if your shebang is #!/bin/bash.

guess i should up this thing before i end up updating it again.

--puppus dogfellow, 9/30/19
some of scripts i forgot to show:

echocat:

Code: Select all

#!/bin/sh
#copy paste batch cat code. add subdirectory of your choice between the double slashes (//) 
echo "cat .//* | micro"
echo "cat ./10az//* | micro"
echo "cat ./100//* | micro"
echo "cat ./100az//* | micro"
echo "cat ./10110//* | micro"
echo "cat ./az10//* | micro"
echo "cat ./az100//* | micro"
echo "cat ./azaz//* | micro"
echo "cat ./azaz2//* | micro"
echomicro:

Code: Select all

#!/bin/sh
#copy paste batch launch help. add subdirectory of your choice between the double slashes (//)
echo "micro .//*"
echo "micro ./10az//*"
echo "micro ./100//*"
echo "micro ./100az//*"
echo "micro ./10110//*"
echo "micro ./az10//*"
echo "micro ./az100//*"
echo "micro ./azaz//*"
echo "micro ./azaz2//*"
unlike the scripts made by microcatters, callm, callm2, and callm0 cat the subdirectories inside the made by calling microdoc(0/00).the microcatters (cuscat, medcat, and largecat) are meant to work from inside directories that follow that sort of (customizable/flexible) naming convention.

documentation suggests expanding the {1..#}bits to allow for symlinking in, but you could always delete a batch and symlink in its virtual replacement (you could work with its files without endangering their content).

enjoy.

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

microdocs1.3.pet: better/easier inclusion/exclusion of files

#257 Post by Puppus Dogfellow »

or similar clutter).

from microdoc.1.3: zooming out and backward compatibility
Subject description: 2 new calendar folders, more inclusion and exclusion presets and cat/batch helpers
:
Puppus Dogfellow wrote:microdoc.1.3.pet
microdoc.tar.xz

from pupli repo/word processing and related/nwp+vtg/recs and notes/microdoc/notes 4:
[...]

10/4/19:

here's the pinstall script for 1.3:

Code: Select all

#!/bin/sh
mkdir -p /root/.config/rox.sourceforge.net/Templates/microdoc
cd /root/.config/rox.sourceforge.net/Templates/microdoc
microdocs1
cd /root/.config/rox.sourceforge.net/Templates/microdoc/microdocs/10110/  
#(10 of 1-10)
mbatch10
cd /root/.config/rox.sourceforge.net/Templates/microdoc/microdocs/az10/
mbatchaz
cd /root/.config/rox.sourceforge.net/Templates/microdoc/microdocs/azaz/
mbatchaz
cd /root/.config/rox.sourceforge.net/Templates/microdoc/microdocs/10az/
mbatch10
#microdoc00 produces considerably more files and better done through the terminal than right click menu (feels instantaneous compared to watching rox display the names as they move). both versions cat all to micro with the callm callm2 scripts. pet fixes the ctrl+b conflict with tmux (shell mode for micro is tmux's command prefix). code for batch launching a directory's so short the launchers don't really save too much time relative to the space they take up (one per directory), so none for the 100s and an option for 10s (26x26 gets made by both microdoc and microdoc00)
#update to 1.1. adds microdoc0, which calls both to a directory (backtick, microdoc0) and tmuxm, which is set to enable mouse control on tmux vintage tahr and older. (comment out what's there and uncomment (or manage to remember) tmux set -g mouse for xenial and newer. not sure about which version to use for what slacko or unicorn)
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro
#cat ./N/* | micro
#micro ./N/*
#added many of the non tc (true color) colorschemes from micros website
#new keycuts are f6 close all, f7 shell mode, f8 save all, f9 save as, alt t tab switch (enter name or number in status bar)
#microdoc and microdoc00 can be called to the same directory without overwriting one another. default for right click is microdocs (ten versus 100 version) with the mini batch scripts included in the subdirectories.
#p. dogfellow 9/29/19

#see micro's website for more https://micro-editor.github.io/
# see https://jonasjacek.github.io/colors/ for colors that seem to work in termux/tmux on an android box running 6 or maybe 7.
#10/3: new for 1.3, microdocs1 makes a better version...
#you can copy or symlink in the batches made from the older version (0mce, 0n4n, 0m4u) and mdcat will work on them from outside the main directories, catset will work from within. exclude files from catting or batch launching by taking them out of the terminal directory (i.e. with D meaning directory and f standing for file, of /D/D/D/f(s) or /D/D/f(s) only the f and any other files in that last directory will get picked up. files outside that line of nested directories (that is, files alongside the directories at any step of the way) get ignored by the batch launching and catting scripts (some are general (*--launch all) and some have templates commented out so you can fine tune your choices.
#i was trying to color code directory batches since i have my config file set to ignore base names and there are recurring patterns...
# use rm -f /root/.config/micro/colorschemes/tv*
# and rm -f /root/.config/micro/colorschemes/9* #to get rid of most of them

cd /root/my-documents/
microdocs1
cd /root/my-documents/microdocs/10110/  
#(10 of 1-10)
mbatch10
cd /root/my-documents/microdocs/az10/
mbatchaz
cd /root/my-documents/microdocs/azaz/
mbatchaz
cd /root/my-documents/microdocs/10az/
mbatch10
# the catmd script outside the microdocs directory collects and displays all the contents minus what's described above (by default only launching/helper scripts are excluded. mdcat does the same thing from inside the main microdocs  directory)
#cp -f /root/.config/micro/bindings.json-bk
cp -f /root/.config/micro/bindings.json /root/.config/micro/bindings.json-bk  
cp -f /root/.config/micro/settings.json /root/.config/micro/settings.json-bk
#cp -f /root/.config/micro/settings.json1 /root/.config/micro/settings.json
echo $'#!/bin/sh
micro  /root/.config/micro/settings.json1 /root/.config/micro/settings.json
' > /root/my-applications/bin/microconfig
chmod 755 /root/my-applications/bin/microconfig
#json1 (which doesn;t overwrite the default unless you uncomment the line above) has soft wrap (word wrap) and a colorscheme that's a dimmer github.micro enabled. unlimited undo insn't enabled but i've been considering it...

#echo $'#!/bin/sh
 #cat ./*/* | micro
#' > ./catset
#chmod 755 ./catset

#echo $'#!/bin/sh
#micro ./*/*
#' > ./mset
#chmod 755 ./mset
#two new additions that are like smaller versions of mdcat and catmd--use inside a directory whose subdirectories are filled with files and not more directories (though you could use those as an exclude from list--you'll just get error messages after the fact stating cat/micro can't open a directory like you're asking it to)

#--p dogfellow, 10/4/19
_
__
new pet is 9k. the 50k microdoc.tar.xz file is a compressed version of the new microdocs folder (inside a microdoc folder and along side an mdcat script) that gets made in Templates and my-docs (the one in my-docs isn't nested in microdoc--mdcat file's along side it).

___

here's microdocs1 (makes the microdoc folder):

Code: Select all

#!/bin/sh
echo $'#!/bin/sh
 cat ./microdocs/*/*/* | micro
' > ./catmd
chmod 755 ./catmd
mkdir ./microdocs
cd ./microdocs
echo $'#!/bin/sh
 cat ./*/*/* | micro
' > ./mdcat
chmod 755 ./mdcat
mkdir -p ./10110/{1..10}/
touch ./10110/{1..10}/{1..10}
mkdir -p ./10az/{1..10}/
touch ./10az/{1..10}/{a..z}
mkdir -p ./az10/{a..z}/
touch ./az10/{a..z}/{1..10}
mkdir -p ./azaz/{a..z}/
touch ./azaz/{a..z}/{a..z}
mkdir -p ./cal/{1..12}/
touch ./cal/{1..12}/{1..31}
mkdir -p ./cal2/{1..52}/
touch ./cal2/{1..52}/{1..7}
echo $'#!/bin/sh
cat ./{1..52}/* >> ./cal2.txt
' > ./cal2/catcal2
chmod 755 ./cal2/catcal2
echo $'#!/bin/sh
cat ./{1..52}/* >> ./cal2.txt
micro ./cal2.txt
' > ./cal2/mcatcal2
chmod 755 ./cal2/mcatcal2
#./cal2/{1..52}/{1..7}#52x7
# ./cal/{1..12}/{1..31} ##12x31
echo $'#!/bin/sh
cat ./{1..12}/* >> ./cal.txt
' > ./cal/catcal
chmod 755 ./cal/catcal
echo $'#!/bin/sh
cat ./{1..12}/* >> ./cal.txt
micro ./cal.txt
' > ./cal/mcatcal
chmod 755 ./cal/mcatcal

#./10110/m110  ##10X10
#./az10/m110 ##26X10
#./azaz/maz ##26X26
#./10az/maz ##10X26
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
micro ./10.txt
' > ./10110/m110
chmod 755 ./10110/m110
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az10/maz
chmod 755 ./az10/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./azaz/maz
chmod 755 ./azaz/maz
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
micro ./10.txt
' > ./10az/m110
chmod 755 ./10az/m110
#cat only version plus open the 4 catted directories as 4 files in micro:
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
' > ./10110/m110c
chmod 755 ./10110/m110c
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az10/maz
chmod 755 ./az10/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
' > ./azaz/mazc
chmod 755 ./azaz/mazc
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az10/mazc
chmod 755 ./az10/mazc
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
' > ./10az/m110c
chmod 755 ./10az/m110c
echo $'#!/bin/sh
#callm
#cat the four directories and open them up with micro
cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/*  ./10110/{1..10}/* | micro
' > ./callm
chmod 755 ./callm
###########

mkdir -p ./100/{1..100}/
touch ./100/{1..100}/{1..100}
mkdir -p ./100az/{1..100}/
touch ./100az/{1..100}/{a..z}
mkdir -p ./az100/{a..z}/
touch ./az100/{a..z}/{1..100}
mkdir -p ./azaz2/{a..z}/
touch ./azaz2/{a..z}/{a..z}
#./100/m110  ##100X100
#./az100/m110 ##26X100
#./azaz2/maz ##26X26
#./100az/maz ##100X26
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
micro ./100.txt
' > ./100/m110
chmod 755 ./100/m110
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az100/maz
chmod 755 ./az100/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./azaz2/maz
chmod 755 ./azaz2/maz
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
micro ./100.txt
' > ./100az/m110
chmod 755 ./100az/m110
#cat only version
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
' > ./100/m110c
chmod 755 ./100/m110c
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az100/maz
chmod 755 ./az100/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
' > ./azaz2/mazc
chmod 755 ./azaz2/mazc
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az100/mazc
chmod 755 ./az100/mazc
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
' > ./100az/m110c
chmod 755 ./100az/m110c
echo $'#!/bin/sh
#m100azcall
#callm2
#cat the four directories and open them up with micro
cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro

' > ./callm2
chmod 755 ./callm2

echo $'#!/bin/sh
#callm0
#all 8, numbers first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/*  ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro
cat ./10az/{1..10}/* ./100/{1..100}/*  ./100az/{1..100}/* ./10110/{1..10}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* | micro
' > ./callm0
chmod 755 ./callm0

echo $'#!/bin/sh
#callm0a
#all 8, letters first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/*  ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro
cat ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* ./10az/{1..10}/* ./100/{1..100}/*  ./100az/{1..100}/* ./10110/{1..10}/* | micro
' > ./callm0a
chmod 755 ./callm0a



echo $'#!/bin/sh
#callm0a
#all 8, letters first but sandwiched between cal 1 and cal2
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/*  ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro
cat ./cal/{1..12}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* ./10az/{1..10}/* ./100/{1..100}/*  ./100az/{1..100}/* ./10110/{1..10}/* ./cal2/{1..52}/* | micro
' > ./calll
chmod 755 ./calll


#microcatters
echo $'#!/bin/sh
#medcat
#callm0
#all 8, numbers first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/*  ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro
#cat ./10az/{1..10}/* ./100/{1..100}/*  ./100az/{1..100}/* ./10110/{1..10}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* | micro
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/*  | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/*  | micro
cat ./{0..10}/* ./{a..z}/*  | micro
' > ./medcat
chmod 755 ./medcat
echo $'#!/bin/sh
#cuscat
#callm0
#all 8, numbers first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/*  ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro
#cat ./10az/{1..10}/* ./100/{1..100}/*  ./100az/{1..100}/* ./10110/{1..10}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* | micro
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/*  | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/*  | micro
cat ./{0..4}/* ./{a..e}/*  | micro
' > ./cuscat
chmod 755 ./cuscat

echo $'#!/bin/sh
#largecat
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/*  | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/*  | micro
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/*  | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/*  | micro
#cat ./{a..z}/* ./{0..110}/* | micro
cat ./{0..110}/* ./{a..z}/* | micro
' > ./largecat
chmod 755 ./largecat

echo $'#!/bin/sh
 cat ./*/* | micro
' > ./catset
chmod 755 ./catset

echo $'#!/bin/sh
micro ./*/*
' > ./mset
chmod 755 ./mset

cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./10110/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./10az/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./az10/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./azaz/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./cal/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./cal2/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./100/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./100az/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./az100/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./azaz2/
______

updated echocat and echmicro scripts:
echocat:

Code: Select all

#!/bin/sh
echo "#copy paste batch cat code. add subdirectory of your choice between the double slashes (//)
cat .//* | micro
cat ./10az//* | micro
cat ./100//* | micro
cat ./100az//* | micro
cat ./10110//* | micro
cat ./az10//* | micro
cat ./az100//* | micro
cat ./azaz//* | micro
cat ./azaz2//* | micro
cat ./cal//* | micro
cat ./cal2//* | micro
#whole sets of subdirectories combined and opened in micro:
cat ./*/* | micro
#^from within the subdirectory. those below are for along side it.
cat ./10az/*/* | micro
cat ./100/*/* | micro
cat ./100az/*/* | micro
cat ./10110/*/* | micro
cat ./az10/*/* | micro
cat ./az100/*/* | micro
cat ./azaz/*/* | micro
cat ./azaz2/*/* | micro
cat ./cal/*/* | micro
cat ./cal2/*/* | micro

#output to text file instead of text editor (incoming doesn't overwrite older contents):
cat ./{a..z}/* >> ./az.txt
#output to text file instead of text editor (incoming does overwrite older contents):
cat ./{a..z}/* > ./az.txt"
echomicro:

Code: Select all

#!/bin/sh
 echo "#copy paste batch launch help. add subdirectory of your choice between the double slashes (//)
micro .//*
 micro ./10az//*
 micro ./100//*
 micro ./100az//*
 micro ./10110//*
 micro ./az10//*
 micro ./az100//*
 micro ./azaz//*
 micro ./azaz2//*
 micro ./cal//*
 micro ./cal2//*
#no */* batch launching but as a tip, for better use with the alt+t shortcut, swap the main config's setting for base directory name to not show whole path (this is also a reminder to myself to do it)
#swap out micro for text editor of choice and ignore the config advice
#micro ./*/*/* would open up a ridiculous amount of files...
#files outside of of the final destination are ignored so you can pull things out of what's to be catted by pulling them out of that last nested directory
#"
___

-pd

the mdcat script made alongside the microdocs directory pulls the files' contents in the order the file manager lists the directories that contain them. inside are helper scripts similar to the content of the two echo scripts above. they may further help you customize your calls of batches or their contents. you can add some of the helper scripts (such as the catset and mset) back to the folders made by the tnux pet(0m4u, 0mce, on4n), or copy or symlink those into the microdocs folder to be picked up by mdcat, catmd, etc. batches and catcalls are directed to the files in the last nested directory--anything else (including a final terminal directory) will get ignored (and possibly receive a harmless error message--you can use off-nest locations as safe houses or quarantine sheds or exclude-from-batch-call-unless-specified (perhaps in a cuscat script) lists.

the two new calendar folders (cal1 and cal2) are set for 12 directories of 31 blanks and 52 of 7 respectively.
no desktop files or launcher shortcuts yet--i'm thinking a vtg cheat sheet would be the best way to go about managing these files from puppy (aside from just navigating in rox and right clicking run in terminal for most scripts; this way you can customize the paths on the fly, duplicate versions and have alternates ready at a click or two, or make them into desktop files if you want.)

color schemes included may not work as intended on all terminals (i know some of the purple stuff on my android box is blue on at least one of my puppies). they're short and pretty easy to modify--since many of the subdirectories launch similarly named files (a-z, 1-100), and the easiest way to use the alt t call feature is by name without the path (see the settings.json file to adjust), i thought color coding might be useful.

you can rename according to whatever order you want whatever array arranged and the catmd (from outside the folder) and mdcat (inside the folder) scripts will pick up your content in that order--you could use the microdocs directory/directories (microdoc1 in the terminal makes it in the current directory) as an organizational tool.

the 50k tar.xz is mostly to just give you idea of the size of the mostly blank folder being made--it's better to call it through the terminal than have rox copy it over from right click > new (it seems to be acknowledging a potential spot for stuff rather than moving or creating a file (it's probably just an effect/illusion of the gui's business compared to the behind the scenes feel of terminal)). (but it really feels significantly slower).

anyway, enjoy.

:D

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

microdocs 1.4: much simpler batch launching and catting,

#258 Post by Puppus Dogfellow »

microdoc.1.4.pet


from pupli repo/word processing and related/nwp+vtg/recs and notes/microdoc/notes 4:
_______
10/19

just uploaded microdoc.1.3.1, which i think makes catting/combining and batch launching easier, but i see the last minute addition i made to echo3 (spit out help and paste and paste code) is wrong about d2b (directory to batch). navigate to one of the subfolders containing subfolders holding files and not subfolders (ie inside azaz or 0m4u), click backtick (`--usually the first key on the keyboard apart from the row that begins with Escape), then d2b [Dir] --just the directory name or number--no leading ./ or trailing /* (and no brackets).

anyway, enjoy.

--puppus dogfellow, 10/11/19
___
10/15/19

the above seems to be a sort of checking of pockets for keys and phone when you know you've got both--if it's incorrect in that file, i didn't find where--the end bit has it correctly. what may not be clear from the DDf vs Df stuff (for the scripts that call batches to be combined and displayed in micro, use c2m (Df) or ccm (DDf, or c2j/ccj for the joe version--neither nano nor mcedit can use the code that way)) is DDf isn't just calling the lone terminal batch (the way d2b (folder of files you want to open at once by name but without ./ at the beginning or trailing / or * at the end) ). that's just to help you visualize where you'd use it based on how many levels deep your target directories are; it's really DD*f* as opposed to Df*, which is to say it's opening all the subdirectories in the target directory, reading their files, and combining the output--it's significantly more files and probably impractical to use as a batch launch script (the equivalent of the nonexistent dd2b opening the real 100 directory opens 10000 files at once, and it's only one of the 13 or so directories (now that 1.4 includes the 3 tnux 0- folders) the catmd and mdcat scripts inside/outside the microdocs main folder call).
--pd---
10/18
must've modded and run the wrong pinstall script, or i ran the command, decided to include it, and then forgot, but it would've been more accurate to say the 13 potential default folders (though you can add as many as you like and there will be catting and batching scripts for them, but not all will work if you don't follow the structure or naming convention of the subdirectories, which is a way to create exclude lists if you want to think of it that way).
so it's ten with the option for thirteen default folders. if you want the three 0-series defaults from the tnux pet (a folder with nano presets, one with mcedit presets, one with micro presets, all with templates for tmux grids and their own helper scripts; subdirectories only go from a-c, 1-2; will offer to install nano for you), open a terminal in the microdocs directory (backtick) and run note (type note and then hit return/enter).

...still can't get the arrow keys to work with the select function in micro (so use the mouse or alt a to delete word left, alt s to delete word right, and see below for the alt f/b b/f for select left right or forward back controversy).

(text below shows development from 1.1 to 1.3 with some more notes on 1.4 at the end)

--pd.
_____
update to microdocs includes updated version of mm_view_20190829.gz by MochiMoppel (mmv in the nwp/pwn launcher (space bar plus shift)).

use /usr/bin/sakura -e micro "$@"/* in its command box, swapping the micro and sakura to test out various text editors and terminals for your presets or just have another way to batch launch.

main improvements of the update are being able to open a terminal and db2 [directoryname] or ["directory name"] to open a batch of files, and c2m [directoryname] or ["directory name"] to view the contents of a batch in a unsaved buffer in micro.

c2j swaps joe for micro in the catting script, echocat, echomicro, and echo3 print out help in the terminal they're called from (paste and place and tips), dbn opens batches in nano, ...

enjoy
:D

--pd

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

the help files for the previous pet

#259 Post by Puppus Dogfellow »

c2j swaps joe for micro in the catting script, echocat, echomicro, and echo3 print out help in the terminal they're called from (paste and place and tips), dbn opens batches in nano, ...

enjoy
Very Happy

--pd
run in terminal on directory as

Code: Select all

 [dir]
one deep means directories inside those directories won't have their contents read--only the files along side them have their contents combined in. the d2b series of batch scripts work the same way (but there are no presets to do all subdirectories in a directory as a batch--100 would open up 10000 files--f6 to close all at once if you want to make your own)

c2j - combine contents of directory and display in an unsaved buffer in Joe's Own Editor (one deep)
c2m - combine contents of directory and display in an unsaved buffer in micro (one deep)
ccj - combine contents of all subdirectories in a directory and display in an unsaved buffer in Joe's Own Editor (one deep)
ccm - combine contents of all subdirectories in a directory and display in an unsaved buffer in micro (one deep)
d2b - open up contents of directory in micro
d2bj - open up contents of directory in micro
d2bl - lxterminal opening batch in nano
d2bmx - mcedit -x opening batch
d2bn - nano opening batch
d2br - roxterm opening batch in joe
d2bs - sakura opening batch in micro
d2bu - urxvt opening batch in mcedit -x
d2rmb - rxvt micro
dr2d2b - make portable versions/drag-tos of some of these scripts


also part of the pet (some will rewrite their earlier, identical selves):

getmicro - 
mbatch10 - 
mbatchaz - 
microcatters - 
microdoc - 
microdoc0 - 
microdoc00 - 
microdocs1 - 
mkcallm0 - 
mmv - 
note - 
notesm - 
notesmce - 
notesmcx - 
notesn - 
tmuxm
_____

i think the other scripts have been covered but i'll post the content of the three help scripts here:

echo3 - 
echocat - 
echomicro - 

echocat:
[quote]

# echocat
#copy paste batch cat code. add subdirectory of your choice between the double slashes (//) 
cat .//* | micro
cat ./10az//* | micro
cat ./100//* | micro
cat ./100az//* | micro
cat ./10110//* | micro
cat ./az10//* | micro
cat ./az100//* | micro
cat ./azaz//* | micro
cat ./azaz2//* | micro
cat ./cal//* | micro
cat ./cal2//* | micro
#whole sets of subdirectories combined and opened in micro:
cat ./*/* | micro
#^from within the subdirectory. those below are for along side it.
cat ./10az/*/* | micro
cat ./100/*/* | micro
cat ./100az/*/* | micro
cat ./10110/*/* | micro
cat ./az10/*/* | micro
cat ./az100/*/* | micro
cat ./azaz/*/* | micro
cat ./azaz2/*/* | micro
cat ./cal/*/* | micro
cat ./cal2/*/* | micro

#output to text file instead of text editor (incoming doesn't overwrite older contents):
cat ./{a..z}/* >> ./az.txt
#output to text file instead of text editor (incoming does overwrite older contents):
cat ./{a..z}/* > ./az.txt

tldrv:

ccm file for DDf(s), c2m file  Df(s) (Directory, file(s))
[/quote]

______


echomicro:
[quote]

root# echomicro
#copy paste batch launch help. add subdirectory of your choice between the double slashes (//)
micro .//*
 micro ./10az//*
 micro ./100//*
 micro ./100az//*
 micro ./10110//*
 micro ./az10//*
 micro ./az100//*
 micro ./azaz//*
 micro ./azaz2//*
 micro ./cal//*
 micro ./cal2//*
#no */* batch launching but as a tip, for better use with the alt+t shortcut, swap the main config's setting for base directory name to not show whole path (this is also a reminder to myself to do it)
#swap out micro for text editor of choice and ignore the config advice
#micro ./*/*/* would open up a ridiculous amount of files...
#files outside of of the final destination are ignored so you can pull things out of what's to be catted by pulling them out of that last nested directory

tldrv: d2b file where file is the directory containing the files you want to batch launch in micro (use d2bn to for nano,...
#
[/quote]

____
echo3:
[quote]

t# echo3
replace ./ with the directory containing microdocs or the folders below or use in the following form to launch from the microdocs directory (substitute micro with the text editor of your choice (nano, joe, mcedit, etc):

micro ./0m4u/{}/* 
micro ./0mce/{}/*
micro ./0m4u/{}/*
micro ./10az/{}/*
micro ./100/{}/*
micro ./100az/{}/*
micro ./10110/{}/*
micro ./az10/{}/*
micro ./az100/{}/*
micro ./azaz/{}/*
micro ./azaz2/{}/*
micro ./cal/{}/*
micro ./cal2/{}/*

replace {} with an appropriate subdirectory or range (i.e. in that spot would go {a..e},, {32..40}, {32..48..2}, or a specific directory name (default is letters and numbers to z and 100 depending on the set). i.e. micro ./azaz/e/* for that specific set of subdirectories. the ..2 means go by twos. swap that last asterisk for a range or file to narrow the batch further or open a specific file. 
cat is quick even when you're doing large batches or the whole set and the output from these presets is a single file/buffer (potential real file if you save it) opened in micro so those presets don't get any more specific than the following:

cat ./0m4u/*/* | micro 
cat ./0mce/*/* | micro
cat ./0m4u/*/* | micro
cat ./10az/*/* | micro
cat ./100/*/* | micro
cat ./100az/*/* | micro
cat ./10110/*/* | micro
cat ./az10/*/* | micro
cat ./az100/*/* | micro
cat ./azaz/*/* | micro
cat ./azaz2/*/* | micro
cat ./cal/*/* | micro
cat ./cal2/*/* | micro

(for these you could swap out micro for joe, but nano and mcedit can't use this form (i'd be surprised if vim or emacs couldn't, and any of them could of course open the text versions:

output to file instead of micro (0 for 0verwrite):

cat ./0m4u/*/* > ./cat00m4u
cat ./0mce/*/* > ./cat00mce
cat ./0m4u/*/* > ./cat00m4u
cat ./10az/*/* > ./cat010az
cat ./100/*/* > ./cat0100
cat ./100az/*/* > ./cat0100az
cat ./10110/*/* > ./cat010110
cat ./az10/*/* > ./cat0az10
cat ./az100/*/* > ./cat0az100
cat ./azaz/*/* > ./cat0azaz
cat ./azaz2/*/* > ./cat0azaz2
cat ./cal/*/* > ./cat0cal
cat ./cal2/*/* > ./cat0cal2
____
output to file instead of micro (no extra 0 for 0verwrite):

cat ./0m4u/*/* >> ./cat0m4u
cat ./0mce/*/* >> ./cat0mce
cat ./0m4u/*/* >> ./cat0m4u
cat ./10az/*/* >> ./cat10az
cat ./100/*/* >> ./cat100
cat ./100az/*/* >> ./cat100az
cat ./10110/*/* >> ./cat10110
cat ./az10/*/* >> ./cataz10
cat ./az100/*/* >> ./cataz100
cat ./azaz/*/* >> ./catazaz
cat ./azaz2/*/* >> ./catazaz2
cat ./cal/*/* >> ./catcal
cat ./cal2/*/* >> ./catcal2
)
--
copies made from the original folders would use the same format helper scripts as above. folders added by the user would use the same format if arranged so that the nested directory's/directories' contents contains the target files (./d/d/f(s) with ./ being where you are, d being the possibly new directories, and f being file(s)). the new ones (added by microcatters2) only look at if 0,1,a,c, by default so any directories named similar will be included, otherwise excluded (you could also exclude files from catting or batch scripts by removing them from that nested target to anywhere else).

without the tnux.x set linked or copy in, there's no default 0-set (but there are scripts that provide for its existence). 

use the above copy/paste bits and included help scripts to organize, launch, read, and write your files. 

enjoy!

--puppus dogfellow, 10/7/19
___
10/11:

d2b is a new one--drag to a terminal emulator version (like d2bs) or launch a batch of files with it by
 d2b /path2directoryof/subfolderscontaining/file(s)
see microdoc/notes4
( https://docs.google.com/document/d/1Dp8wyEuezPN_r5he0E3L5JdDFv2uFcSUXAWrG0iqNiY/edit?usp=sharing )
and where the microdocs business starts in the nwp/pwn anuupuus thread:
( http://murga-linux.com/puppy/viewtopic.php?p=1038645#1038645 )
for more
--pd

...db2n is the nano version. c2m  (D/f) or ccm D/D/f where D is directory and f is files in contained therein. ccm will go two deep (use on something like azaz or 100), and c2m goes one deep (for example, one of the subfolders in the two aforementioned examples). the result of the catting is opened as an unsaved buffer/file in micro. doesn't work in nano or mcedit, but c2j and ccj are the joe's editor versions.


--puppus dogfellow, 10/14/19

[/quote]


if you want to edit the help files quickly, use[color=green] lab[/color] or [color=green]gab[/color] in the launcher (presently only presets for leafpad (lab) and geany (gab--the ab in both are apps-bin. the defaults on which those are based ([color=green]ll[/color], [color=green]gl[/color]) are set to edit in /nwp/--at the wp to get to the microfolder in nwp/wp. there's also a rox launcher ([color=green]rl[/color]) that works the same way)) and enter the name of the file you want to edit.

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

word processor and text editor packages

#260 Post by Puppus Dogfellow »

beaver-4._
LibreOffice-6.2.8_en-US_xz.sfs
LibreOffice-6.2.8_en-US_xz.pet
LibreOffice-6.3.4_64_en-US_xz.sfs
LibreOffice-6.3.4_64_en-US_xz.pet


----
from the links and thanks file in the beaver folder (in
pupli repo/word processing and related/):
links, thanks, and notes:

http://bristolwatch.com/rpi/rpi_beaver.htm

http://beaver-editor.sourceforge.net/


beaver-0.4.1-i486-1_SBo.tgz 156k
beaver_0.4.0-1_i386.deb 151k
beaver_0.4.1-1_armhf.deb 157k
beaver_amd64.deb 127k


tested in bionic64 and xenial32

---

launch from a terminal with beaver or use the following modded leafpad.desktop file (dump into a terminal and find a beaver icon to suit you, right click associate it in rox or adjust the Icon= bit to suit the path of your file):


echo $'
[Desktop Entry]
Encoding=UTF-8
Name=Beaver text editor
Icon=/usr/local/share/pixmaps/beaver.png
Comment=Beaver text editor
Exec=beaver
Terminal=false
Type=Application
Categories=TextEditor
GenericName=Beaver text editor
' > /usr/share/applications/Beaver.desktop
fixmenus
jwm -reload

____

edit: i found the beaver icons brought over with the installation of the above packages and adjusted the desktop file to include one. program supports batch launching and tabs so i'm using a version of the above that calls bev3, which is beaver /path/{01..5} /path2 and another script that does similar called at the same time--i'm using it to launch the microdoc sets but still relying on micro opening the catted batches to see if i missed anything
(see microdocs for more on the structure of the sets, but the beaver scripts are essentially

beaver /path/to/all/*| beaver /path/to/{a..(rang)e}| beaver /path/to/file /path/to/dir/*

as an example of how to open up three separate windows with preset tabs. if you're using anuupuus or the lpx feature (which i think i made a separate post about somewhere), it's the same format as the multiple windows of leafpad opening up--you could alter those scripts to use beaver instead--i plan to update that utility/plugin to also use the cat/to | micro scripts--i find they're pretty convenient, especially if your experimenting with hundreds of nested files and folders and beginning to lose track of where you're storing your text--just make a note of where you're working from in the document--i find it's generally easier to reblank them (if that's your thing) by grabbing them in rox and doing it through geany (though that could also be made into launcher shortcuts or menu items.))

enjoy,

p. dogfellow, 12/19-1/20
unlike micro/geany but like leafpad/nano, no reload warning in beaver if you're working on the file in multiple locations and there's a more recent change elsewhere.

as a tip, if you use micro or any of the other terminal text editors and prefer the features of one terminal for some things but not all, tmux a will let any terminal mirror your session in real time--you can get multiple views of the same sets of documents, windows, or panes from more than just your original working terminal (for example, if cutting and pasting is easier in sakura but you like the flow and view better in rxvt).

enjoy

Post Reply