Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to reassign Alt-Key #6

Closed
invy opened this issue Aug 20, 2016 · 18 comments
Closed

Add option to reassign Alt-Key #6

invy opened this issue Aug 20, 2016 · 18 comments

Comments

@invy
Copy link
Contributor

invy commented Aug 20, 2016

This is a kind of a feature request.

Since in Linux Alt-Key is the default and almost a standard de facto for many functions in almost every desktop environment (alt+f1, alt+f7 and especially alt+f2) it would be nice to have option to reassign Alt in Far for example to super (win) or some other key to avoid conflicts with Window Managers and DEs.

@elfmz
Copy link
Owner

elfmz commented Aug 20, 2016

Since WIn key is not used in original FAR at all i just made it work as Alt. No reassign, just both keys works same. Check if its ok.

@invy
Copy link
Contributor Author

invy commented Aug 20, 2016

Well, it's kinda topic for discussion and there is no definitive answer I think.

Left-win for example isn't working either, because gnome-shell(and I think bunch of other DEs) is using it for overview mode/search/lenses/menus. The right-win is working fine, which is however less convenient (or even not and it simply feels different), but at least it allows to use those shortcuts, where alt is involved.

What do you think? Because you've started porting and one of the reasons for this port, as I recall, were terrible MC shortcuts in ncurses :)

@elfmz
Copy link
Owner

elfmz commented Aug 21, 2016

Shortcuts always shortcuts, if someone prefer use left Win/Alt for FAR - he may change X manager configuration to avoid clashing.
However there is heavy artillery behind ( http://linux.die.net/man/3/xgrabkeyboard ) but I don't think its a case for it..
I've just commited additiona l fixes in that area.. Check please that everything still works for you with IBus.
About MC: 'terribleness' of its shortcuts is not clashing difference from NC. 'Terribleness' of its shortcuts mostly means 'statefulness'. Yep, the same as in vi/emacs and other UNIX tools :)
Also there're a lot of other little comforts in FAR by comparing with MC. Its like two chairs: wooden and leather. Some may say that both a chairs usable for sitting. Some may argue that wooden chair is useful for health. Bot some others prefer leather chair just due to comfort :)

@invy
Copy link
Contributor Author

invy commented Aug 21, 2016

The changes you've made are still working with ibus.

The problem with DE shortcuts is, that it's not always possible to override them, for example Unity or Gnome shell provide very limited means of customization.

You are translating your keyboard input from your window to Far anyway, so it's possible to make this translation table configurable and not hard-coded.

@elfmz
Copy link
Owner

elfmz commented Aug 21, 2016

not sure about unity, but dconf-editor easily reassign any gnome shortcut, including those Alt+f1/Alt+f2 I'm working in gnome and was able to reassign all of this.
Anyway possibility of configurable keyboard translation makes sense, but its not urgent..

@lieff
Copy link
Contributor

lieff commented Sep 7, 2016

Надо бы вообще для системозависимых вещей сделать что-то типа бэкэндов. Чтобы рисование консоли, клаву и мышку можно было бы реимплементировать на разных фреймворках и это небыло проблемой.

@invy
Copy link
Contributor Author

invy commented Sep 7, 2016

I think, xorg tools should not come in question, because there is also the wayland (I should actually test Far on wayland someday). The most logical ans simplest solution is to make all keyboard mappings configurable in the winport console.

@invy
Copy link
Contributor Author

invy commented Sep 7, 2016

And then you wont be able to switch keyboard layouts, copy characters, switch virtual desktops, use tiling wm and so on and so forth.

@invy invy mentioned this issue Sep 7, 2016
@invy
Copy link
Contributor Author

invy commented Oct 27, 2016

Yep. It's actually got worse since new ubuntu release. Right Win does not work anymore (because gnome-shell grabs this key combination).

@lieff
Copy link
Contributor

lieff commented Jan 9, 2017

А вот Remmina - все норм перехватывает и когда курсор не над экраном.

@lieff
Copy link
Contributor

lieff commented Jan 11, 2017

Ну вот я проверил - у меня так. Может это и не в freerdp\Remmina дело, а что-то другое в системе различается у нас, убунта 16.04.

@lieff
Copy link
Contributor

lieff commented Jan 11, 2017

Все по дефолту. Compiz как я понимаю используется, в процессах он есть.

@asimonov
Copy link

hey guys! sorry for silly question, but how can i take alt/f1 and alt/f2 on Ubuntu 16.04 and give it to Far? I understand you are looking for a proper solution, but how can I hack it for now on my box? (reply in russian if it is easier)

@elfmz
Copy link
Owner

elfmz commented Jul 13, 2018

@asimonov
Copy link

thanks! what worked is running 'ccsm' and disabling 'key to give focus to launcher' and few others mentioned in that link.

@unxed
Copy link
Contributor

unxed commented Jan 17, 2021

Since WIn key is not used in original FAR at all i just made it work as Alt. No reassign, just both keys works same. Check if its ok.

Do we still need this open?

@ivanhub
Copy link

ivanhub commented Nov 8, 2021

Why nobody nowhere told this. Options->Interface Settings->Exclusively handle hotkeys that include. I ticked Alt, and voila now Alt is intercepted by Far, not by Window Manager. I think this topic now should be closed then.. )

Но у меня поиск по содержимому файлов по кириллице не работает.

@cmdorexe
Copy link
Contributor

Do we still need this open?

ctapmex pushed a commit to ctapmex/far2l that referenced this issue Aug 26, 2024
@elfmz elfmz closed this as completed Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
@asimonov @invy @unxed @lieff @cmdorexe @ivanhub @elfmz and others