5 ms·
i've got you covered. I made a script to achieve exactly this.
by endre 3y ago
i've got you covered. I made a script to achieve exactly this.
- endre 3y agohttps://end.re/9793ad90063fb74423e4b2ff4d5b198ab576110c9bfefb0e85f48863278732cd.txt https://end.re/9793ad90063fb74423e4b2ff4d5b198ab576110c9bfef... and then trigger it with eg.: ``` bindsym $mod+x exec --no-startup-id "xargs -n1 kill -USR2 < /tmp/focus_last.pid" ```
- vladvasiliu 3y agoWell, I've covered myself with a few lines of Rust that do exactly that. By the way, there are a few subtleties which your script doesn't handle which bit me ;) Off the top of my head, some full-screen windows (mpv IIRC) behave a bit differently and would be missed.