Search found 114 matches

by misko_2083
Tue 07 Jul 2020, 17:08
Forum: Programming
Topic: heredocs ftp and variables
Replies: 5
Views: 2063

Nice. Remember to add -r to read for backslash. I didn't try with ftp. This is the script I used to test: #!/bin/bash function ftpdo (){ local _HOST _PORT _ABUSER _PASS _EXEC1 _EXEC2 FIELD for FIELD in _HOST _PORT _USER _PASS _EXEC1 _EXEC2 do read -s -r ${FIELD} echo "${FIELD}=${!FIELD}" d...
by misko_2083
Tue 07 Jul 2020, 16:45
Forum: Programming
Topic: Code Tray
Replies: 8
Views: 22511

Thanks for the improvements, misko Fred is runc function used at all? Wel, I initially had different functionality in mind, but yes, if accidentally clicking the icon while nothing is highlighted, you can highlight some code , then type runc to run it in the terminal that has appeared (and again by...
by misko_2083
Tue 07 Jul 2020, 12:13
Forum: Programming
Topic: heredocs ftp and variables
Replies: 5
Views: 2063

Shortly after posting I found a solution. I had to double quote the variaables within the EOF statement. But it's not perfect .... spaces are treated as seperate arguments when reaching the function. Send the fields as a file to the function. function ftpdo (){ local field _HOST _PORT _USER _PASS _...
by misko_2083
Thu 02 Jul 2020, 21:10
Forum: Programming
Topic: Code Tray
Replies: 8
Views: 22511

Fred is runc function used at all? :?: I've got some changes in the script: - Changed the terminal field to CBE and added some default terminal commands. - Added an option to replace non-breaking characters to regular spaces. Because Eugene asked here: https://unix.stackexchange.com/questions/596260...
by misko_2083
Mon 01 Jun 2020, 20:11
Forum: Programming
Topic: Font Preview
Replies: 78
Views: 12631

Fifth update here . It incorporates MochiMoppel's script (thanks MochiMoppel) with some additions. This is my last planned update for this script. Thanks everyone for the fun! I've fixed your fourth script and added some most recent changes although not all. A little safer method to read conf file....
by misko_2083
Wed 27 May 2020, 17:33
Forum: Programming
Topic: Font Preview
Replies: 78
Views: 12631


by misko_2083
Mon 25 May 2020, 19:11
Forum: Programming
Topic: Font Preview
Replies: 78
Views: 12631

Dear Misko, As for cyrillic, I have all Serbian chars in my latest version (posted near the bottom of page one, where I list the mods under UPDATES), and Bulgarian, Ukrainian, Russian and Belarusian. And I think I have all Polish, Czech and Croatian. I know there is an important "J" in Se...
by misko_2083
Mon 25 May 2020, 14:50
Forum: Programming
Topic: Font Preview
Replies: 78
Views: 12631

Dear step, Nice job. I like that scaling button - it is useful. I modded some of the character categories in my latest, adding a few missing cyrillic glyphs. I think we are getting somewhere. :) Thanks. With kind regards, vovchik ^Cyrillic Ј ј and Ћћ are missing. Interesting effect when --tooltip-c...
by misko_2083
Fri 22 May 2020, 23:02
Forum: Programming
Topic: Listing all color names
Replies: 42
Views: 17071

Definitely a quoting issue. :wink: %s returns the entire row with all the pango markup <span background='slate gray'> </span> slate gray What works for me is --dclick-action='bash -c "gxmessage \"%s\""' also single quotes around background markup printf "<span background='%s...
by misko_2083
Fri 22 May 2020, 08:55
Forum: Programming
Topic: Font Preview
Replies: 78
Views: 12631


by misko_2083
Fri 22 May 2020, 08:40
Forum: Programming
Topic: Listing all color names
Replies: 42
Views: 17071

Yad list can be used to display color. Either with@fore@ or @back@ column or with this trick with the pango markup Nice trick. I like the clean look of the yad list. Unfortunately the use of pango can lead to unexpected results. I tried to use --dclick-action --dclick-action='bash -c "gxmessag...
by misko_2083
Thu 21 May 2020, 19:18
Forum: Programming
Topic: Font Preview
Replies: 78
Views: 12631

fredx some fonts are displayed incorrectly. "1942 report" nad "Signerica Medium" Most are correct but some default to system font. I've tried to make a yad version most work but Signerica Medium and some other don't. Font Manager application displays all correctly so I'm using th...
by misko_2083
Wed 20 May 2020, 18:40
Forum: Programming
Topic: Listing all color names
Replies: 42
Views: 17071

Yad list can be used to display color. Either with@fore@ or @back@ column or with this trick with the pango markup: printf '<span background="%s">\t\t</span>\n' "$col" | yad --list --column=color https://developer.gnome.org/pygtk/stable/class-pangocolor.html nut the color doesn't...
by misko_2083
Sun 19 Jan 2020, 22:55
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 335523

OK.....I should read the manpage ... finally! :roll: Noooo! Don't do it! If my calculations are correct, there is 89% chance you'll cause a blizzard via butterfly effect... :wink: https://en.wikipedia.org/wiki/Butterfly_effect here's a video of my fancy yad alarm with at command: https://www.youtub...
by misko_2083
Sun 01 Dec 2019, 21:19
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 335523

@misko_2083 Don't laugh: I didn't understand because in French, the word "relative" can be understood as the opposite of "absolute" whereas in English, it means "which is related to"! :D We call them false or fake friends! :wink: Cheers. English, French are two crazy l...
by misko_2083
Sun 01 Dec 2019, 15:24
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 335523

@Agrolemon, At Sunset, at dawn, at full moon, tomorrow afternoon, at lunchtime, when the fat lady sings...
Well, something like that :lol:
by misko_2083
Sun 01 Dec 2019, 12:50
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 335523

Hi all, Re: alarm script, just to let you know, I'm struggling :wink: with it, trying to keep support for multiple alarms set and at the same time adding extra options, such as canceling and stopping the alarm (from tray) makes it extra complicated, but I'll probably come up with something within t...
by misko_2083
Sat 30 Nov 2019, 12:21
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 335523

Fredx, If you move the current time to the window title bar, can you think of anything that you would use the first tab for? #!/bin/bash win_class="timer_class" TITLE="Alarm - Current Time" export A_ICON="/tmp/alarm1a.svg" export B_ICON="/tmp/alarm1b.svg" expo...
by misko_2083
Fri 29 Nov 2019, 16:00
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 335523

Argolance wrote:Bonjour,
misko_2083 is like Lucky Luck, he shoots faster than his shadow 8)
Watch out Dalton brothers. ;)
by misko_2083
Thu 28 Nov 2019, 13:15
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 335523

For example... :) Thanks, but how you get that (left side) animated icon in the system tray ? Fred #!/bin/bash exec 3> >(yad --notification --listen) while sleep 2; do echo "icon:gtk-ok" >&3 sleep 2 echo "icon:gtk-yes" >&3 sleep 2 echo "icon:gtk-no" >&3 don...