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

key_layout doesn't work because it doesn't output a \n at the end #470

Open
Aster89 opened this issue Nov 5, 2022 · 1 comment
Open

Comments

@Aster89
Copy link
Contributor

Aster89 commented Nov 5, 2022

Given

$ setxkbmap -query
rules:      evdev
model:      pc105
layout:     it

Expected behavior

$ ./key_layout/key_layout | sed -z 's/it\n/YES\n/;s/it/NO\n/'
YES

Actual behavior

$ ./key_layout/key_layout | sed -z 's/it\n/YES\n/;s/it/NO\n/'
NO

i3blocks config relevant to blocklet(s)

Irrelevant.

Output of blocklet(s) when run from command line

With reference to the example above, it instead of it\n.

Output of any relevant other commands that might help diagnostics

@Aster89
Copy link
Contributor Author

Aster89 commented Nov 5, 2022

My fix would be to simply append | sed 's/$/\n/' to the existing command. Tested and works for me. Gimme a go and I'll PR it.

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