Comments (3)
I am a bit unfamiliar ever since I had a last look at the code itself. But I'm gonna make a wild guess and say that this is expected.
iirc the buttons are handled by sending signals in between dwm and dwmblocks. There are so many signals that these two could use so maybe that's the reason.
Maybe checkout my patch0 that makes dwm handle this internally so these signals in between are avoided and the buttons are directly handled.
from dwmblocks-async.
Hi there, sorry for taking so long. This is definitely a dwmblocks-async
bug. dwm
actually allows you to have up to 256 click actions for a block.
@explosion-mental As I think you might be interested, here are how clicks are handled in dwm and dwmblocks:
- dwm: https://github.com/bakkeby/dwm-flexipatch/blob/master/patch/bar_dwmblocks.c#L39
- dwmblocks-async: https://github.com/UtkarshVerma/dwmblocks-async/blob/main/main.c#L204
This issue arose because I'm simply adding the value received from the signal and adding it to ASCII of '0'. This works fine for characters 0-9, but we get other ASCII characters up ahead instead of numbers.
I will be pushing changes to fix this behaviour.
from dwmblocks-async.
This should be fixed now, but feel free to reopen in case there are any issues.
from dwmblocks-async.
Related Issues (20)
- Unable to use scroll inputs (button 4/5) HOT 2
- Autostarting with dwm doesn't work HOT 2
- make install problem on Debian 12 HOT 1
- place blocks impovement HOT 8
- enabling TRAILING_DELIMITER gives error HOT 1
- issue starting dwmblocks after rewrite HOT 8
- Inconsistent logic on time intervals HOT 2
- dwmblocks does not start in Ubuntu 23.10 HOT 4
- Rectangular symbol between first two blocks HOT 3
- show a text for an amount of time when button is pressed, then show another default text HOT 3
- command not executing properly within set interval HOT 1
- dwmblocks not working as expected HOT 2
- How do I get colored status bat in dwm? HOT 1
- Problem with commenting lines in config.h HOT 1
- unable to refresh all blocks without crashing HOT 1
- Special delimiter for each block HOT 3
- icons rendering as empty squares HOT 2
- 2 finger scroll not doing anything HOT 1
- Glyphs not rendering properly HOT 6
- request: disable individual blocks
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 dwmblocks-async.