I3status-rust: Pacman Block: Add "on_click" option

Created on 25 Jan 2021  路  3Comments  路  Source: greshake/i3status-rust

Hello i3status-rust developers,
I'm a big fan of the status bar and wondered whether it was possible to add an on_click option to some more blocks (especially the pacman block).
A cool use-case would be something like this:

on_click: i3-sensible-terminal -e "sudo pacman -Syu"

to run the update command in a new terminal window when clicking on the status bar icon/text.

Cheers
Jan

Most helpful comment

@boi4 Pull request #1006 just got merged. Implements on_click on all blocks. Thanks to @edwin0cheng and @ammgws !

All 3 comments

@boi4 Pull request #1006 just got merged. Implements on_click on all blocks. Thanks to @edwin0cheng and @ammgws !

Hmm actually after testing with the apt block, it seems that the on_click property doesn't work. It probably has got to do with the fact that the apt block has its own on_click functionality; updating its db. I think the same can be said for the pacman block.

I forget to change the Widget name of some blocks such that the base_block missed some event, #1013 should fix it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jpeeler picture jpeeler  路  5Comments

l4l picture l4l  路  6Comments

fedario picture fedario  路  7Comments

yawpitch picture yawpitch  路  4Comments

ellsclytn picture ellsclytn  路  6Comments