You are not logged in.

#1 2013-05-13 08:21:38

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

xdo — Small alternative to xdotool

I wanted to do the following with xdotool: close all the windows in the current desktop with the same class as the focused window.

I ended up with (there's no windowclose action in xdotool):

xdotool search --all --desktop $(xdotool get_desktop) --class $(xprop WM_CLASS -id $(xdotool getactivewindow) | sed -n 's/.*"\([^"]\+\)".*/\1/p') windowkill %@

So I've basically written xdo so that the aforementioned task can be expressed in simple terms:

xdo close -dc

Homepage:
    https://github.com/baskerville/xdo

Package:
    https://aur.archlinux.org/packages/xdo-git


gh · da · ds

Offline

Board footer

Powered by FluxBB