xdotool is just for example. you can use xprop instead
xprop -root 32x '\t$0' _NET_ACTIVE_WINDOW | cut -f 2
--no-focus with --on-top and --timeout - good for different kind of notifications
moreover this option may be usefull for creating button bars based on --form dialog
В Mon, 23 Nov 2015 06:53:44 -0800 (PST)
Oliver Häßler <
o.hae...@gmail.com> писал:
> Hi Victor,
>
> that could work.. I just need to get a build for my RHEL for xdotool.. so
> far it i not in the repos :D
>
> what is the purpose of a window that has constantly no focus? just asking?
>
> thanks
> Oliver
>
> On Monday, November 23, 2015 at 3:09:05 PM UTC+1, Victor Ananjevsky wrote:
> >
> >
> > hi
> >
> > i'm not sure that this will very useful
> >
> > for some rare cases you can use workarounds like this one:
> >
> > XID=$(xdotool getwindowfocus) # get XID of currently active window
> > yad --text=sample &
> > sleep 0.2 # wait yad window
> > wmctrl -i -a $XID # restore focus
> >
> >
> > В Mon, 23 Nov 2015 04:56:08 -0800 (PST)
> > Oliver Häßler <
o.hae...@gmail.com <javascript:>> писал:
> >
> > > I am playing around with the new --no-focus option in yad 0.32
> > >
> > > The option is great however the option prevents the window from getting
> > the
> > > focus at all, so even if I click on the window it is not getting the
> > focus
> > > back.
> > >
> > > Would it be possible to use the --no-focus option just for the start of
> > the
> > > window, but clicking on it gives the focus back to the window?
> > >
> > > --
> > > 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 <javascript:>.
> > Victor Ananjevsky <
anan...@gmail.com <javascript:>>