serhii.net

In the middle of the desert you can say anything you want

07 Jun 2024

Screenshots in qtile with maim

maim is supposed to be the “better scrot”1

# screenshot and put into clipboard
 maim -s | xclip -selection clipboard -t image/png -i

In qtile you can’t do that, because | is a shell construct2.

Solution: do it in a shell:

CommandSet(commands={
	#...
	"S/clipboard": "bash -c \"maim -s | xclip -selection clipboard -t image/png -i\"",
Nel mezzo del deserto posso dire tutto quello che voglio.