The time now is Wed 22 May 2013, 12:39
All times are UTC - 4 |
| Author |
Message |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Tue 21 Jun 2011, 13:35 Post subject:
Several icons for JWM. OS: "Quirky Linux 1.40" Subject description: Script to install the set of icons onto desktop. |
|
Script to install the set of icons onto desktop.
Window manager = JWM.
| Quote: |
Inst-ALSAuse_UMountDVD_Eth0--v3.sh
| Code: |
#!/bin/bash
#
#Several icons for JWM. OS: "Quirky Linux 1.40"
#Script to install the set of icons onto desktop.
#Window manager = JWM.
###cp /mnt/sda1/_usr_share_icons/alsamixer_48x48.png /usr/share/icons/hicolor/48x48/apps/ ;
###cp /mnt/sda1/_usr_share_icons/alsamixer-103_48x24.png /usr/share/icons/hicolor/48x48/apps/ ;
###cp /mnt/sda1/_usr_share_icons/alsamixer-0_48x23up.png /usr/share/icons/hicolor/48x48/apps/ ;
###cp /mnt/sda1/_usr_share_icons/xfce4-taskmanager_48x48.png /usr/share/icons/hicolor/48x48/apps/ ;
#
#cp /mnt/sdb1/-/0_Files_and_scripts/_usr_share_icons/alsamixer_48x48.png /usr/share/icons/hicolor/48x48/apps/ ;
#cp /mnt/sdb1/-/0_Files_and_scripts/_usr_share_icons/alsamixer-103_48x24.png /usr/share/icons/hicolor/48x48/apps/ ;
#cp /mnt/sdb1/-/0_Files_and_scripts/_usr_share_icons/alsamixer-0_48x23up.png /usr/share/icons/hicolor/48x48/apps/ ;
#cp /mnt/sdb1/-/0_Files_and_scripts/_usr_share_icons/xfce4-taskmanager_48x48.png /usr/share/icons/hicolor/48x48/apps/ ;
#
#From -=0_0--First_Use--2012_aug_09.sh=- ===>
cp /mnt/sr0/0-0-/0_Files_and_scripts/_usr_share_icons/* /usr/share/icons/hicolor/48x48/apps ;
#<=== From -=0_0--First_Use--2012_aug_09.sh=-.
#
# # #
#
#[1]sound card mixers >>>>>
sed -i".tmp" '/"ALSAsnd"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
#ok...
sed -i".tmp" '/\/pinboard/d' /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#
echo '[Desktop Entry]' > /usr/share/applications/ALSAprogs.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/ALSAprogs.desktop ;
echo 'Name=AlsaUI' >> /usr/share/applications/ALSAprogs.desktop ;
echo 'Comment=mixer for ALSA' >> /usr/share/applications/ALSAprogs.desktop ;
echo "Exec=bash -c 'Xdialog --msgbox \"Want to manage -=alsamixer=- or to launch -=alsaconf=-? LETs go.\" --backtitle \"AUDIO\" --title \"Variants\" --no-tags --radiolist \"Choose: change ALSAMIXER settings or launch ALSACONF\" 21 59 5 \"exec rxvt -e alsaconf\" \"to find AUDIOCARDs\" off \"exec rxvt -e alsamixer\" \"to manage main card in ALSAMIXER\" on \"exec rxvt -e alsamixer -c 1\" \"to manage 2nd card in ALSAMIXER\" off \"exec rxvt -e alsamixer -c 2\" \"to manage 3rd card in ALSAMIXER\" off \"exec xmixer\" \"to launch panel of VCl: xmixer\" off \"exec gmixer\" \"to launch panel of VCl: gmixer\" off \"exec alsamixergui -D hw:0\" \"to launch panel of VCl: alsamixergui\" off 2>/room/alsa_tmp.sh ; chmod 550 /room/alsa_tmp.sh ; bash -e /room/alsa_tmp.sh ; rm /room/alsa_tmp.sh ; xmessage \"\`cat /proc/asound/cards\` |===> audiocards are in use\"'" >> /usr/share/applications/ALSAprogs.desktop ;
echo 'Terminal=false' >> /usr/share/applications/ALSAprogs.desktop ;
echo 'Type=Application' >> /usr/share/applications/ALSAprogs.desktop ;
echo 'Categories=Audio' >> /usr/share/applications/ALSAprogs.desktop ;
echo 'GenericName=AlsaUI' >> /usr/share/applications/ALSAprogs.desktop ;
echo 'Icon=/usr/share/icons/hicolor/48x48/apps/alsamixer_48x48.png' >> /usr/share/applications/ALSAprogs.desktop ;
#
#echo '<icon x="352" y="620" label="ALSAsnd">/usr/share/applications/ALSAprogs.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="928" y="116" label="ALSAsnd">/usr/share/applications/ALSAprogs.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo "Done" ;
#[2]for quick changes of settings of the -=alsamixer=- >>>>>
sed -i".tmp" '/AlsaMPVolume1.desktop/d' /root/Choices/ROX-Filer/PuppyPin ;
#
echo '[Desktop Entry]' > /usr/share/applications/AlsaMPVolume1.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/AlsaMPVolume1.desktop ;
echo 'Name=AlsaMPVolume' >> /usr/share/applications/AlsaMPVolume1.desktop ;
echo 'Comment=quick mixer for ALSA' >> /usr/share/applications/AlsaMPVolume1.desktop ;
echo "Exec=bash -c 'echo \"amixer -c 0 sset \"Master\" 1 on ; amixer -c 0 sset \"PCM\" 31 on\" >/room/alsa_tmp.sh ; chmod 550 /room/alsa_tmp.sh ; bash -e /room/alsa_tmp.sh ; rm /room/alsa_tmp.sh ; xmessage \"\`amixer -c 0 sget 'Master' | grep -i '%' ; amixer -c 0 sget 'PCM' | grep -i '100%'\`\"'" >> /usr/share/applications/AlsaMPVolume1.desktop ;
echo 'Terminal=false' >> /usr/share/applications/AlsaMPVolume1.desktop ;
echo 'Type=Application' >> /usr/share/applications/AlsaMPVolume1.desktop ;
echo 'Categories=no' >> /usr/share/applications/AlsaMPVolume1.desktop ;
echo 'GenericName=Quick Mixer - 1' >> /usr/share/applications/AlsaMPVolume1.desktop ;
echo 'Icon=/usr/share/icons/hicolor/48x48/apps/alsamixer-103_48x24.png' >> /usr/share/applications/AlsaMPVolume1.desktop ;
#
echo '<icon x="928" y="24" label="">/usr/share/applications/AlsaMPVolume1.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
#[3]for quick changes of settings of the -=alsamixer=- >>>>>
sed -i".tmp" '/"AlsaQk"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
echo '[Desktop Entry]' > /usr/share/applications/AlsaMPVolume0.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/AlsaMPVolume0.desktop ;
echo 'Name=AlsaMPVolume' >> /usr/share/applications/AlsaMPVolume0.desktop ;
echo 'Comment=quick mixer for ALSA' >> /usr/share/applications/AlsaMPVolume0.desktop ;
echo "Exec=bash -c 'amixer -c 0 sset \"Master\" 0 off & amixer -c 0 sset \"Master Mono\" 0 off & amixer -c 0 sset \"PCM\" 0 off & amixer -c 0 sset \"Surround\" 0 off & amixer -c 0 sset \"Center\" 0 off & amixer -c 0 sset \"LFE\" 0 off & amixer -c 0 sset \"Line\" 0 off & amixer -c 0 sset \"CD\" 0 off & amixer -c 0 sset \"Mic\" 0 off & amixer -c 0 sset \"Mic Boost (+20dB)\" off & amixer -c 0 sset \"Phone\" 0 off & amixer -c 0 sset \"IEC958\" off & amixer -c 0 sset \"IEC958 Playback AC97-SPSA\" 0 off & amixer -c 0 sset \"IEC958 Playback Source\" 0 off & amixer -c 0 sset \"PC Speaker\" 0 off & amixer -c 0 sset \"Aux\" 0 off & amixer -c 0 sset \"Mono Output Select\" off & amixer -c 0 sset \"Capture\" 0 toggle off & amixer -c 0 sset \"Mix Mono\" toggle & amixer -c 0 sset \"Duplicate Front\" off & amixer -c 0 sset \"External Amplifier\" off' ; bash -c 'amixer -c 0 sset \"Master\" 0 off & amixer -c 0 sset \"Master Mono\" 0 off & amixer -c 0 sset \"PCM\" 0 off & amixer -c 0 sset \"Surround\" 0 off & amixer -c 0 sset \"Center\" 0 off & amixer -c 0 sset \"LFE\" 0 off & amixer -c 0 sset \"Line\" 0 off & amixer -c 0 sset \"CD\" 0 off & amixer -c 0 sset \"Mic\" 0 off & amixer -c 0 sset \"Mic Boost (+20dB)\" off & amixer -c 0 sset \"Phone\" 0 off & amixer -c 0 sset \"IEC958\" off & amixer -c 0 sset \"IEC958 Playback AC97-SPSA\" 0 off & amixer -c 0 sset \"IEC958 Playback Source\" 0 off & amixer -c 0 sset \"PC Speaker\" 0 off & amixer -c 0 sset \"Aux\" 0 off & amixer -c 0 sset \"Mono Output Select\" off & amixer -c 0 sset \"Capture\" 0 toggle off & amixer -c 0 sset \"Mix Mono\" toggle & amixer -c 0 sset \"Duplicate Front\" off & amixer -c 0 sset \"External Amplifier\" off'" >> /usr/share/applications/AlsaMPVolume0.desktop ;
echo 'Terminal=false' >> /usr/share/applications/AlsaMPVolume0.desktop ;
echo 'Type=Application' >> /usr/share/applications/AlsaMPVolume0.desktop ;
echo 'Categories=no' >> /usr/share/applications/AlsaMPVolume0.desktop ;
echo 'GenericName=Quick Mixer - 0' >> /usr/share/applications/AlsaMPVolume0.desktop ;
echo 'Icon=/usr/share/icons/hicolor/48x48/apps/alsamixer-0_48x23up.png' >> /usr/share/applications/AlsaMPVolume0.desktop ;
#echo 'Icon=/usr/share/icons/hicolor/48x48/apps/alsamixer-0_48x24.png' >> /usr/share/applications/AlsaMPVolume0.desktop ;
#echo 'Icon=/usr/share/icons/hicolor/48x48/apps/alsamixer-0_48x25up.png' >> /usr/share/applications/AlsaMPVolume0.desktop ;
#
echo '<icon x="928" y="52" label="AlsaQk">/usr/share/applications/AlsaMPVolume0.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
#[4]for manipulations in regard to CD-disk >>>>>
sed -i".tmp" '/"UMntDVD"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
echo '[Desktop Entry]' > /usr/share/applications/UMountDVD.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/UMountDVD.desktop ;
echo 'Name=UMount CD' >> /usr/share/applications/UMountDVD.desktop ;
echo 'Comment=UMount - mount and unmount' >> /usr/share/applications/UMountDVD.desktop ;
echo "Exec=bash -c 'mkdir -p /var/.tmp ; chmod 0600 /var/.tmp ; Xdialog --msgbox \"Disk only with -=ISO9660=- File System can be used here\n\nFor -=VLC Player=- address -=Z:\mnt\dvd\video_ts=- can be used\" 9 64 --backtitle \"uMount\" --title \"Variants\" --no-tags --radiolist \"DEVICES: -=\`grep -i -o "'\"/dev/sr0 /mnt/dvd\"'" /proc/mounts\`=- ; -=\`grep -i -o "'\"/dev/sr0 /mnt/sr0\"'" /proc/mounts\`=-\" 23 70 5 \"eject -t\" \"close DVD or SR0\" ON \"mkdir -p /mnt/dvd ; mount /dev/sr0 /mnt/dvd -t iso9660 -o ro,relatime,iocharset=utf8 ;\" \"mount DVD\" off \"mkdir -p /mnt/sr0 ; mount /dev/sr0 /mnt/sr0 -t iso9660 -o ro,relatime,iocharset=utf8 ;\" \"mount SR0\" off \"eject\" \"open DVD or SR0\" off \"umount /mnt/dvd ; rmdir --ignore-fail-on-non-empty /mnt/dvd ;\" \"unmount DVD\" off \"umount /mnt/sr0 ; rmdir --ignore-fail-on-non-empty /mnt/sr0 ;\" \"unmount SR0\" off \"file -s /dev/sr0|grep filesystem|cut -d"'\" \"'" -f 1-6|xmessage -file -\" \"file system of SR0\" off 2>/var/.tmp/.1_sr0 ; chmod 0100 /var/.tmp/.1_sr0 ; sh /var/.tmp/.1_sr0 ; rm /var/.tmp/.1_sr0 ; xmessage \"device -=\`grep -i -o \"/dev/sr0 /mnt/dvd\" /proc/mounts\`=- -=\`grep -i -o \"/dev/sr0 /mnt/sr0\" /proc/mounts\`=- is in use\" ; rmdir --ignore-fail-on-non-empty /var/.tmp'" >> /usr/share/applications/UMountDVD.desktop ;
echo 'Terminal=false' >> /usr/share/applications/UMountDVD.desktop ;
echo 'Type=Application' >> /usr/share/applications/UMountDVD.desktop ;
echo 'Categories=X-FilesystemMount' >> /usr/share/applications/UMountDVD.desktop ;
echo 'GenericName=CD manager' >> /usr/share/applications/UMountDVD.desktop ;
echo 'Icon=/usr/local/lib/X11/themes/Smooth-Color/optical48.png' >> /usr/share/applications/UMountDVD.desktop ;
#echo 'Icon=/usr/share/pixmaps/gcolor2/icon.png' >> /usr/share/applications/UMountDVD.desktop ;
#
#echo '<icon x="288" y="620" label="UMntDVD">/usr/share/applications/UMountDVD.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="928" y="200" label="UMntDVD">/usr/share/applications/UMountDVD.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
#[5]for manipulations in regard to Eth0 network device >>>>>
sed -i".tmp" '/"Eth0"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
echo '[Desktop Entry]' > /usr/share/applications/eth0_.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/eth0_.desktop ;
echo 'Name=Manager for eth0 device' >> /usr/share/applications/eth0_.desktop ;
echo 'Comment="eth0" can be activated and disactivated' >> /usr/share/applications/eth0_.desktop ;
echo "Exec=bash -c 'mkdir -p /var/.tmp ; chmod 0600 /var/.tmp ; Xdialog --msgbox \"A C T I V E...D E V I C E: [\`netstat -i | grep -i -o 'eth0'\`]\n\nTo stop communication with other PCs: -=To stop eth0=-\n\nTo launch communication with other PCs again: -=To activate eth0 again=-\" 12 74 --backtitle \"Choice\" --title \"Variants\" --no-tags --radiolist \"Choose: start or stop device -=\`ifconfig -a | grep -i -o 'eth0'\`=- \" 17 70 10 \"rxvt --geometry 139x49 -e dialog --msgbox "'\"\`netstat --numeric-ports -apA inet\`\"'" 47 135\" \"To see Open Ports\" off \"exec net-setup.sh\" \"To activate eth0\" off \"ifconfig eth0 down\" \"To stop eth0\" ON \"exec /etc/rc.d/rc.network start\" \"To activate eth0 again\" off 2>/var/.tmp/.1_eth0 ; chmod 0100 /var/.tmp/.1_eth0 ; sh /var/.tmp/.1_eth0 ; rm /var/.tmp/.1_eth0 ; xmessage \"-=\`netstat -i | grep -i -o 'eth0'\`=- device is active\" ; rmdir --ignore-fail-on-non-empty /var/.tmp'" >> /usr/share/applications/eth0_.desktop ;
echo 'Terminal=false' >> /usr/share/applications/eth0_.desktop ;
echo 'Type=Application' >> /usr/share/applications/eth0_.desktop ;
echo 'Categories=Network' >> /usr/share/applications/eth0_.desktop ;
echo 'GenericName=Manager for eth0 device' >> /usr/share/applications/eth0_.desktop ;
echo 'Icon=wizard16.xpm' >> /usr/share/applications/eth0_.desktop ;
#
echo '[Desktop Entry]' > /usr/share/applications/eth0.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/eth0.desktop ;
echo 'Name=Manager for eth0 device' >> /usr/share/applications/eth0.desktop ;
echo 'Comment="eth0" can be activated and disactivated' >> /usr/share/applications/eth0.desktop ;
echo "Exec=bash -c 'mkdir -p /var/.tmp ; chmod 0600 /var/.tmp ; Xdialog --msgbox \"A C T I V E...D E V I C E: [\`netstat -i | grep -i -o 'eth0'\`]\n\nTo stop communication with other PCs: -=To stop eth0=-\n\nTo launch communication with other PCs again: -=To activate eth0 again=-\" 12 74 --backtitle \"Choice\" --title \"Variants\" --no-tags --radiolist \"Choose: start or stop device -=\`ifconfig -a | grep -i -o 'eth0'\`=- \" 17 70 10 \"rxvt --geometry 139x49 -e dialog --msgbox "'\"\`netstat --numeric-ports -apA inet\`\"'" 47 135\" \"To see Open Ports\" off \"exec net-setup.sh\" \"To activate eth0\" off \"ifconfig eth0 down\" \"To stop eth0\" ON \"exec /etc/rc.d/rc.network start\" \"To activate eth0 again\" off 2>/var/.tmp/.1_eth0 ; chmod 0100 /var/.tmp/.1_eth0 ; sh /var/.tmp/.1_eth0 ; rm /var/.tmp/.1_eth0 ; xmessage \"-=\`netstat -i | grep -i -o 'eth0'\`=- device is active\" ; rmdir --ignore-fail-on-non-empty /var/.tmp'" >> /usr/share/applications/eth0.desktop ;
echo 'Terminal=false' >> /usr/share/applications/eth0.desktop ;
echo 'Type=Application' >> /usr/share/applications/eth0.desktop ;
echo 'Categories=no' >> /usr/share/applications/eth0.desktop ;
echo 'GenericName=Manager for eth0 device' >> /usr/share/applications/eth0.desktop ;
echo 'Icon=/usr/share/icons/hicolor/48x48/apps/xfce4-taskmanager_48x48_v6.png' >> /usr/share/applications/eth0.desktop ;
#
#echo '<icon x="416" y="620" label="Eth0">/usr/share/applications/eth0.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="928" y="284" label="Eth0">/usr/share/applications/eth0.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#
if [ ! `ps -eocomm | grep jwm | head -1` ] ; then
echo "Icons -=UMountDVD=-, -=ALSAsnd=-, -=AlsaQk=- and -=Eth0=- have been created." ;
else
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
xmessage 'Icons -=UMountDVD=-, -=ALSAsnd=-, -=AlsaQk=- and -=Eth0=- have been created.' `jwm -restart` ;
fi
|
Edit: 2012, aug 14.
|
A script's content can be copied into text editor by means of <Quote> mode.
| Description |
Example. |
| Filesize |
20.54 KB |
| Viewed |
380 Time(s) |

|
| Description |
Next new version. |
| Filesize |
3.85 KB |
| Viewed |
455 Time(s) |

|
| Description |
Example. |
| Filesize |
16.24 KB |
| Viewed |
462 Time(s) |

|
| Description |
Example. |
| Filesize |
15.98 KB |
| Viewed |
462 Time(s) |

|
| Description |
New version. |
| Filesize |
4.77 KB |
| Viewed |
482 Time(s) |

|
| Description |
New not new version. |
| Filesize |
4.78 KB |
| Viewed |
532 Time(s) |

|
| Description |
Old version. |
| Filesize |
3.98 KB |
| Viewed |
781 Time(s) |

|
| Description |
|
| Filesize |
1.76 KB |
| Viewed |
776 Time(s) |

|
| Description |
|
| Filesize |
1.04 KB |
| Viewed |
784 Time(s) |

|
| Description |
|
| Filesize |
1.74 KB |
| Viewed |
777 Time(s) |

|
Last edited by postfs1 on Tue 14 Aug 2012, 05:08; edited 8 times in total
|
|
Back to top
|
|
 |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Sat 19 Nov 2011, 17:49 Post subject:
Repair of icons in W.M.. OS: "Quirky Linux 1.40" Subject description: Addition to topic "Several icons for JWM." |
|
If standard icons have been lost then there is a chance to get them back.
| Quote: |
ICONS--Variant_of_First_Boot.sh
| Code: |
#!/bin/bash
#
sed -i".tmp" '/share\/backgrounds/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"play"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"install"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"email"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"calc"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"connect"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"plan"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"file"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"help"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"mount"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"browse"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"write"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"console"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"edit"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"draw"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"setup"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"chat"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"paint"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"lock"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"trash"/d' /root/Choices/ROX-Filer/PuppyPin ;
sed -i".tmp" '/"zip"/d' /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#
#
sed -i".tmp" '/pinboard\//d' /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
sed -i".tmp" '/\/pinboard/d' /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#
if [ -x `grep -i "<pinboard>" /root/Choices/ROX-Filer/PuppyPin` ] ; then
cat /root/Choices/ROX-Filer/PuppyPin | \
sed -e 's/<?xml version="1.0"?>/<?xml version="1.0"?>\
<pinboard>/' > /root/Choices/ROX-Filer/PuppyPin ;
fi ;
sleep 1s ;
#
ln -sf /usr/share/backgrounds_original/ORIGINAL-default.jpg /usr/share/backgrounds/default.jpg ;
#
echo '<backdrop style="Stretched">/usr/share/backgrounds/default.jpg</backdrop>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="96" y="284" label="play">/usr/local/bin/defaultmediaplayer</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="224" y="32" label="install">/usr/sbin/dotpup</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="96" y="200" label="email">/usr/local/bin/defaultemail</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="96" y="116" label="calc">/usr/local/bin/defaultspreadsheet</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="32" y="368" label="connect">/usr/local/apps/Connect</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="32" y="284" label="plan">/usr/local/bin/defaultcalendar</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="32" y="32" label="file">/usr/local/bin/rox</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="96" y="32" label="help">/usr/sbin/puppyhelp</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="160" y="32" label="mount">/usr/sbin/pmount</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="32" y="200" label="browse">/usr/local/bin/defaultbrowser</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="32" y="116" label="write">/usr/local/bin/defaultwordprocessor</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="416" y="32" label="console">/usr/bin/urxvt</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="352" y="32" label="edit">/usr/local/bin/defaulttexteditor</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="224" y="116" label="draw">/usr/local/bin/defaultdraw</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="288" y="32" label="setup">/usr/sbin/wizardwizard</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="160" y="200" label="chat">/usr/local/bin/defaultchat</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="160" y="116" label="paint">/usr/local/bin/defaultpaint</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="992" y="32" label="lock">/usr/local/apps/Xlock</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="992" y="200" label="trash">/usr/local/apps/Trash</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="992" y="116" label="zip">/usr/local/apps/PupZip</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#
echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
#icon_switcher
rox -p=/root/Choices/ROX-Filer/PuppyPin
fixmenus
xmessage "The ICONs have been reorganized." `jwm -restart`
|
Edit: 2011, nov 19.
|
A script's content can be copied into text editor by means of <Quote> mode.
_________________
- I don't know why laboratories are named a hospitals.
- The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.
|
|
Back to top
|
|
 |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Tue 14 Aug 2012, 05:24 Post subject:
|
|
Addition
| Quote: |
Inst_Icons--Geany_Pmount_ROX_Urxvt--ManyDisks.sh
| Code: |
#!/bin/bash
#
sed -i '/\/pinboard/d' /root/Choices/ROX-Filer/PuppyPin ;
#
# # #
#
sed -i '/"Geany"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
#echo '<icon x="928" y="620" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
# # #
#
#echo '<icon x="608" y="704" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '<icon x="672" y="704" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '<icon x="736" y="704" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '<icon x="800" y="704" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '<icon x="864" y="704" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="928" y="704" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
#
#
#
# # #
#
sed -i '/"Pmount"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
echo '<icon x="544" y="620" label="Pmount">/usr/share/applications/Pmount-mount-unmount-drives.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
# # #
#
###echo '<icon x="544" y="704" label="Pmount">/usr/share/applications/Pmount-mount-unmount-drives.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
#
#
#
# # #
#
sed -i '/"ROX"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
echo '<icon x="480" y="620" label="ROX">/usr/share/applications/ROX-Filer-file-manager.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
# # #
#
###echo '<icon x="480" y="704" label="ROX">/usr/share/applications/ROX-Filer-file-manager.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
#
#
#
# # #
#
sed -i '/"Urxvt"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
echo '<icon x="416" y="620" label="Urxvt">/usr/share/applications/Urxvt-terminal-emulator.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
# # #
#
###echo '<icon x="416" y="704" label="Urxvt">/usr/share/applications/Urxvt-terminal-emulator.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#
#
#
#
# # #
#
if [ ! `ps -eocomm | grep jwm | head -1` ] ; then
echo "Icons -=ROX=-, -=Urxvt=-, -=Pmount=- and -=Geany=- have been created." ;
else
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
yaf-splash -bg cyan -fg blue -text "`echo -e ' ICONS:\n -=ROX=-\n -=Urxvt=-\n -=Pmount=-\n -=Geany=-\nhave been created.'`" `jwm -restart` ;
fi
|
Edit: 2012, aug 14.
|
Addition
| Quote: |
Inst_Icons--Geany_Pmount_ROX_Urxvt--SmallAmountOfDisks.sh
| Code: |
#!/bin/bash
#
sed -i '/\/pinboard/d' /root/Choices/ROX-Filer/PuppyPin ;
#
# # #
#
sed -i '/"Geany"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
#echo '<icon x="928" y="620" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
# # #
#
#echo '<icon x="608" y="704" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '<icon x="672" y="704" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '<icon x="736" y="704" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '<icon x="800" y="704" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '<icon x="864" y="704" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="928" y="704" label="Geany">/usr/share/applications/Geany-text-editor.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
#
#
#
# # #
#
sed -i '/"Pmount"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
###echo '<icon x="544" y="620" label="Pmount">/usr/share/applications/Pmount-mount-unmount-drives.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
# # #
#
echo '<icon x="544" y="704" label="Pmount">/usr/share/applications/Pmount-mount-unmount-drives.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
#
#
#
# # #
#
sed -i '/"ROX"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
###echo '<icon x="480" y="620" label="ROX">/usr/share/applications/ROX-Filer-file-manager.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
# # #
#
echo '<icon x="480" y="704" label="ROX">/usr/share/applications/ROX-Filer-file-manager.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
#
#
#
# # #
#
sed -i '/"Urxvt"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
###echo '<icon x="416" y="620" label="Urxvt">/usr/share/applications/Urxvt-terminal-emulator.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#
# # #
#
echo '<icon x="416" y="704" label="Urxvt">/usr/share/applications/Urxvt-terminal-emulator.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#
#
#
#
# # #
#
if [ ! `ps -eocomm | grep jwm | head -1` ] ; then
echo "Icons -=ROX=-, -=Urxvt=-, -=Pmount=- and -=Geany=- have been created." ;
else
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
yaf-splash -bg cyan -fg blue -text "`echo -e ' ICONS:\n -=ROX=-\n -=Urxvt=-\n -=Pmount=-\n -=Geany=-\nhave been created.'`" `jwm -restart` ;
fi
|
Edit: 2012, aug 14.
|
 |
| Description |
|
| Filesize |
362.62 KB |
| Viewed |
292 Time(s) |

|
_________________
- I don't know why laboratories are named a hospitals.
- The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.
|
|
Back to top
|
|
 |
|
|
|
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
|