Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Due to a bug in the PinePhone/xfce, the following commands do not produce a forward slash. I’m wondering if a veteran here can offer an alternative to these failed summons:
Many thanks for your post. That command does work when executed in terminal, but doesn't when called from a script, even if I put a second of sleep before it.
I cannot figure out why this is so problematic. All the other special characters running along the top keys can be successfully scripted, just not a forward slash (which is part of the kb's ?/ key).
would be nice to see exactly what did you try (how does your script look like?). In general / is not a special char for shell(s), but it may have a special meaning sometimes (which obviously depends on the usage).
Thank you, everybody, for weighing with ideas/suggestions. I've tried every one, including @teckk's, and while they work as a command in terminal, they can not be called in a script. The top row of special characters is notoriously difficult in the PinePhone keyboard. In Phosh, I was able to call them in an edited us keymap,; in xfce, I've had to script them eg:
Code:
#!/bin/sh
sleep .3
xdotool type \`
So that all works on the top row, but when scripting a key such /?, it fails (though I can use said script to produce any other character other than forward slash). When calling the forward slash script in terminal, I see the terminal cursor blink, then produce nothing.
Probably nowhere, since there may be few other users--if at all--that have my exact setup. And the issue is so arcane.
It is interesting to note that my hacked us keymap from Phosh works in xfce (the xfce desktop is simply installed on top of Phosh) with regard to making the ? key work as a Right_Shift, but the third layer modifier of Win/AltG to make a forward slash (AltG + ?/ = forward slash) does not work in xfce, nor did my working modifiers on the top row (AltG + 9 = underscore). Hence, my scripting for the latter.
So instead of talking to the developers who are best placed to identify and fix the problem, you've not even bothered to check whether anyone else has encountered the same issue, and prefer to guess at workarounds in a place where it's significantly less likely that people share your setup... :/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.