Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 08 Dec 2019, 05:35
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
A NWP/A NWPUS--A Noob's Word Processor and Utilities Suite
Post new topic   Reply to topic View previous topic :: View next topic
Page 8 of 8 [116 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8
Author Message
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Sun 06 Jan 2019, 18:59    Post subject: update and cleanup
Subject description: and/or two versions of a small word processor (83k pet, 159k html file).
 

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

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

the spins use for the nwp is the same as general use for it, so that update is this update. from http://murga-linux.com/puppy/viewtopic.php?p=1014808#1014808:
Quote:

[...]
here's a firefox update (firefox64 32/64) thanks to fredx181.

from the notes and links document in the above folder:

Quote:

if you've installed the nwp, you may've noticed the (likely) dead firefox entry on the alt+1/left click menu. if you enter

geany /nwp/root3/9/root1menu

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

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

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

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

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

_____________


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

Pkg - CLI package manager

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

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

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

here's its pinstall script:

Code:

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


pet is last couple of updates and will fix the redundant launcher entries you may have on various root menus. it also installs the ewp and copies it over to nwp/wp--you get one version to launch from /root/my-applications/bin and one version to launch from /nwp/wp. if you haven't installed mcbwp1 or bwp1.5, you'll get pop ups asking if you'd like to.

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

enjoy!


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

-pd

bonus content:

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

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

___

here's the pet again:

ewp1.pet

here are forum attachments for the ewp.pet and The Emergency Word Processor as as a single html file (download the latter to /root/my-applications/bin and change the cp -f and exec= lines above to match your setup and you can install it without petting it in by dumping the pinstall script into a terminal--no harm will come from the inapplicable bits).
ewp1.pet
Description 
pet

 Download 
Filename  ewp1.pet 
Filesize  82.59 KB 
Downloaded  209 Time(s) 
ewp--EmergencyWordProcessor.gz
Description  change the fake .gz extension to .html (it's not compressed--the forum doesn't allow html extensions on this sort of thing). open with any modern browser.
gz

 Download 
Filename  ewp--EmergencyWordProcessor.gz 
Filesize  158.58 KB 
Downloaded  179 Time(s) 
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Tue 16 Apr 2019, 19:50    Post subject: nwp isn't fully compatible with the bionic pups
Subject description: the jwm stuff needs some tweaking, but here's a start
 

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

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

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

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

to jwmrc-tray add:

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

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

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

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

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

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

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

--puppus.

edit:

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

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


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Fri 26 Apr 2019, 01:06    Post subject: more workarounds for bionic and an update for MMView
Subject description: 9 menus and general interface are back, keycuts are relatively few, and it's also a config toggle
 

here's the pet:
nwpfix4bionic+mmv419.pet

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

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

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

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


here are the configuration files that get swapped in:

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

<JWM>

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

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

<Separator/>

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



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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

<!-- Visual Styles -->

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

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

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

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

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

<StartupCommand>
</StartupCommand>

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

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

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

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

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

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

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

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

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

<!-- <Include>/root/.jwm/themes/jwm-default</Include> -->
<Include>/root/.jwm/jwmrc-theme</Include>
<Include>/root/.jwm/jwmrc-personal</Include>
</JWM>

here's /root/.jwm/jwmrc-personal:

Quote:

<!-- Personally configurable options for JWM: these override default settings and theme settings -->

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

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


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

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


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

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

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


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


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

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

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

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

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

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

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

<!-- Key bindings -->


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


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

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


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


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


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

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

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

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

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

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


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

152 255 148 179

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


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

</JWM>



and here's the key file (keys-sd) swapped in (24 desktops, s4 send-tos, and alt plus 0-9 keycuts for the menus work)

Quote:
<JWM>
<Key mask="A" key="1">root:1</Key>
<Key mask="A" key="2">root:2</Key>
<Key mask="A" key="3">root:3</Key>
<Key mask="A" key="4">root:4</Key>
<Key mask="A" key="5">root:5</Key>
<Key mask="A" key="6">root:6</Key>
<Key mask="A" key="7">root:7</Key>
<Key mask="A" key="8">root:8</Key>
<Key mask="A" key="9">root:9</Key>
<Key mask="A" key="0">root:0</Key>

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

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

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

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

<Key mask="4S" key="F12">exec:/nwp/s24</Key
<Key mask="4S" key="F11">exec:/nwp/s23</Key>
<Key mask="4S" key="F10">exec:/nwp/s22</Key>
<Key mask="4S" key="F9">exec:/nwp/s21</Key>
<Key mask="4S" key="F8">exec:/nwp/s20</Key>
<Key mask="4S" key="F7">exec:/nwp/s19</Key>
<Key mask="4S" key="F6">exec:/nwp/s18</Key>
<Key mask="4S" key="F5">exec:/nwp/s17</Key>
<Key mask="4S" key="F4">exec:/nwp/s16</Key>
<Key mask="4S" key="F3">exec:/nwp/s15</Key>
<Key mask="4S" key="F2">exec:/nwp/s14</Key>
<Key mask="4S" key="F1">exec:/nwp/s13</Key>
<JWM>


toggle for the configuration will also work in already working nwp installs--you'll just lose the key and tray swaps, but you'll gain a general backup of your currently working setup and a version to mess with.

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

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

-p.dogfellow
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Fri 05 Jul 2019, 16:55    Post subject: terminal text editors and nwp utilities for them
Subject description: batch launch, cat, and terminal/tmux shortcuts for nano, micro, etc
 

micro1.4.1-nuupn32n64.pet

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

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

here's the contents of the pet:


Code:

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

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



pinstall:
Code:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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



notesm:
Code:


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



notesn:
Code:

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



note:
Code:

#!/bin/sh
notesn
notesm



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



Code:

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


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

enjoy

--p. dogfellow
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Sun 07 Jul 2019, 01:37    Post subject: newest batch of launcher (and terminal) shortcuts/codes  

Quote:

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



Code:

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


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


that's the launcher version. the terminal version has no addition terminal as part of the launch command. helpful to know: control q in micro and control x in nano will rapidly close all your open documents (unless there's an unsaved change). another tip is that you can move the default folders anywhere you like and rename them--just symlink back to the original location and rename the symlink back to the original folder (0n4n/0m4u) or just recopy the pinstall in a text editor, do search and replace, and resend through the terminal or vtg it in geany.

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



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

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

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

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

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

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


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


