Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Hardware] debian keybinding of alt to use like mac

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
gmail
Posts: 2
Joined: 2024-04-06 11:50

[Hardware] debian keybinding of alt to use like mac

#1 Post by gmail »

Hello everyone

I am a new desktop debian user. I come from a Mac and am pleased to have moved away from Apple into the latest Debian Desktop. Pretty much everything I use is compatible and working which is just awesome!

I am a web developer and the one thing I'm really used to was that I could use the two right keys beside the arrows to move around in sublime editor. CTRL+arrows is already fine as I can move around from string to string, and I managed to keybind in sublime to use the right ALT+arrows to move from start and end of a line. However I got so used to this I would also like to be able to do this within Debian or its applications like brave or chrome etc. I've looked into keybindings but just can't figure this out. Can anyone help me figure out how to keybind the ALT+arrows so that I can use this to move from start to end of lines in all applications and debian?

Thank you!

User avatar
manyroads
Posts: 83
Joined: 2021-04-17 14:27
Has thanked: 1 time
Been thanked: 13 times

Re: [Hardware] debian keybinding of alt to use like mac

#2 Post by manyroads »

Simply change your default keybindings to map the function you prefer to perform. Most DEs offer a keybinding function. If you rather do it separately (independently) from your DE, you can use sxhkd (you need to install it) or xbindkeys. None of this is distro dependent.

https://dev-random.net/make-your-own-ke ... xbindkeys/
https://github.com/baskerville/sxhkd
Pax vobiscum,
Mark Rabideau- Prof Genealogist - http://many-roads.com
Linux BLOG https://eirenicon.org
spectrwm,i3wm,hlwm,bspwm,dwm
Linux User #449130

gmail
Posts: 2
Joined: 2024-04-06 11:50

Re: [Hardware] debian keybinding of alt to use like mac

#3 Post by gmail »

@manyroads
Thank you for your reply.

I think what I'm struggling with is understanding the actual command for the keys. I tried with keyboard custom shortcuts to add a custom shortcut, and I can add the trigger using keys alt+left, but I do not know what to put in the command.
I can try looking at the others links if I can make the time. But if someone knows online where I can find definitions to put in the commands box it would be nice.

User avatar
manyroads
Posts: 83
Joined: 2021-04-17 14:27
Has thanked: 1 time
Been thanked: 13 times

Re: [Hardware] debian keybinding of alt to use like mac

#4 Post by manyroads »

All you need do to get the correct command is look for a terminal command that runs (executes/ performs) your desired function. Internet search will provide those to you if you don't want to read documentation. If you are looking for terminal commands to start applications they are most often located in /usr/share/applications (edit the desktop files and look for the exec command). Where you will again find difficulties is that your desired commands can (probably/ possibly will) conflict with commands you don't even know exist on your gear. The available commands are very difficult to unearth completely. The best way to avoid them is to see what others use, rather than what you may have liked on your mac. Others probably (possibly?!?!) will use commands that conflict "more infrequently".

As an example look to documentation for window managers such as dwm, i3wm. They are well documented and use many keybindings (that will give you an idea of many Linux accepted 'common' keybinds). You should also look deeply into the tools you want to see which commands they offer/ use. I find it easier to conform to pre-existing bindings that are designed to work with a tool. But in the end, it is your call. Your machine, your preferences reign supreme.
Pax vobiscum,
Mark Rabideau- Prof Genealogist - http://many-roads.com
Linux BLOG https://eirenicon.org
spectrwm,i3wm,hlwm,bspwm,dwm
Linux User #449130

Post Reply