Hacker News new | ask | show | jobs
by endre 824 days ago
i've got you covered. I made a script to achieve exactly this.
1 comments

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" ```

Well, 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.