Comments (9)
Sure, I will try when I have some time, but I cannot promise anything :)
from i3-easyfocus.
@weilbith Thank you for opening this issue, that is an interesting use-case.
We could implement it quite easily if we just want to show the current marks of a window as additional information in the label. So, we can just have the labels and key matching as it is now and additionally query i3 for the marks of a window and display them in the label. We can introduce a cli option for this behaviour. Would that be enough?
If so, it should be possible to implement:
- Add marks information to the
window
struct: https://github.com/cornerman/i3-easyfocus/blob/master/src/win.h#L6 - Get marks from i3 ipc and write it in the above changed
window
object: https://github.com/cornerman/i3-easyfocus/blob/master/src/ipc.c#L12 - Create the text window with its label and append existing marks of the window:
https://github.com/cornerman/i3-easyfocus/blob/master/src/i3-easyfocus.c#L125
from i3-easyfocus.
Thanks for replying that fast!
This would be a nice solution yes. In fact it is maybe even better, since it allows you to jump directly. In case you only want to see the marks, it can be canceled with <Esc>
as normal I guess.
To make sure it is easily visible which window contain a mark it would be nice, if the mark information could be highlighted in any way.
from i3-easyfocus.
it can be canceled with as normal I guess
Yep that just works.
if the mark information could be highlighted in any way.
I would love that but there is not much styling going on in the code right now - so we would need to tinker with xcb and change the font style or color for the mark information. It should be possible, but maybe not as easy. Alternatively, we could just put the mark in brackets: a [mark1 mark2]
. What do you think?
from i3-easyfocus.
Yep. Then should brackets be enough. Thats also the style i3 is using for their window decoration. 👍
from i3-easyfocus.
Great. I am not sure when I will have time to work on this. Are you interested in making a PR?
from i3-easyfocus.
I would love to, but I must admit that my development knowledge for C isn't that good. I would prefer to wait for it, if this is okay for you. My PR would be just a mess I guess.
from i3-easyfocus.
I would love to, but I must admit that my development knowledge for C isn't that good. I would prefer to wait for it, if this is okay for you. My PR would be just a mess I guess. I haven't even install a linter therefore. ^^
from i3-easyfocus.
I'm just going through the list of my open issues.
I don't think I'm interested into this feature anymore. Though it would be a cool addition. In this case it could be re-opened at any time.
from i3-easyfocus.
Related Issues (20)
- Smarter keybindings HOT 3
- "cannot focus window" HOT 8
- Add an ability to move to the previous and next tabs. HOT 1
- Different key order more ergonomic? HOT 3
- Error initializing xcb after Arch xorgproto 2018.1-1 update HOT 11
- Support xft fonts HOT 1
- Configure color of labels
- Feature request: custom key set
- trouble running due to libi3ipc-glib-1.0.so.0 HOT 3
- Floating vs tiled window focus: "cannot focus window" HOT 4
- Possibility to bind to key sequences
- Grab keys with a configurable modifier
- Easy button pressing on screen? HOT 11
- Support fully customized command-line key maps
- Support sway HOT 6
- Larger font size HOT 1
- Feature request: parameter to change the font size HOT 1
- Feature request: Filter windows
- Make a release 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 i3-easyfocus.