Search found 114 matches

by misko_2083
Mon 07 Aug 2017, 00:46
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337790

yad internet radio player

Not so much stations in this little internet radio player, but at least got it working. Requres: mpv and yad

The radio stations are in a separate file, and should be in the same folder.
Otherwise, it can be this line in the script:

Code: Select all

export pmrp_stations="stations"
by misko_2083
Mon 19 Jun 2017, 16:40
Forum: Programming
Topic: fold-BB-NOTUSED - IT SHOULD BE USED!
Replies: 17
Views: 6061

In python that would be trivial with the textwrap library.

Code: Select all

#!/usr/bin/env python
# -*- coding: UTF-8 -*-

import textwrap

strs = str("☎
by misko_2083
Fri 16 Jun 2017, 15:43
Forum: Programming
Topic: fold-BB-NOTUSED - IT SHOULD BE USED!
Replies: 17
Views: 6061

Re: fold-BB-NOTUSED - IT SHOULD BE USED!

awk on the other hand could do the work Sure, if you try hard enough you will always find a way to make simple things complicated :lol: It depends from a perspective. Some people use the straw to drink the joghurt. Some people use the spoon to eat the soup. The point is I like complications. :lol:
by misko_2083
Fri 16 Jun 2017, 05:19
Forum: Programming
Topic: fold-BB-NOTUSED - IT SHOULD BE USED!
Replies: 17
Views: 6061

Re: fold-BB-NOTUSED - IT SHOULD BE USED!

^ fold is useless here.
awk on the other hand could do the work

Code: Select all

echo '☂☃☄★☆☇☈☉☊☋☌
by misko_2083
Sun 04 Jun 2017, 03:27
Forum: Programming
Topic: SVG/PNG Fancy Text and Logo Generator
Replies: 105
Views: 28877

@vovchik, just tried compiling your 3rd June version in Fatdog64-710 like: bacon txt2svg.bac and I get the following error: # bacon txt2svg.bac Converting 'txt2svg.bac'... 4221 Syntax error: could not parse line 4221 in file 'txt2svg.bac': "APPEND CONCAT__b2c__string_var( DUMP_GUI__b2c__string...
by misko_2083
Tue 30 May 2017, 00:06
Forum: Programming
Topic: GTKDialog: Refresh progressbar
Replies: 3
Views: 1701

Thank you very much misko_2083. And can progressbar be updated by pushing button to activate function usb__w() ? Button > usb_w > progressbar. Thanks. Yes #!/bin/bash export temp_file="$(mktemp -u --tmpdir formatusb.XXXXXXXX)" mkfifo "$temp_file" trap "rm -f $temp_file"...
by misko_2083
Sat 27 May 2017, 06:08
Forum: Programming
Topic: GTKDialog: Refresh progressbar
Replies: 3
Views: 1701

Re: GTKDialog: Refresh progressbar

Hello Similar part of this code is in my little utility. How can progressbar be updated when using function format32 ? Thanks. function format32 () { mkfs.vfat -F32 -n USB -v /dev/sdb1 } MAIN_DIALOG=' <window title="ISO2USB" icon-name="gtk3-demo" resizable="false" deco...
by misko_2083
Sat 29 Apr 2017, 23:40
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337790

Very Happy Glad to help. Hey fredx181, how would you end the youtube-dl process in the folowing script? Without "killall youtube-dl" of course. The below works for me (although probably can be better, more simple), but hey! I thought you were the expert :) Nice script, btw :wink: Me? An e...
by misko_2083
Fri 28 Apr 2017, 13:17
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337790

Hi achim, this should do it (with progressbar) I took parts from here: https://github.com/Misko-2083/scripts/blob/7ef871dd121e1cb3dbdb2b21ab61ffeeb1d86110/youtube :D Glad to help. Hey fredx181, how would you end the youtube-dl process in the folowing script? Without "killall youtube-dl" o...
by misko_2083
Thu 06 Apr 2017, 16:14
Forum: Programming
Topic: Building MMview, a universal file viewer
Replies: 347
Views: 155909

Brilliant. Love the F1 functionality (and the prompts to try it...). I notice if I click on something like /root/Startup/parcellite the view pane displays nothing. Would it be possible to display something like "symlink to.." or even just "symlink"? Also with /root/Startup/netwo...
by misko_2083
Thu 06 Apr 2017, 15:55
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337790

Re: Iconbox

Thank you for the reply MochiMoppel
Sorry about the errors. :)
I've seen the Yad source and there is only one way as you say.
by misko_2083
Mon 03 Apr 2017, 19:00
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337790

Iconbox

I have this folder /home/user/Desktop/yad_iconbox in that folder, there is a script switch.sh and a deskop file #!/bin/bash #switch.sh PARAM="$@" case $PARAM in test) if [[ -f "/home/user/Desktop/yad_iconbox/icon-on.desktop" ]]; then sed -i 's/gtk\-yes/gtk\-no/g' /home/user/Deskt...
by misko_2083
Thu 10 Nov 2016, 03:47
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337790

Dear Misko, Very nice, and nicely coded. I just added a bit of eye candy. :) With kind regards, vovchik Vovchik, it looks great. :D Just found this for the .bashrc similar to this http://worldwidemann.com/a-gui-file-picker-for-bash-in-six-lines-of-code/ # Yad gui file selector # put in .bashrc and ...
by misko_2083
Tue 08 Nov 2016, 14:27
Forum: Programming
Topic: YAD - Tips
Replies: 837
Views: 337790

multiprogress dialog tip

Hi everyone, Check my youtube-dl wrapper for youtube. works for youtube lists and videos. Has two GUIs. I figure someone will find it usefull because it supports multiple downloads at the same time and displays a multiprogress dialog. Cheers https://github.com/Misko-2083/yt-get/blob/master/yt-get ht...