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 Thu 19 Sep 2019, 10:57
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 [113 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8
Author Message
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1615
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  142 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  117 Time(s) 
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1615
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: 1615
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: 1615
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: 1615
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: 1615
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: 1615
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: 1615
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 
Display posts from previous:   Sort by:   
Page 8 of 8 [113 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.4485s ][ Queries: 13 (0.0672s) ][ GZIP on ]