Question about Shell Script (#!/bin/sh)
Figured a way to do the scrollable checklist with a createcheckbox function within a scrollable vbox
- Attachments
-
- gnewpet-checkbox.png
- (65.1 KiB) Downloaded 771 times
I select "Batch Mode" then clicking on "Batch Copy" - nothing happens.
Output after running gnewpet:
Output after running gnewpet:
Code: Select all
** (gtkdialog:31852): WARNING **: create_tree(): A TreeView with no label.
**
ERROR:automaton.c:1833:connect_tree_signals: assertion failed: (tree_view != NULL && Attr != NULL)
Aborted
sh-4.1#
Yes, this is exactly, what i'd meant and it looks good. Does it work or is it just step 1?jpeps wrote:Figured a way to do the scrollable checklist with a createcheckbox function within a scrollable vbox
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
Inserting "<label>Batch Pets</label>" after <tree selection-mode="3"> inside your gnewpet script executes the batch window - but it is empty.
Clicking on "Select Pets" opens another empty window.
Clicking on "Select All" opens a window with all files listed.
Clicking OK inside full list window executes nothing.
Batch list in /tmp/batch is existing
Clicking on "Select Pets" opens another empty window.
Clicking on "Select All" opens a window with all files listed.
Clicking OK inside full list window executes nothing.
Batch list in /tmp/batch is existing
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
Here's a version using gtkdialog checkboxes:
version 5.1 Put checklist in it's own scrollable vbox. Thanks RSH
version 5.2 1/23/12 Restored file report function
version 5.1 Put checklist in it's own scrollable vbox. Thanks RSH
version 5.2 1/23/12 Restored file report function
- Attachments
-
- gnewpet-5.2.pet
- (2.74 KiB) Downloaded 602 times
-
- gnewpet.png
- (78.54 KiB) Downloaded 886 times
Last edited by jpeps on Mon 23 Jan 2012, 09:15, edited 3 times in total.
Yes, and this one works out of the box (something is wrong with 4.1?)Here's a version using gtkdialog checkboxes:
I did not have a look into the 5.0 script yet, but i must say:
Great Work!
Fantastic!
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
Yes, by having a look into previous scripts, i meant to know this already.jpeps wrote:Works on my end. If you hack the script, all bets are off.
However: great work, again.
Maybe you can go to the GtkDialog Development Section agin, post your .pet or script and point out that it is necessary to get this one - with a handle like the tree-item is handled (to get easily out the selected items just like the tree-item gives it to the programmer).
This would be a nice and useful GtkDialog-Feature...
Edit: maybe calling it CheckboxTree.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
Code: Select all
#echo -e "$(Xdialog --title "$WTITLE $WMTUSER" --stdout --no-cancel --editbox /tmp/applist_tmp 16 50)" >/usr/share/applications-desktop-files/$SPATH/applist-new
EdNewList="$(Xdialog --title "$WTITLE $WMTUSER" --stdout --no-cancel --editbox /tmp/applist_tmp 16 50)"
#echo -e $EdNewList >/usr/share/applications-desktop-files/$SPATH/applist-new
# remove old list
if [ "$EdNewList" != "" ]; then
rm /usr/share/applications-desktop-files/$SPATH/applist
fi
# put into file
for i in $EdNewList
do
if [ "$EdNewList" != "" ]; then
echo -e $i >> /usr/share/applications-desktop-files/$SPATH/applist
fi
done
f.e.:
file1
file2
file3...
Also the batch file (here=applist) will stay and will not loose it's data when closing the window (not using ok button)
Maybe good to know?
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
The output from batch selection already remains in /tmp
Code: Select all
/tmp $ cat batch-list
CPUtemp_usage-2.0
flashplayer
Could you please add your gtkdialog apps to the index of programs using gtkdialog?
Thanks.
Thanks.
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Wouldn't it be better to have them all in one list,vs tacked on arbitrarily asdisciple wrote:Could you please add your gtkdialog apps to the index of programs using gtkdialog?
Thanks.
replies in a thread somewhere?
Yeah, and categorised or at least listed alphabetically. In a way a wiki page would be better. But I figured just collecting them all in one place was a good start.
And the advantage of the forum thread is that if they want people can keep track of new ones as they are added.
And the advantage of the forum thread is that if they want people can keep track of new ones as they are added.
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
rox got hang when i go to directory /proc
hi everyone,
i want to ask you a question.
i make a pet that can setting my rox. actually, this pet is a small part of my big .pet. i just want to make easy, because every come a new varian puppy linux, i download it, try it, and then i must setting everything i want and that is eat my time. so i make an easy pet to setting that.
then my problem was appear when i use another puppy (not lupu, in my case is dpup exprimo). after i install my pet, rox got hang if i go to directory /proc.
i have 2 files in my pet,there are:
can anyone explain that?
thanks.
i want to ask you a question.
i make a pet that can setting my rox. actually, this pet is a small part of my big .pet. i just want to make easy, because every come a new varian puppy linux, i download it, try it, and then i must setting everything i want and that is eat my time. so i make an easy pet to setting that.
then my problem was appear when i use another puppy (not lupu, in my case is dpup exprimo). after i install my pet, rox got hang if i go to directory /proc.
i have 2 files in my pet,there are:
Code: Select all
/root/.config/rox.sourceforge.net/ROX-Filer/menus2
/root/.config/rox.sourceforge.net/ROX-Filer/Options
thanks.
- Attachments
-
- aku.pet
- (2.51 KiB) Downloaded 516 times
Re: rox got hang when i go to directory /proc
I encounted this when building D-lite puppy -recobayu wrote:hi everyone,
i want to ask you a question.
i make a pet that can setting my rox. actually, this pet is a small part of my big .pet. i just want to make easy, because every come a new varian puppy linux, i download it, try it, and then i must setting everything i want and that is eat my time. so i make an easy pet to setting that.
then my problem was appear when i use another puppy (not lupu, in my case is dpup exprimo). after i install my pet, rox got hang if i go to directory /proc.
i have 2 files in my pet,there are:can anyone explain that?Code: Select all
/root/.config/rox.sourceforge.net/ROX-Filer/menus2 /root/.config/rox.sourceforge.net/ROX-Filer/Options
thanks.
There was / maybe still is a bug i think with rox-filer that if you had thumbnail images enabled in rox options when went to /proc directory rox-filer would hang - solution was to down-grade to an earlier version of rox-filer.
a little latex and bash language
Hi Everyone,
I want to share just a little things that i've found just now. I make a combination of bash and latex. I install latex by emil from here: (thanks emil)
http://murga-linux.com/puppy/viewtopic.php?t=61226
Then i make a script like this, just playing a small things..
That's all. Now, I have a quadratic equation exercise.
Anyone want to play around?
I want to share just a little things that i've found just now. I make a combination of bash and latex. I install latex by emil from here: (thanks emil)
http://murga-linux.com/puppy/viewtopic.php?t=61226
Then i make a script like this, just playing a small things..
Code: Select all
#!/bin/sh
echo "\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\begin{document}
Hi guys, I have an exercise for you.. Can you answer this question?
">recobayu.tex
for i in {1..15};do
echo "$i.">>recobayu.tex
x1=$((RANDOM%10+1))
x2=$((RANDOM%10+1))
#x" + bx + c =0
b=-$(($x1+$x2))
c=$(($x1*$x2))
echo "$ (x-$x1)(x-$x2)=0 \Leftrightarrow x^2 $((b)) x + $c =0 $
">>recobayu.tex
done
echo "\end{document}">>recobayu.tex
pdflatex recobayu.tex recobayu.pdf
evince recobayu.pdf
Anyone want to play around?
If I want to list all my files in bin, I write this code:
I realize that this code:
return: /usr/bin.
My question: Can we add all files in directory in $PATH to the file 'databaseku'?
Thank You.
Recobayu
Code: Select all
ls /bin >databaseku
ls /usr/bin >>databaseku
ls /usr/local/bin >> databaseku
ls /sbin>>databaseku
ls /usr/sbin>>databaseku
Code: Select all
echo $PATH|cut -d ":" -f2
My question: Can we add all files in directory in $PATH to the file 'databaseku'?
Thank You.
Recobayu
This will list all files in $PATH to the file.
Remove # header and # footer line is you don't want it.
Code: Select all
for p in ${PATH//:/ }; do
echo $p; echo ===== # header
ls $p
echo ----- # footer
done > databaseku
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]
- MochiMoppel
- Posts: 2084
- Joined: Wed 26 Jan 2011, 09:06
- Location: Japan
or
Lists also hidden files.
Code: Select all
find ${PATH//:/ } > databaseku
We can print our main menu on jwm by this code:
How to print the submain and save it into separate files based on the main name?
example:
in Desktop.txt:
Desktop drive icon manager
Desktop drive icons manager
FlSynclient configure your touchpad
Font Manager
JWM Window Manager Settings
PupClockset manager
Sticky JWM
Chtheme GTK/Qt theme chooser
Configure Xlock screen locking
Desktop icon switcher
JWM Theme Maker
Pcur cursor selector
Pwallpaper background image chooser
Chooselocale country localisation
Psync Time Server Synchronisation
Set date and time
Set timezone
in System.txt:
Boot Manager
CPU Frequency Scaling Tool
HardInfo hardware information
IPInfo network information
Multiple monitors settings
Pprocess process manager
Pup-SysInfo system information
PupScan interface information
Htop System Process Viewer
Pschedule task on time
Puppy Event Manager
Task Manager
GParted partition manager
Grub4Dos bootloader config
Legacy GRUB Config 2013
CUPS manage printing
GtkLP file printing
GtkLPQ printer queue manager
Format floppy disk
Login and Security Manager
Xlock lock screen
etc..
I try use
I try use
but it print All submain, i can not save into different name based on the main menu.
Thanks
Code: Select all
grep "<Menu label" /root/.jwmrc|cut -d'"' -f2
example:
in Desktop.txt:
Desktop drive icon manager
Desktop drive icons manager
FlSynclient configure your touchpad
Font Manager
JWM Window Manager Settings
PupClockset manager
Sticky JWM
Chtheme GTK/Qt theme chooser
Configure Xlock screen locking
Desktop icon switcher
JWM Theme Maker
Pcur cursor selector
Pwallpaper background image chooser
Chooselocale country localisation
Psync Time Server Synchronisation
Set date and time
Set timezone
in System.txt:
Boot Manager
CPU Frequency Scaling Tool
HardInfo hardware information
IPInfo network information
Multiple monitors settings
Pprocess process manager
Pup-SysInfo system information
PupScan interface information
Htop System Process Viewer
Pschedule task on time
Puppy Event Manager
Task Manager
GParted partition manager
Grub4Dos bootloader config
Legacy GRUB Config 2013
CUPS manage printing
GtkLP file printing
GtkLPQ printer queue manager
Format floppy disk
Login and Security Manager
Xlock lock screen
etc..
I try use
I try use
Code: Select all
grep Program /root/.jwmrc|cut -d'"' -f2
Thanks