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 2012-12-14 14:12:10 +0000

jney gravatar image

updated 2012-12-14 14:15:40 +0000

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...

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2012-12-14 20:11:58 +0000

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…

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-12-14 14:12:10 +0000

Seen: 172 times

Last updated: Dec 14 '12