Changing Windows(tm) key to "beginning of the line"

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :)

Moderator: Moderators

Post Reply
Baby Hen
Posts: 1
Joined: Sat Jul 13, 2019 2:45

Changing Windows(tm) key to "beginning of the line"

Post by levithanh » Sat Jul 13, 2019 2:49

Hi guys,

Thank you for reading me.

I would like to have 2 (direct strokes) keys on this laptop keyboard :
- "beginning of the line" (I think it would be nice to have it on the 'Windows(tm)' key,
- "end of line" (I think having it on the right hand 'Ctrl' key would be nice too).

Can someone tell me simply (I'm not and IT professional) how to achieve this ?

Thank you in advance.

Sagely Hen
Posts: 1724
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: Changing Windows(tm) key to "beginning of the line"

Post by Stupot » Mon Jul 15, 2019 0:10

You might have issues using those two keys because they are generally meant to be used in combination of other keys.
But ultimately, what you are asking for is a replacement 'Home' and 'End' button. Does your laptop not have those keys (possibly a key combination with a fn + arrow key) ?

Advanced Hen
Posts: 210
Joined: Sun Mar 31, 2013 5:34

Re: Changing Windows(tm) key to "beginning of the line"

Post by VolvoBirkenstock » Tue Jul 16, 2019 5:25

I'm not sure I understand the question, but inside the bash shell (the default shell when running an xterm or equivalent), Ctrl-A and Ctrl-E take you to the "beginning of the line" and the "end of the line", respectively. Ctrl-U kills/erases the line. Ctrl-K erases everything on the line to the right of the cursor.

Post Reply