You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to share my way of quickly launching spacefn and ask if it's safe to do it this way. This is all very basic Linux magic, but maybe less experienced users can learn something from it.
I have 2 scripts sfn and sfn2, which enable spacefn for either my laptop keyboard or an external keyboard. I put them into /usr/local/bin. Both are the same except for my_device
and I'm able to launch spacefn without specifying the device, typing password, having to keep a terminal open or put the process to the background to be able to close the terminal.
Do you see any downsides? How do you launch spacefn?
The text was updated successfully, but these errors were encountered:
If @abrasive wants to include it, I can make a PR.
N.B. There's a possibility for this way of launching to fail in certain situation.
My external keyboard usually writes to /dev/input/event17 or /dev/input/event18, so I've set up the script to launch spacefn for both of them. From time to time, however, the keyboard would be assigned to some other 'event' and this method fails.
A more robust solution could be to write a script that would listen to all of the input streams and ask user to push few keys to detect the correct one, prior to launching spacefn.
I wanted to share my way of quickly launching
spacefn
and ask if it's safe to do it this way. This is all very basic Linux magic, but maybe less experienced users can learn something from it.I have 2 scripts
sfn
andsfn2
, which enablespacefn
for either my laptop keyboard or an external keyboard. I put them into/usr/local/bin
. Both are the same except formy_device
Then I do
and I'm able to launch
spacefn
without specifying the device, typing password, having to keep a terminal open or put the process to the background to be able to close the terminal.Do you see any downsides? How do you launch
spacefn
?The text was updated successfully, but these errors were encountered: