here's the script:
Code: Select all
#!/bin/sh
#dual launchers for the word processor aspect. also, it's a stand alone install script
#no longer requires dash (optional--just swap out the sh for dash if you've got it/prefer it)
mkdir -p /nwp
echo $'
#!/bin/sh
exec geany -i "$@"| exec firefox "$@"
' > /nwp/gif
echo $'
#!/bin/sh
exec defaulttexteditor "$@"| exec firefox "$@"
' > /nwp/tef
echo $'
#!/bin/sh
exec geany "$@"| exec firefox "$@"
' > /nwp/gf
echo $'
#!/bin/sh
exec defaulttexteditor "$@"| exec defaultbrowser "$@"
' > /nwp/def
echo $'
#!/bin/sh
exec leafpad "$@"| exec firefox "$@"
' > /nwp/lff
echo $'
#!/bin/sh
exec geany "$@"| exec defaultbrowser "$@"
' > /nwp/gb
echo $'
#!/bin/sh
exec geany -i "$@"| exec defaultbrowser "$@"
' > /nwp/gib
echo $'
#!/bin/sh
exec leafpad "$@"| exec defaultbrowser "$@"
' > /nwp/leb
echo $'
#!/bin/sh
exec leafpad "$@"| exec seamonkey "$@"
' > /nwp/leafy
echo $'
#!/bin/sh
exec leafpad "$@"| exec dillo "$@"
' > /nwp/dlll
echo $'
#!/bin/sh
exec geany "$@"| exec seamonkey "$@"
' > /nwp/ges
echo $'
#!/bin/sh
exec geany "$@"| exec dillo "$@"
' > /nwp/ged
echo $'
#!/bin/sh
exec geany -i "$@"| exec seamonkey "$@"
' > /nwp/gis
echo $'
#!/bin/sh
exec geany -i "$@"| exec dillo "$@"
' > /nwp/gid
echo $'
#!/bin/sh
exec leafpad "$@"| exec chromium "$@"
' > /nwp/lec
echo $'
#!/bin/sh
exec leafpad "$@"| exec palemoon "$@"
' > /nwp/lep
echo $'
#!/bin/sh
exec geany -i "$@"| exec chromium "$@"
' > /nwp/gic
echo $'
#!/bin/sh
exec geany -i "$@"| exec palemoon "$@"
' > /nwp/gip
echo $'
#!/bin/sh
exec geany "$@"| exec chromium "$@"
' > /nwp/gc
echo $'
#!/bin/sh
exec geany "$@"| exec palemoon "$@"
' > /nwp/gep
echo $'
!/bin/sh
exec leafpad "$@"| exec opera "$@"
' > /nwp/lop
echo $'
#!/bin/sh
exec leafpad "$@"| exec google-chrome "$@"
' > /nwp/lgc
echo $'
#!/bin/sh
exec geany -i "$@"| exec opera "$@"
' > /nwp/gio
echo $'
#!/bin/sh
exec geany -i "$@"| exec
google-chrome "$@"
' > /nwp/gigc
echo $'
#!/bin/sh
exec geany "$@"| exec opera "$@"
' > /nwp/
echo $'
#!/bin/sh
exec geany "$@"| exec google-chrome "$@"
' > /nwp/ggc
echo $'#!/bin/sh
[ -z "$history" ] && history="/nwp/"
# create and run dialog
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
--title="pw,n" --window-icon="gtk-execute" \
--entry --entry-label="Run command:" --editable \
--column="command" --entry-text $history)
# if the command line is empty, exit now
[ -z "$CMDLINE" ] && exit 0
# run the command
$CMDLINE &
exit 0
' > /nwp/np5
echo $'#!/bin/sh
/nwp/np5| xdotool sleep .2s key Right
' > /nwp/pwn
cp /nwp/np5 /root/my-applications/bin/np5
cp /nwp/pwn /root/my-applications/bin/pwn
chmod 755 /nwp/pwn /nwp/np5
chmod 755 root/my-applications/bin/pwn /root/my-applications/bin/np5
echo $'#!/bin/sh
rox /mnt
' > /nwp/mnt
echo $'#!/bin/sh
rox /tmp
' > /nwp/tmp
echo $'#!/bin/sh
rox /etc
' > /nwp/etc
echo $'#!/bin/sh
rox /root/my-applications/bin
' > /nwp/mybin
echo $'#!/bin/sh
rox /root/.config
' > /nwp/conf
echo $'#!/bin/sh
rox /etc/xdg/templates
' > /nwp/jxdg
echo $'#!/bin/sh
rox /bin
' > /nwp/bin
echo $'#!/bin/sh
rox /root/.jwm
' > /nwp/jwm
echo $'#!/bin/sh
rox /usr/share/applications
' > /nwp/apps
echo $'#!/bin/sh
rox /mnt/home
' > /nwp/home
echo $'#!/bin/sh
rox /root/my-documents/
' > /nwp/mdoc
echo $'#!/bin/sh
rox /mnt/sdd1
' > /nwp/sdd1
echo $'#!/bin/sh
rox /mnt/sdd2
' > /nwp/sdd2
echo $'#!/bin/sh
rox /mnt/sdd3
' > /nwp/sdd3
echo $'#!/bin/sh
rox /mnt/sdd4
' > /nwp/sdd4
echo $'#!/bin/sh
rox /mnt/sdd5
' > /nwp/sdd5
echo $'#!/bin/sh
rox /mnt/sdd6
' > /nwp/sdd6
echo $'#!/bin/sh
rox /mnt/sdc1
' > /nwp/sdc1
echo $'#!/bin/sh
rox /mnt/sdc2
' > /nwp/sdc2
echo $'#!/bin/sh
rox /mnt/sdc3
' > /nwp/sdc3
echo $'#!/bin/sh
rox /mnt/sdc4
' > /nwp/sdc4
echo $'#!/bin/sh
rox /mnt/sdc5
' > /nwp/sdc5
echo $'#!/bin/sh
rox /mnt/sdc6
' > /nwp/sdc6
echo $'#!/bin/sh
rox /mnt/sdb1
' > /nwp/sdb1
echo $'#!/bin/sh
rox /mnt/sdb2
' > /nwp/sdb2
echo $'#!/bin/sh
rox /mnt/sdb3
' > /nwp/sdb3
echo $'#!/bin/sh
rox /mnt/sdb4
' > /nwp/sdb4
echo $'#!/bin/sh
rox /mnt/sdb5
' > /nwp/sdb5
echo $'#!/bin/sh
rox /mnt/sdb6
' > /nwp/sdb6
echo $'#!/bin/sh
rox /mnt/sda1
' > /nwp/sda1
echo $'#!/bin/sh
rox /mnt/sda2
' > /nwp/sda2
echo $'#!/bin/sh
rox /mnt/sda3
' > /nwp/sda3
echo $'#!/bin/sh
rox /mnt/sda4
' > /nwp/sda4
echo $'#!/bin/sh
rox /mnt/sda5
' > /nwp/sda5
echo $'#!/bin/sh
rox /mnt/sda6
' > /nwp/sda6
echo $'#!/bin/sh
rox /nwp
' > /nwp/pack
chmod 755 /nwp/sdd1 /nwp/sdd2 /nwp/sdd3 /nwp/sdd4 /nwp/sdd5 /nwp/sdd6
chmod 755 /nwp/sdc1 /nwp/sdc2 /nwp/sdc3 /nwp/sdc4 /nwp/sdc5 /nwp/sdc6
chmod 755 /nwp/sdb1 /nwp/sdb2 /nwp/sdb3 /nwp/sdb4 /nwp/sdb5 /nwp/sdb6
chmod 755 nwp/sda1 /nwp/sda2 /nwp/sda3 /nwp/sda4 /nwp/sda5 /nwp/sda6
chmod 755 /nwp/ggc /nwp/go /nwp/gigc /nwp/gio /nwp/lgc /nwp/gif /nwp/def /nwp/gf /nwp/tef /nwp/def /nwp/lff /nwp/gb /nwp/gib /nwp/led /nwp/leafy /nwp/dlll /nwp/ged /nwp/ges /nwp/lop /nwp/gep /nwp/gc /nwp/gip /nwp/gic /nwp/lep /nwp/gid /nwp/lec /nwp/gis /nwp/ged
chmod 755 /nwp/home /nwp/mdoc /nwp/apps /nwp/jwm /nwp/bin /nwp/jxdg /nwp/conf /nwp/mybin /nwp/etc /nwp/tmp /nwp/mnt /nwp/pack
cp /nwp/tophalf2 /nwp/q8
cp /nwp/bottomhalf2 /nwp/q9
cp /nwp/lefthalf2 /nwp/q6
cp /nwp/righthalf2 /nwp/q7
cp /nwp/fulla /nwp/q10
cp /nwp/upperleftquadrant2 /nwp/q1
cp /nwp/upperrightquadrant2 /nwp/q2
cp /nwp/lowerleftquadrant2 /nwp/q3
cp /nwp/lowerrightquadrant2 /nwp/q4
cp /nwp/lp5a /nwp/q5
echo $'#!/bin/sh
xdotool type \'<pre></pre>\'
' > /nwp/pre
cp /nwp/xpad-clear /nwp/xpc
cp /nwp/xpad-backup /nwp/xpb
echo $'#!/bin/sh
xdotool key alt+0 Down Down Right
#large menu submenu on the root0 menu
' > /nwp/wm
echo $'#!/bin/sh
/nwp/sfs-java.sh; rox /tmp/java-sfs
' > /nwp/jv
echo $'#!/bin/sh
geany /nwp/at1 /nwp/at2 /nwp/at3 /nwp/at4 /nwp/at5 /nwp/at6 /nwp/at7 /nwp/at8 /nwp/at9 /nwp/at10 /nwp/at' > /nwp/ate
echo $'#!/bin/sh
winswitcher
#/nwp/winswitcher
' > /nwp/ww
echo $'#!/bin/sh
#!/bin/sh
xdotool type \'#--------------------------- \'
' > /nwp/c-
echo $'#!/bin/sh
xdotool type \"
echo $\'
(content--script spits out a sample create-file-with-content template)
\' > (path to file)
\"
' > /nwp/cnt
echo $'#!/bin/sh
tas
' > /nwp/tas
echo $'#!/bin/sh
tas
' > /nwp/tas
echo $'#!/bin/sh
xdotool key ctrl+9 ctrl+8 Return ctrl+7
' > /nwp/v
echo $'#!/bin/sh
xdotool type "
#!/bin/sh
xdotool type \'\'
#place desired output between the \' and \'
# use double quotes to get single quotes to show
#name something brief and run with gexec/pexec/a terminal with a convenient shortcut
#or give it its own shortcut key --ati version has info/comments
"
' > /nwp/ati
echo $'#!/bin/sh
xdotool type "
#!/bin/sh
xdotool type \'\'
"
' > /nwp/atx
chmod 755 /nwp/pre /nwp/xpb /nwp/xpc /nwp/wm /nwp/q1 /nwp/q2 /nwp/q3 /nwp/q4 /nwp/q5 /nwp/q6 /nwp/q7 /nwp/q8 /nwp/q9 /nwp/q10
chmod 755 /nwp/jv /nwp/ate /nwp/ww /nwp/c- /nwp/cnt /nwp/tas /nwp/atx /nwp/ati /nwp/pcp /nwp/v
#alter the last part of the cp lines to change the name of the new file being created
#fixes some omissions and a mistake in pre script, gives quick call names to some of the shortcuts for single monitors.
#q series is quarter sized up to five (which is configurable and centrally placed);
#q6 and q7 set the active window to left and right halves of the screen respectively
#q8 and q9 are top and bottom. q10 is full/maximized (as is mx).
#q1 q2 q8
# q5 q6 q7
#q3 q4 q9
#pcp requires puppy control panel: http://www.murga-linux.com/puppy/viewtopic.php?t=61961
#tas requires take a shot: http://murga-linux.com/puppy/viewtopic.php?t=84528
#f requires find and run: http://www.murga-linux.com/puppy/viewtopic.php?p=835582#835582
#xpc and xpb require xpad
#the complete pack requires aemenu, dash, wmtrl, xdotool, and the /nwp folder
#t requires you to pick a terminal if the terminal you have is not sakura.
# some nwp directories may be missing winswitcher: http://www.murga-linux.com/puppy/viewtopic.php?p=799058#799058
echo $'#!/bin/sh
xdotool type \'\'
#Place desired text output between the single quotes above.
#at -- autotext---place in /nwp or a bin. make a series and activate with at...' > /nwp/at
cd /nwp; for f in at{1..10} ; do cp at $f ; done
chmod 755 /nwp/at1 /nwp/at2 /nwp/at3 /nwp/at4 /nwp/at5 /nwp/at6 /nwp/at7 /nwp/at8 /nwp/at9 /nwp/at10 /nwp/at /nwp/leb
#edit with ate; atx spits out a new autotext template.
ggc -- geany, chrome
gigc -- geany new instance, chrome
gio -- geany new instance, opera
lgc -- leafpad, chromium
gif -- geany new instance, firefox
def -- default text editor, default browser
gf -- geany, firefox
tef -- default text editor, firefox
lff -- leafpad, firefox
gb -- geany, default browser
gib -- geany new instance, default browser
leb -- leafpad, default browser
leafy -- leafpad, seamonkey
dlll -- leafpad, dillo
ged -- geany, dillo
ges -- geany, seamonkey
lop -- leafpad, opera
gep -- geany, palemoon
gc -- geany, chromium
gip -- geany new instance, palemoon
gic -- geany new instance, chromium
lep -- leafpad, palemoon
gid -- geany new instance, dillo
lec -- leafpad, chromium
gis -- geany new instance, seamonkey
more shortcuts now available to the Nooby Uber Utility Pack
sda[1-6]-sdd[1-6] -- open those partitions
the following will open in rox if entered in the pw,n launcher: mnt, home, mdoc (opens root/my-documents), apps (opens usr/share/applications), jwm (/root/.jwm), bin, jxdg(etc/xdg/templates), conf (/root/.configure), mybin (/root/my-applications/bin), etc, tmp, and pack (/nwp).
at, at[1-10] are autotext scripts. atx is the template, ate will open the 11 in geany for you to edit/rename. single monitor setups now have similar nwp shortcuts as doubles:
q series is quarter sized up to five (which is configurable and centrally placed);
q6 and q7 set the active window to left and right halves of the screen respectively
q8 and q9 are top and bottom. q10 is full/maximized (as is mx).
Code: Select all
q1 q2 q8
q5 q6 q7
q3 q4 q9
pcp requires puppy control panel: http://www.murga-linux.com/puppy/viewtopic.php?t=61961
tas requires take a shot: http://murga-linux.com/puppy/viewtopic.php?t=84528
f requires find and run: http://www.murga-linux.com/puppy/viewto ... 5582835582
xpc and xpb require xpad
ww requires MochiMoppel's WinSwitcher: http://www.murga-linux.com/puppy/viewto ... 058#799058
some other included shortcuts:
xpc -- xpad clear
xpb -- xpad back up
cnt -- spit out the code in those echo sections from the script above that allows you to create files with predetermined content (cnt--content)
c- -- a comment line that looks like this: #------------------
tas -- SFR's take a shot
pcp -- radky's puppy control panel
ww -- MochiMoppel's WinSwitcher
v -- vtg
---------
set permissions and run as a script or dump the code into a terminal and press enter.