You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
I am trying to implement a run or raise feature on my new dwl build. I used wlrctl for all my other wayland compositors but I am getting Foreign Toplevel Management interface not found! on dwl.
How can I implement this feature, any other available tool to get it? I want to have keybindings to open apps, or focus them if they're already opened instead of opening new instances of the app.
Thank you in advance!
The text was updated successfully, but these errors were encountered:
You could extend the functionality of the namedscratchpads patch:
voidrun_or_raise_scratch(constArg*arg)
{
Client*c;
unsigned intfound=0;
/* search for first window that matches the scratchkey */wl_list_for_each(c, &clients, link)
if (c->scratchkey== ((char**)arg->v)[0][0]) {
found=1;
break;
}
if (found) {
if (VISIBLEON(c, selmon)) {
if (focustop(selmon) !=c) {
// focusfocusclient(c, 1);
}
} else {
// show/move client to current workspace/tagsc->tags=selmon->tagset[selmon->seltags];
// TODO: or change current workspace/tags to where client is located// focusfocusclient(c, 1);
}
arrange(selmon);
} else{
spawnscratch(arg);
}
}
You could extend the functionality of the namedscratchpads patch:
voidrun_or_raise_scratch(constArg*arg)
{
Client*c;
unsigned intfound=0;
/* search for first window that matches the scratchkey */wl_list_for_each(c, &clients, link)
if (c->scratchkey== ((char**)arg->v)[0][0]) {
found=1;
break;
}
if (found) {
if (VISIBLEON(c, selmon)) {
if (focustop(selmon) !=c) {
// focusfocusclient(c, 1);
}
} else {
// show/move client to current workspace/tagsc->tags=selmon->tagset[selmon->seltags];
// TODO: or change current workspace/tags to where client is located// focusfocusclient(c, 1);
}
arrange(selmon);
} else{
spawnscratch(arg);
}
}
After a couple of days fighting with this I managed to make it work. Thank you very much for your help, the only thing I had to change is:
Hello,
I am trying to implement a run or raise feature on my new dwl build. I used wlrctl for all my other wayland compositors but I am getting Foreign Toplevel Management interface not found! on dwl.
How can I implement this feature, any other available tool to get it? I want to have keybindings to open apps, or focus them if they're already opened instead of opening new instances of the app.
Thank you in advance!
The text was updated successfully, but these errors were encountered: