LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices


Reply
  Search this Thread
Old 12-13-2019, 11:50 AM   #1
stellanrandom
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
Is udev keyboard entry possible without systemd?


Hello!
I'm trying to set up my keyboard layout on Bionicpup64. I use a layout with special keys that are remapped, for example, space is mapped to the key_s, space key is Ralt, Caps is Y, etc. I can do this on Manjaro with a combination of an entry in udev and modification of US symbols in xkb. Will udev function like this without systemd?
Is it possible to achieve this using xkb alone? Thank you!
 
Old 12-14-2019, 11:07 AM   #2
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by stellanrandom View Post
Will udev function like this without systemd?
Is it possible to achieve this using xkb alone? Thank you!
Although I do not know Puppy, this text from wikipedia clearly puts it that udev is a part of systemd nowadays:
Quote:
In April 2012, udev's codebase was merged into the systemd source tree, making systemd 183 the first version to include udev.
There is a fork of udev (called eudev) that is being used by systemd-less distributions, though. But I cannot help you further as I'm strictly a Slackware user nowadays (since my retirement).
 
1 members found this post helpful.
Old 12-14-2019, 06:19 PM   #3
Mike_Walsh
Member
 
Registered: Jul 2017
Location: King's Lynn, UK
Distribution: Nowt but Puppies....
Posts: 660

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
@ stellanrandom:-

Forget udev. In Puppy, xmodmap is the way to go.

I've run Puppy, for several years, on an elderly Compaq Presario desktop tower, and an even older Dell Inspiron laptop. You know all about the connection between 'geeks' and coffee, don'tcha? Coupla years ago, I spilt the remains of a mug of coffee over the right-hand side of the Dell's keyboard. Impossible to strip-down & clean, these are still available, but vendors are asking ridiculous amounts of cash for them. Before I decided to run a cheapo wireless keyboard instead, I made up a number of small scripts, using 'xmodmap', to re-map the most needed keys.....including, as fate would have it, the 'Enter', '=', '#' and 'Backspace' keys.

Some have since recovered, but not all.

You can find a list of the 'key-syms' recognised by xmodmap, here:-

http://wiki.linuxquestions.org/wiki/...sed_by_Xmodmap

----------------------------------------

As an example, I used 'Right_Shift' to replace the 'Return/Enter' key. I never use it, and it sits immediately under the 'Return' key, so not too unintuitive. The wee script I made up is as follows:-

Code:
# !/bin/sh
#
# Temporary 'Return' key workaround script
#
xmodmap -e "keysym Shift_R = Return"
xmodmap -e - tells xmodmap to execute the immediately following string.

The string itself must be enclosed by double-quotation marks - (") rather than the single variety (')

Syntax:- "keysym[space]replacement key[space]=[space]key being replaced"

You can either use the key names, or the equivalent key-code. I found the key name to be easier to use.

----------------------------------------

Since the xmodmap script is not persistent, i.e., lasts for the duration of the session only, you need to reload the script each time you boot into Puppy. Give each key's wee script a descriptive name, along with the '.sh' suffix, then place each script into /root/Startup. Anything placed in this directory is executed at boot-time.

Make sure the script is marked as 'executable'. Simplest way; right-click->Properties->tick all 3 of the 'Exec' boxes->Refresh (down the bottom)->OK/Exit.

You can make up as many of these scripts as you need; one for each key. In fact, although I never did this, you could probably include all that you need in a single, common script. In my case, it could have looked like this:-

Code:
# !/bin/sh
#
# Temporary key re-mapping script
#
xmodmap -e "keysym Shift_R = Return" # Return key
xmodmap -e "keysym Insert = BackSpace" # Backspace key
xmodmap -e "keysym Pause = equal" # Equals key
xmodmap -e "keysym backslash = numbersign" # Hash key
These would have then all been executed by a single script.

Xmodmap is built-in to Puppies. Give it a try; it should, I feel, do what you want.


Mike.

Last edited by Mike_Walsh; 12-16-2019 at 01:22 PM.
 
1 members found this post helpful.
Old 12-14-2019, 08:23 PM   #4
stellanrandom
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the responses! I'll get to work. :-)

I have a few kinks to work out but this is the right direction thanks.

Last edited by stellanrandom; 12-15-2019 at 12:20 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] udev-initiated long-running processes under systemd without a service. Possible? catkin Programming 3 08-31-2015 04:59 AM
Is life without udev possible? gearheadgeek Slackware - Installation 26 01-02-2015 07:06 AM
[SOLVED] possible problems with udev; systemd & slackware RandomTroll Slackware 22 01-21-2014 01:45 PM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM
Mount removable disk without root access and fstab entry - possible? FogSwimmer Linux - Hardware 2 08-31-2007 06:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy

All times are GMT -5. The time now is 08:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration