DEV Community

HaxNet
HaxNet

Posted on

Kill Focus Window on Startup

This is for Arch Linux users. I am sure you can use this for other Linux distros.

So I use ClickUp and have it startup at boot. One thing is that the main windows is always popping up and I have to manually kill it which is not something I am interested in doing.

First, install wmctrl

I recommend reading the manual for wmctrl, pretty straightforward.

In my i3 config file

exec_always --no-startup-id sleep 2 && clickup
exec_always --no-startup-id sleep 5 && wmctrl -c 'ClickUp'
Enter fullscreen mode Exit fullscreen mode

pretty much that is it. Pretty easy to do so.

I tried the xdotool and that didn't work for me.

Top comments (0)