Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocklet to cycle through multiple blocklets configurations #233

Open
Aster89 opened this issue May 8, 2019 · 0 comments
Open

Blocklet to cycle through multiple blocklets configurations #233

Aster89 opened this issue May 8, 2019 · 0 comments

Comments

@Aster89
Copy link
Contributor

Aster89 commented May 8, 2019

Since my screen is quite small and the number of blocklets I'd like to use is large enough, I think that it'd be nice to have a blocklet which allows to cycle through a list of different configurations of the i3blocks bar.

For instance, if the bar initially looks like
(cycle through bars(disk space(battery(ddmmyyyy(clock|
clicking on the "cycle through bars" blocklet could transforms the bar to
(cycle through bars(spotify(wifi(arch update(volume(keyindicator|
Clicking again could change it to some other configuration.

The most obvious way I think of in order to achieve this, is to have a blocklet which, upon click, really edits the ~/.config/i3/i3blocks by means of (the simplest think I can think of) a sed script which exploits some comment placeholders in that file.

Actually another strategy could be that ~/.config/i3/i3blocks be a symbolic link to one of the actual configuration files, and that this new blocklet simply links the link to successive configurations file in cycle. I think this would be faster, but would mean code duplication (since I could want to have the clock blocklet in every configuration).

Can I have some opinion about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant