Search found 114 matches

by misko_2083
Thu 24 May 2018, 11:44
Forum: Programming
Topic: GtkDialog - tips
Replies: 1504
Views: 913964

Save to file, chmod +x file, run: dash file, see: hi there done sub_func() { foo; echo "@"; } foo() { echo $VARIABLE; } VARIABLE=hi; export VARIABLE #Main body case $1 in @*) sub=sub_${1#@}; shift; $sub "$@"; exit $? ;; # relay sub_func'ions # add cases for typical script option...
by misko_2083
Tue 22 May 2018, 11:40
Forum: Programming
Topic: Bash If...then syntax driving me nuts!
Replies: 18
Views: 2827

For example, having this thread open and I do: xdotool search --name "murga-linux.com" There's no output, but this does give me the window ID: xdotool search --name "Puppy Linux Discussion Forum :: View topic - Bash If...then syntax driving me nuts!" Or just: xdotool search --na...
by misko_2083
Tue 22 May 2018, 03:05
Forum: Programming
Topic: Bash If...then syntax driving me nuts!
Replies: 18
Views: 2827

Does e.g. xdotool search --name "yahoo.com" give any output for you ? If the browser's active tab has "yahoo.com" in its name, I get 3984588. The problem is that when I reboot Puppy and run the same command I get a different id number. I tried using different search options like...
by misko_2083
Thu 10 May 2018, 22:17
Forum: Programming
Topic: Busybox hexdump bug
Replies: 4
Views: 1366

Re: Busybox hexdump bug

busybox 1.22.1 busybox hexdump: b echo -en "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D" | busybox hexdump -e '1 "%_c\n"' \0 001 002 003 004 005 006 \a \b \t \n \v \b \r busybox 1.22.1 busybox od: f echo -en "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\...
by misko_2083
Wed 25 Apr 2018, 01:22
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337818

Thanks Geoffrey, Misko and Mochi! I will continue testing these solutions and making adjustments to suit my needs. stem's office is stationary! I think I got it, Mochi's way of getting the window geometry via xwininfo was perfect. Combined with this script it also places window on the last workspac...
by misko_2083
Sat 21 Apr 2018, 09:37
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337818

The sayonary function writes the geometry to a tmpfile and then closes the dialog with an exit code 0 (SIGUSR1). Strangely yad seems to ignore an exit command, so I had to resort to kill . Could be related to the yad behavior to keep the dialog open when a button with a non-numeric ID is pressed. T...
by misko_2083
Fri 20 Apr 2018, 23:33
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337818

How to re-open a yad gui in the same last location? In other words how to export yad gui location to a variable/file and re-open same gui using that geometry? Not hard-coded but according to last moved to location? Here you go buddy: just change this line DimFile="/home/misko/Desktop/yadXYWH&q...
by misko_2083
Thu 05 Apr 2018, 19:22
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337818

Well I know it is impossible ... but this is yad tips, afterall! BTW could you explain how NOTIF_ICON=$? wait $NOTIF_ICON functions and where else it can be used for example yad --list & cheers stemsee Yes certainly. you probably ment these lines from the previous script. I needed to set the ic...
by misko_2083
Wed 04 Apr 2018, 19:15
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337818

@miskY Beautiful artistic 'painting'. Which program did you use to achieve that? I have a friend called beverly greene who also has an account on deviantart. How about a yad paint!?! I use Gimp mostly. Making a paint application with yad is impossible. Maybe some basic image manipulation like resiz...
by misko_2083
Mon 02 Apr 2018, 22:41
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337818

I changed the CURVOL variable (check for pid of pulseaudio) How it was, the current volume shows 0 for me if pulseaudio is not running. Now works in both cases from what I tested (also with alsa only). Very good Fred. I called you Manow as a guess because your 'handle' seemed to be in the cyrillic ...
by misko_2083
Fri 30 Mar 2018, 12:36
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337818

Freddy, you've been a busy puppy since my last login. Smile Yeah, sure, but you should check here more often, MiskY ! :) Didn't have the time to "sit" by the computer. "MiskY", that's how my nephew used to call me when he was little. :) No idea why Marc Conta called me "Man...
by misko_2083
Mon 26 Mar 2018, 17:14
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337818

See new YRadio version here: http://murga-linux.com/puppy/viewtopic.php?p=986591#986591 (merged with "Dogradio and YRadio" thread) Why ?? My interest in exploring new yad options, (e.g. --cycle-read and --paned) and attempting to provide a simple and lightweight internet radio player. Fre...
by misko_2083
Mon 12 Feb 2018, 06:18
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337818

matchpoint, there is this script
https://www.gnome-look.org/content/show ... ent=174312
I've had a quick look and it does what you need. Plus, it checks if you enter the temerature bellow the absolute zero.
by misko_2083
Tue 30 Jan 2018, 19:52
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337818

The MENU portion of this code preserves spaces for the yad menu, but when printed to the /tmp/ap file the space within quoted AP name disappears! i have tried variations of echo, printf, tee, redirections, bracketing, quoting ... but nothing I have tried works. There is one way that prints the desi...
by misko_2083
Sun 28 Jan 2018, 02:47
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337818

Here is an idea I would like to get working. mkfifo -m 755 /tmp/PIPE9 2>/dev/null exec 9<> /tmp/PIPE9 function scan (){ PATTERN=' s/^.*ESSID://p' MENU=`iwlist wlan2 scan | sed -rn "$PATTERN" | tac | tr '\n' '|'` list=`echo $MENU >/tmp/scan` echo "menu:$MENU" >&9 & } expo...
by misko_2083
Tue 17 Oct 2017, 14:01
Forum: Programming
Topic: GtkDialog - tips
Replies: 1504
Views: 913964

Guys help needed, been working with this progress bar if using the example like give in page page 1 it is working fine but after i change the action it seem the program is running on the background only the progress bar is just silence <frame Progress> <text> <label>Duplication process is happening...
by misko_2083
Tue 03 Oct 2017, 10:31
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16051

rg66 wrote: That's how the script was originally (from Saluki I think), if I remove "grep -v '\.'", it flashes 47% after it reaches 100. Can't get a working progress bar from your awk line. Oh I see it must work without terminal. If I add flush to the script this is working for me: script...
by misko_2083
Mon 02 Oct 2017, 15:11
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16051

script -q -c "stty rows 40 cols 100; mksquashfs "$t" "$z.sfs" $COMP" | while read -n 99 LINE ; do PROG=`echo $LINE | egrep '[0-9]\%' | cut -f1 -d% | awk '{print $NF}'| grep -v '\.'` echo "#$PROG%" echo $PROG done | yad --window-icon="application-x-squash...
by misko_2083
Thu 14 Sep 2017, 16:03
Forum: Programming
Topic: Drag, drop and go
Replies: 41
Views: 21734

GtkTreeView creates children when row is DND on another row. one ^two three When you drop row "two" on row "one" this is what happens: one \ two three In Gtkdialog, the expander that is suppose to expand the children, is disabled. This is probably by design. In the source ( widge...
by misko_2083
Tue 08 Aug 2017, 02:08
Forum: Programming
Topic: Building MMview, a universal file viewer
Replies: 347
Views: 155912

Mochi have you considered displaying file and folder metadata?
You can format the output of the stat command to be more human readable. Here's an example

If it's too slow maybe it could show up with F1.
Image