____


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

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


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

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


getmicro -- get or update micro text editor
____

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


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Fri 12 Jul 2019, 15:36    Post subject: update of earlier nano-micro-text editor utilities pet
Subject description: TNUX --text editors, nano, micro (u), tmu(x) terminal multiplexer
 

Quote:


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:

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

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

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

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



from tnux.pet updates/improves micro1..-nuupn3264n.pet above
menu entry for my-docs set; update mmv; individual and batch launch batches from folder..(
http://murga-linux.com/puppy/viewtopic.php?p=1032042#1032042)
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Wed 14 Aug 2019, 18:47    Post subject: another update for the tnux pet (some fixes, some additions)
Subject description: android compatibility, a third folder, the missing launcher shortcuts for the gui text editors...
 

here's the pet:

tnux.1.pet

tree:

├── pet.specs
├── pinstall.sh
├── root
│   ├── my-applications
│   │   └── bin
│   │   ├── mmv
│   │   ├── note
│   │   ├── notesm
│   │   ├── notesmce
│   │   ├── notesmcx
│   │   └── notesn
│   └── puppy-reference
│   └── mini-icons
│   └── iconshere
├── tmp
│   ├── nano293-32md.pet
│   ├── nano293-32.pet
│   ├── nano293-64md.pet
│   ├── nano293-64.pet
│   └── tnux-a.sh
└── usr
└── share
└── applications

i'll post all the pieces since that'll make it easier to grab and mod in the future, but the android compatibility comes from the tnux-a script above, which you can run in termux or a terminal app on your android device (tested on a phone, a kindle, and two android t.v. boxes). the script gets sent to /nwp/wp, where you can mod it, sent it to your android, and run (once you've got a terminal and or tmux up and running) with bash tnux.androido (it gets recopied from the pet back to it's original name, but overall the script tries to approximate this utility).

--
from Androido!/notes3:

Quote:


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 usable 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 linus 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 fillin gof 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.php?p=985531#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.


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

..




tweak the script to match your storage cards and other personal paths (like where your dropbox is (see cardb in the bashrc bit) or where you want there three binder folders made.

here's the pinstall:

Code:

#!/bin/sh
#bk ups of earlier versions:
mv /nwp/wp/0n4n /nwp/wp/0n4n-1
mv /nwp/wp/0m4u /nwp/wp/0m4u-1
mv /root/my-documents/0m4u /root/my-documents/0m4u-1
mv /root/my-documents/0n4n /root/my-documents/0n4n-1


#[...]
#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


#nwp/pwn launcher versions of the gui text editor calls:
#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

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

#add a copy of the androido (terminal text editors launching in batches/grids) script to /nwp/wp:
cp -f /tmp/tnux-a.sh /nwp/wp/tnux.androido

#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)
#newer nanos can toggle mouse support
fixmenus
jwm -restart


note is the same but adds an mc -x /lx terminal set. there's also a new command to make the same set but without the -x (mouse support), but that's not one of the defaults made by notes. the names of the other folders make folders as described earlier (works in android also, but if you're sycning between the two, remember that the android versions don't ue a terminal preload--just delete that part from the code or run the individual pieces (i.e. the ./nana, which will run all the files in directory a.

if you want to fix the duplicate file name error from the earlier pet manually (it messed up the cat scripts (6th box), which i think of as a form of running back up in two versions), run:

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

anywhere you've previous run note or it's components (notesn, notesm).

run
Code:


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




to fix the earlier ones. new version renames old folders to ..-1.

enjoy.

(post is already kind of long, but here are the corrected main binder-making scripts:
notesn
Code:

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



notesm:
[code]
#!/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
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 d
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Wed 14 Aug 2019, 19:04    Post subject: ^shouldn't have hit submit before checking the preview
Subject description: lost quite a bit of the last post...
 

...

here's notesm:

Code:


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


here's notesmcx:

Code:

#!/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
/usr/bin/lxterminal -e mcedit -x ./1/*
' > ./0mce/mcx1
chmod 755 ./0mce/mcx1
echo $'#!/bin/sh
/usr/bin/lxterminal -e mcedit -x ./2/*
' > ./0mce/mcx2
chmod 755 ./0mce/mcx2
echo $'#!/bin/sh
/usr/bin/lxterminal -e mcedit -x ./a/*
' > ./0mce/mcxa
chmod 755 ./0mce/mcxa
echo $'#!/bin/sh
/usr/bin/lxterminal -e mcedit -x ./b/*
' > ./0mce/mcxb
chmod 755 ./0mce/mcxb
echo $'#!/bin/sh
/usr/bin/lxterminal -e 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
/usr/bin/lxterminal -e 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.




the launch codes for the gui based text editors running these binders' files are set around g for geany, gi for geany new instance, mp for mp text editor, and abc12 for the folders. the two default locations are /root/my-documents and /nwp/wp. the my-documents versions add a d to the end. the same convention more or less holds for nano (na or nan), micro (mic), and mcedit (though mce and mcx run from the folder only, and in at least one earlier version reuse nano's codes), but that sixth box is catting files named something.txt and runs a slightly different naming convention. (it's like a tape back up in two version). hold close (ctrl q (micro) or ctrl x(nano)) to quickly close the batch; arrow up and press enter to rerun/update the backup record or any other batch/binder--they don't seem to offer to reload on their own like geany does. you can add to, delete, or rename the files in the binder folders (1,2,a,b,c).

current shortcuts list is about thirty pages in a regular word processing file--i think the last time i posted it was about two thread pages back..

i'm sorry for how long it would take to read all the shortcuts.

Embarassed Crying or Very sad Smile

enjoy/sorry for the overlong post,

--p. dogfellow
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Tue 01 Oct 2019, 03:21    Post subject: something neater and better than the previous version (but
Subject description: it only has presets for micro this time)
 

from microdoc.1.2.pet: some more text editor utilities/addons
catting, themeing, batch launching, conflict fixes, other improvements over 0m4u:


Puppus Dogfellow wrote:


microdoc.1.2.pet

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

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

Smile

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


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


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Sat 05 Oct 2019, 01:19    Post subject: microdoc.1.3: zooming out and backward compatibility
Subject description: 2 new calendar folders, more inclusion and exclusion presets and cat/batch helpers
 

microdoc.1.3.pet

microdoc.tar.xz

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

[...]

10/4/19:

here's the pinstall script for 1.3:

Code:

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

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

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

#!/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.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Sat 19 Oct 2019, 01:31    Post subject: microdocs updated to 1.4
Subject description: c2m, d2b (etc) also work in the tnux folders (0n4n, 0mce, 0m4u)
 

from: the help files for the previous pet
Subject description: and other commands for the terminal
(http://murga-linux.com/puppy/viewtopic.php?p=1039916#1039916 )


Puppus Dogfellow wrote:
Quote:
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] [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))


______


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,...
#


____
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




if you want to edit the help files quickly, use lab or gab 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 (ll, gl) are set to edit in /nwp/--at the wp to get to the microfolder in nwp/wp. there's also a rox launcher (rl) that works the same way)) and enter the name of the file you want to edit.


from Post subject: microdocs 1.4: much simpler batch launching and catting,
Subject description: updated mmv (MochiMoppel'sViewer can preview +/or preload terminal+text editor choice +batch load...
( http://murga-linux.com/puppy/viewtopic.php?p=1039910#1039910):


Puppus Dogfellow wrote:
microdoc.1.4.pet


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

Quote:

_______
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
Very Happy

--pd


___

here's the pinstall:
Quote:


#!/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
mv -T /root/my-documents/microdocs /root/my-documents/microdocs00
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 samething 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

#10/8/19#nwp version:
mv -T /nwp/wp/microdocs /nwp/wp/microdocs00
cd /nwp/wp/
microdocs1
cd /nwp/wp/microdocs/10110/
#(10 of 1-10)
mbatch10
cd /nwp/wp/microdocs/az10/
mbatchaz
cd /nwp/wp/microdocs/azaz/
mbatchaz
cd /nwp/wp/microdocs/10az/
mbatch10
####
#
##
###


#-------------
#new for 1.4

echo $'#!/bin/sh
# mcat0
cat /root/my-documents/microdocs/0*/*/* | micro
' > /nwp/mcat0
echo $'#!/bin/sh
# mcat1
cat /root/my-documents/microdocs/1*/*/* | micro
' > /nwp/mcat1
echo $'#!/bin/sh
# mcat2
cat /root/my-documents/microdocs/2*/*/* | micro
' > /nwp/mcat2
echo $'#!/bin/sh
# mcata
cat /root/my-documents/microdocs/a*/*/* | micro
' > /nwp/mcata
echo $'#!/bin/sh
# mcatb
cat /root/my-documents/microdocs/b*/*/* | micro
' > /nwp/mcatb
echo $'#!/bin/sh
# mcatc
cat /root/my-documents/microdocs/c*/*/* | micro
' > /nwp/mcatc
echo $'#!/bin/sh
# mcatall
cat /root/my-documents/microdocs/*/*/* | micro
' > /nwp/mcatall
echo $'#!/bin/sh
# mcat02c
cat /root/my-documents/microdocs/0*/*/* /1*/*/* /root/my-documents/microdocs/2*/*/* /root/my-documents/microdocs/a*/*/* /root/my-documents/microdocs/b*/*/* /root/my-documents/microdocs/c*/*/* | micro
' > /nwp/mcat02c
echo $'#!/bin/sh
# mcatc20
cat /root/my-documents/microdocs/0*/*/* /1*/*/* /root/my-documents/microdocs/2*/*/* /root/my-documents/microdocs/a*/*/* /root/my-documents/microdocs/b*/*/* /root/my-documents/microdocs/c*/*/* | micro
' > /nwp/mcatc20
echo $'#!/bin/sh
# d2b
micro "$@"/*
' > /nwp/d2b
echo $'#!/bin/sh
# d2bn
nano "$@"/*
' > /nwp/d2bn
echo $'#!/bin/sh
# ncat0
cat /nwp/wp/microdocs/0*/*/* | micro
' > /nwp/ncat0
echo $'#!/bin/sh
# ncat1
cat /nwp/wp/microdocs/1*/*/* | micro
' > /nwp/ncat1
echo $'#!/bin/sh
# ncat2
cat /nwp/wp/microdocs/2*/*/* | micro
' > /nwp/ncat2
echo $'#!/bin/sh
# ncata
cat /nwp/wp/microdocs/a*/*/* | micro
' > /nwp/ncata
echo $'#!/bin/sh
# ncatb
cat /nwp/wp/microdocs/b*/*/* | micro
' > /nwp/ncatb
echo $'#!/bin/sh
# ncatc
cat /nwp/wp/microdocs/c*/*/* | micro
' > /nwp/ncatc
echo $'#!/bin/sh
# ncatall
cat /nwp/wp/microdocs/*/*/* | micro
' > /nwp/ncatall
echo $'#!/bin/sh
# ncat02c
cat /nwp/wp/microdocs/0*/*/* /nwp/wp/microdocs/1*/*/* /nwp/wp/microdocs/2*/*/* /nwp/wp/microdocs/a*/*/* /nwp/wp/microdocs/b*/*/* /nwp/wp/microdocs/c*/*/* | micro
' > /nwp/ncat02c
echo $'#!/bin/sh
# ncatc20
cat /nwp/wp/microdocs/c*/*/* /nwp/wp/microdocs/b*/*/* /nwp/wp/microdocs/a*/*/* /nwp/wp/microdocs/2*/*/* /nwp/wp/microdocs/1*/*/* /nwp/wp/microdocs/0*/*/* | micro
' > /nwp/ncatc20
echo $'#!/bin/sh
# d2bs
sakura -e micro "$@"/*
' > /nwp/d2bs

#------------#-------------#-------------#-------------#--------------
#/nwp/wp/microdocs/#---#----#-------------#-------------#--------------------------------
#-------------#-------------#---------#-----#----------------#----------------------#-------------

echo $'#!/bin/sh
# mcat0
cat /root/my-documents/microdocs/0*/*/* | micro
' > /root/my-applications/bin/mcat0
echo $'#!/bin/sh
# mcat1
cat /root/my-documents/microdocs/1*/*/* | micro
' > /root/my-applications/bin/mcat1
echo $'#!/bin/sh
# mcat2
cat /root/my-documents/microdocs/2*/*/* | micro
' > /root/my-applications/bin/mcat2
echo $'#!/bin/sh
# mcata
cat /root/my-documents/microdocs/a*/*/* | micro
' > /root/my-applications/bin/mcata
echo $'#!/bin/sh
# mcatb
cat /root/my-documents/microdocs/b*/*/* | micro
' > /root/my-applications/bin/mcatb
echo $'#!/bin/sh
# mcatc
cat /root/my-documents/microdocs/c*/*/* | micro
' > /root/my-applications/bin/mcatc
echo $'#!/bin/sh
# mcatall
cat /root/my-documents/microdocs/*/*/* | micro
' > /root/my-applications/bin/mcatall
echo $'#!/bin/sh
# mcat02c
cat /root/my-documents/microdocs/0*/*/* /1*/*/* /root/my-documents/microdocs/2*/*/* /root/my-documents/microdocs/a*/*/* /root/my-documents/microdocs/b*/*/* /root/my-documents/microdocs/c*/*/* | micro
' > /root/my-applications/bin/mcat02c
echo $'#!/bin/sh
# mcatc20
cat /root/my-documents/microdocs/0*/*/* /1*/*/* /root/my-documents/microdocs/2*/*/* /root/my-documents/microdocs/a*/*/* /root/my-documents/microdocs/b*/*/* /root/my-documents/microdocs/c*/*/* | micro
' > /root/my-applications/bin/mcatc20
echo $'#!/bin/sh
# d2b
micro "$@"/*
' > /root/my-applications/bin/d2b
echo $'#!/bin/sh
# d2bn
nano "$@"/*
' > /root/my-applications/bin/d2bn
echo $'#!/bin/sh
# ncat0
cat /nwp/wp/microdocs/0*/*/* | micro
' > /root/my-applications/bin/ncat0
echo $'#!/bin/sh
# ncat1
cat /nwp/wp/microdocs/1*/*/* | micro
' > /root/my-applications/bin/ncat1
echo $'#!/bin/sh
# ncat2
cat /nwp/wp/microdocs/2*/*/* | micro
' > /root/my-applications/bin/ncat2
echo $'#!/bin/sh
# ncata
cat /nwp/wp/microdocs/a*/*/* | micro
' > /root/my-applications/bin/ncata
echo $'#!/bin/sh
# ncatb
cat /nwp/wp/microdocs/b*/*/* | micro
' > /root/my-applications/bin/ncatb
echo $'#!/bin/sh
# ncatc
cat /nwp/wp/microdocs/c*/*/* | micro
' > /root/my-applications/bin/ncatc
echo $'#!/bin/sh
# ncatall
cat /nwp/wp/microdocs/*/*/* | micro
' > /root/my-applications/bin/ncatall
echo $'#!/bin/sh
# ncat02c
cat /nwp/wp/microdocs/0*/*/* /nwp/wp/microdocs/1*/*/* /nwp/wp/microdocs/2*/*/* /nwp/wp/microdocs/a*/*/* /nwp/wp/microdocs/b*/*/* /nwp/wp/microdocs/c*/*/* | micro
' > /root/my-applications/bin/ncat02c
echo $'#!/bin/sh
# ncatc20
cat /nwp/wp/microdocs/c*/*/* /nwp/wp/microdocs/b*/*/* /nwp/wp/microdocs/a*/*/* /nwp/wp/microdocs/2*/*/* /nwp/wp/microdocs/1*/*/* /nwp/wp/microdocs/0*/*/* | micro
' > /root/my-applications/bin/ncatc20
echo $'#!/bin/sh
# d2bs
sakura -e micro "$@"/*
' > /root/my-applications/bin/d2bs
chmod 755 /nwp/ncat* /nwp/mcat* /nwp/d2* /nwp/c2* /nwp/cc*
chmod 755 /root/my-applications/bin/ncat* /root/my-applications/bin/mcat* /root/my-applications/bin/d2* /root/my-applications/bin/c2* /root/my-applications/bin/cc*
#
#to swap for other locations, 1. paths for activation:
#/nwp/ and /root/my-applications bin
#2. locations used for microdocs(where microdocs1 was activated and the microdocs folder was made):
#/nwp/wp/ /root/my-documents/
##use for tmux presets or desktop files that launch particular batches or catted sets of your files.
##/root/my-documents/microdocs
#cat /root/my-documents/microdocs
#for android, i used the following to generate the helper scripts into a directory, then copied the contents over to
#/data/data/com/nwptermux/files/usr/bin/applets/, then from within that directory ran chmod 755 /nwp/*
#/root/.config/micro/bindings2.json
#/root/0.tmux.conf
#/root/.config/micro/settings.json1
#three files above can be useful but aren't activated by default:
#cp -f /root/.config/micro/bindings2.json /root/.config/micro/bindings.json
#cp -f /root/0.tmux.conf /root/.tmux.conf
#cp -f /root/.config/micro/settings.json1 /root/.config/micro/settings.json
#i added back the three 0- folders from the tnux pet by copying over some scripts. since that pet also updated MochiMoppelView for my spins, and MochiMoppel has since updated that excellent utility, this pet includes an mmv update (i rename it that to more easily call it from a terminal).
#^earlier comments. i think in the end just adding a folder to the path saves the most headaches...and it pays to take a few minutes to customize the quick directory link feature in mc...mc looks pretty cool..
#nwp launcher and on path (root/my-apps bin) versions--mostly done presets for four folders with a little find and replace here and there (if you've installed 1.3 or another earlier version, that set would now be in microdocs00 (or more if you've grabbed 1.3.1 from the repo). swapping wp/microdocs for wp/microdocs00, as an example, would change the scripts' target to that directory--you can quickly call multiple sources for the batches from the terminal that way (once you get the hang of and/or customize the naming conventions)).
#will probably go on pinstall for 1.4
#some of the scripts that aren't preset for specific folders (c2m, d2b and the like) could be copied and versioned to allow you try out more terminals and text editors with your files and this set up.
#as before, you can rename, link in, add to and/or delete the files the batch calls call, but some of the scripts will fail (see "set for specific folders" above) if you rename the directories themselves (though those symlinked in can be named anything so long as the name of the symlink mimics one of the presets (or you stick to mdcat, catmd, cat0 type scripts).
#enter echo3, echocat, or echomicro in the terminal for more help and readme type stuff.
#puppus dogfellow, 10/15/19

----



(if microdocs1 fits here i'll post it, otherwise next post):


microdocs1:

Quote:

#!/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/
#cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./azaz2/
#mv -f ./catset ./mset ./cuscat ./medcat ./largecat ./azaz2/


echo $'
#!/bin/sh
#ac01 --all 13, letters first.
#3 adds the 3 0- folders from tnux.x.x
#cat ./0m4u/*/* /0mce/*/* ./0n4n/*/* ./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
#^get more specific
#easily add or remove batches:
#cat ./0*/*/* | micro
#cat ./1*/*/* | micro
#cat ./a*/*/* | micro
#cat ./c*/*/* | micro
cat ./a*/*/* ./c*/*/* ./0*/*/* ./1*/*/* | micro
#line without the leading # is the active choice. adjust as necessary.
'> ./ac01
chmod 755 ./ac01

echo $'
#!/bin/sh
#01ac --all 13, numbers first.
#3 adds the 3 0- folders from tnux.x.x
#cat ./0m4u/*/* /0mce/*/* ./0n4n/*/* ./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
#^get more specific
#easily add or remove batches:
#cat ./0*/*/* | micro
#cat ./1*/*/* | micro
#cat ./a*/*/* | micro
#cat ./c*/*/* | micro
cat ./0*/*/* ./1*/*/* ./a*/*/* ./c*/*/* | micro
#line without the leading # is the active choice. adjust as necessary.
'> ./01ac
chmod 755 ./01ac
#[...]

echo $'#!/bin/sh
cat ./0m4u/*/* /0mce/*/* ./0n4n/*/* | micro' > ./cat03
chmod 755 ./cat03


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

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

echo $'#!/bin/sh
cat ./0n4n/*/* | micro' > ./cat0n4n
chmod 755 ./cat0n4n
#[...]


echo $'#!/bin/sh
echo $\'
#!/bin/sh
#ac01 --all 13, letters first.
#3 adds the 3 0- folders from tnux.x.x
#cat ./0m4u/*/* /0mce/*/* ./0n4n/*/* ./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
#^get more specific
#easily add or remove batches:
#cat ./0*/*/* | micro
#cat ./1*/*/* | micro
#cat ./a*/*/* | micro
#cat ./c*/*/* | micro
cat ./a*/*/* ./c*/*/* ./0*/*/* ./1*/*/* | micro
#line without the leading # is the active choice. adjust as necessary.
\'> ./ac01
chmod 755 ./ac01
echo $\'
#!/bin/sh
#01ac --all 13, numbers first.
#3 adds the 3 0- folders from tnux.x.x
#cat ./0m4u/*/* /0mce/*/* ./0n4n/*/* ./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
#^get more specific
#easily add or remove batches:
#cat ./0*/*/* | micro
#cat ./1*/*/* | micro
#cat ./a*/*/* | micro
#cat ./c*/*/* | micro
cat ./0*/*/* ./1*/*/* ./a*/*/* ./c*/*/* | micro
#line without the leading # is the active choice. adjust as necessary.
\'> ./01ac
chmod 755 ./01ac
#[...]
echo $\'#!/bin/sh
cat ./0m4u/*/* /0mce/*/* ./0n4n/*/* | micro\' > ./cat03
chmod 755 ./cat03
echo $\'#!/bin/sh
cat ./0m4u/*/* | micro\' > ./cat0m4u
chmod 755 ./cat0m4u
echo $\'#!/bin/sh
cat ./0mce/*/* | micro\' > ./cat0mce
chmod 755 ./cat0mce
echo $\'#!/bin/sh
cat ./0n4n/*/* | micro\' > ./cat0n4n
chmod 755 ./cat0n4n
#[...]
echo $\'#!/bin/sh
cat ./*/* | micro
\' > ./catset
chmod 755 ./catset
echo $\'#!/bin/sh
micro ./*/*
\' > ./mset
chmod 755 ./mset
'> /root/my-applications/bin/microcatters2
chmod 755 /root/my-applications/bin/microcatters2

echo $'#!/bin/sh
microcatters
microcatters2
'> /root/my-applications/bin/microcatsh
chmod 755 /root/my-applications/bin/microcatsh
`


it fit
Very Happy

enjoy

--pd
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 8 of 8 [116 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3999s ][ Queries: 13 (0.0065s) ][ GZIP on ]