minimize button?

162 views
Skip to first unread message

dave

unread,
May 9, 2013, 3:13:11 PM5/9/13
to yad-c...@googlegroups.com
Is there a way to get a minimize button onto a yad dialog window?

I use yad for reminders a lot and I'd like to be able to minimize the window but not close it until I've done the reminder.

I searched the man page for "minimize" but didn't find anything.


thanks,
Dave

Victor Ananjevsky

unread,
May 10, 2013, 2:26:10 AM5/10/13
to yad-c...@googlegroups.com
> --
> You received this message because you are subscribed to the Google Groups "yad-common" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to yad-common+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

this is a window manager task. you mas set unique id for dialog with --name or --class option and set a wm rule for this window

for example, for fvwm that will be next config snippet

Style MyYadDialog !Button 2, !Button 6

and when yad runs with --name=MyYadDialog option, the dialog window will have only minimize button

--
Victor Ananjevsky <anan...@gmail.com>

dave

unread,
May 10, 2013, 4:27:07 PM5/10/13
to yad-c...@googlegroups.com
thanks,

I was hoping to stick with xfce or cinnamon.  Do you know of any way to do a similar thing with them (off the top of your head)?


I've looked for a way to do it with muffin (the window manager in cinnamon) but haven't found anything yet.  I'll try looking for the same thing with xfwm4.

thanks,
Dave

dave

unread,
May 13, 2013, 11:58:58 AM5/13/13
to yad-c...@googlegroups.com
there's a thing in xfce called gnome-tweak-tool that allows you to middle click any window title bar to minimize it, and it works with any window, but not yad generated windows :(

Is there a way to force the dialog to "become a normal type window" so this would work?

dave

unread,
May 23, 2013, 7:19:18 PM5/23/13
to yad-c...@googlegroups.com
for anyone who also needs a solution to this, here's what I did that works great:
using the program easystroke I added a command:

xdotool windowminimize $(xdotool getactivewindow)

to the gesture of dragging the right mouse button down over the yad dialog I wanted minimized


works great!

Slavko

unread,
May 24, 2013, 10:03:53 AM5/24/13
to yad-c...@googlegroups.com
IMO, it the minimize button is missing, because the yad window has
window type:

WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DIALOG

I am using under the XFCE (for another windows) the devilspie, which
allows change this property. It must work for yad too.

regards

--
S pozdravom

Slavko
http://slavino.sk



--
Slavko
http://slavino.sk

signature.asc

dave

unread,
Jun 21, 2013, 4:30:00 PM6/21/13
to yad-c...@googlegroups.com
Thanks!

Just thought I'd share what specifically worked for me:

(if (contains (window_name) "YAD") (focus) (wintype "normal"))

thats the text in Yad.ds in the .devilspie folder. 
(You wouldn't have to include the (focus) part if you don't want all your dialogs coming up in focus.)
Reply all
Reply to author
Forward
0 new messages