Comments (6)
What about when you want to generate text using command
and have a response to click?
from i3blocks.
Hi @benkaiser,
FYI, now a block without interval won't be executed on startup. So adding a button is as simple as:
[clickme]
full_text=Click me!
command=notify-send "Button $BLOCK_BUTTON ($BLOCK_X, $BLOCK_Y)"
In contrast, one-shot commands must be specified as follow:
[kernel]
command=uname -r
interval=once
I hope this is intuitive and convenient enough!
from i3blocks.
Hi @benkaiser,
In #23 we agreed on a new click
command to execute when appropiate. That will be done soon!
In the meantime, you could simply check for the $BLOCK_BUTTON variable and exit silently if it is not set. In Bash, you'd add a line like test -z "$BLOCK_BUTTON" && exit
.
from i3blocks.
Hi @vivien,
Thanks for reply. I ended up trying out a different statusbar replacement (i3pystatus) and it did what I wanted. However I will look back into using i3blocks once you add the feature.
No rush of course, but could you update this issue / close it once you add the feature so I get a notification?
Thanks
from i3blocks.
Sure. I hope you'll find the best tool for your needs!
from i3blocks.
Any further on this? I want to click my i3blocks volume status to bring up pavucontrol
from i3blocks.
Related Issues (20)
- Block not showing HOT 4
- Add instructions for default scripts configuration HOT 1
- Enable utf-8 string in i3blocks
- Persistent command does not actually persist HOT 3
- How do I tell i3blocks to refresh all blocks? HOT 2
- block freezing my status bar HOT 2
- battery regexp breaks with two batteries HOT 1
- `autogen.sh` Generates a `configure` File that Tries to Call Autoconf macro `PKG_CHECK_MODULES` HOT 1
- [Feature Request] Add ticker support
- I'm having trouble getting fixed-width strings to work on i3blocks. HOT 1
- Block's character will turn into "[" character after clicked and turn normal after sway is reloaded. HOT 1
- Can't use the config variable when running the script using i3-msg -q exec myscript HOT 4
- Simple way to display title of focused window in i3blocks HOT 2
- i3blocks does not show anything except datetime HOT 3
- dmenu hang when called from i3blocks with -fn option
- Battery regex in example doesn't handle 100% HOT 2
- Trouble with setting a label with emoji via the json format HOT 1
- Any script with a 'for' loop doesn't produce any output
- How to get back monochrome icons / emojis? Weird font issue!
- Question: is running a secondary command when clicking a button with an interval possible? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i3blocks.