The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

text editing shortcuts

asked Dec 14 '12

jney gravatar image

updated Dec 14 '12

Hi,

Is it possible to configure i3wm using bindsym to have some custom text editing behaviours.

ie :

bindsym Control+a go_to_beginning_of_line
bindsym Control+Shift+a select_all
bindsym Control+e go_to_end_of_line

I'd like to know if such functions (go_to_beginning_of_line, select_all, go_to_end_of_line) are provided by i3wm or ̀ X11` or...

1 answer

Sort by » oldest newest most voted
0

answered Dec 14 '12

Michael gravatar image

Having a global binding for Ctrl+a seems like it could clash with other legitimate bindings and create confusion, but that’s your call.

i3 itself does not offer generating key presses, so you will have to use xdotool or something like that to generate a “Home” keypress to go to the beginning:

bindsym Control+a exec --no-startup-id xdotool key Home

That of course requires that the program supports the “Home” key, which most probably do…

Question Tools

Stats

Asked: Dec 14 '12

Seen: 172 times

Last updated: Dec 14 '12