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

Relabel repo as a "not i3 specific repo" #12

Open
Davoodeh opened this issue Sep 8, 2020 · 0 comments
Open

Relabel repo as a "not i3 specific repo" #12

Davoodeh opened this issue Sep 8, 2020 · 0 comments

Comments

@Davoodeh
Copy link

Davoodeh commented Sep 8, 2020

I love this repo. I've been using this script for years now but I'm not an i3 user, even when I was I used to use i3blocks as my bar.
I was thinking why it should be "i3-keyboard-layout"?
It assumes that everybody uses i3status along with i3 which is sad.
It can simply be keyboard-layout and have keyboard-layout related scripts. (kblayout for better life even)

  • kblayout the star, script itself.
  • i3status-kblayout containing current i3status function of the i3-keyboard-layout.
  • blocks-kblayout containing update script for i3blocks (something like this)
    Which can be used in dwmblocks and i3blocks...

And maybe make the script read some $STATUSBAR variable before sending refresh singal to any bar so it can work with all bars (this is my implementation in my repo, default on dwmblocks):

    [ "$STATUSBAR" = "i3status" ] && pgrep i3status | xargs --no-run-if-empty kill -s USR1 || # tell i3status to update
        pkill -RTMIN+30 "${STATUSBAR:-dwmblocks}"

It makes the main script more aligned with its purpose: Managing layouts only.

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