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 a default lxqt-globalkeys.conf in lxqt-common #126

Open
selairi opened this issue Mar 13, 2016 · 23 comments
Open

Add a default lxqt-globalkeys.conf in lxqt-common #126

selairi opened this issue Mar 13, 2016 · 23 comments

Comments

@selairi
Copy link
Contributor

selairi commented Mar 13, 2016

I need to add some key shortcuts by default.

Some of them help to solve problems with screen brightness. These shortcuts are:

  • Increase screen brightness
  • Decrease screen brightness

I would like to add another shortcut too:

  • Ctl + Alt + T to open Terminal.
    This shortcut is set by default in other desktops.

Maybe the simplest way to add those shortcuts is writing a new config file in lxqt-common. This file would be lxqt-common/config/lxqt-globalkeys.conf.

I can do it by myself.

What do you think?

@palinek
Copy link
Contributor

palinek commented Mar 14, 2016

lxqt-globalkeys doesn't do/execute any logic by itself. It just provides the interface for setting/grabbing shortcuts.

IMO this hould stay that way. If you need to execute a specific logic base on pressing the newly provided shortcuts, this should go into separate daemon/process (either into some existing one or newly implemented).

@selairi
Copy link
Contributor Author

selairi commented Mar 14, 2016

Perhaps Ihave not expressed correctly, sorry. I need new shotcuts for
command line actions. Proposed shortcuts will execute command line actions.

lxqt-globalkeys doesn't do/execute any logic by itself. It just provides
the interface for setting/grabbing shortcuts.

Yes, it is true, but new shortcuts are stored in lxqt-globalkeys.conf, and
CommandActions (shortcuts for command line) are executed by lxqt-globalkeys
daemon. Then we already have got a daemon to execute commands. Consequently
a new daemon is not needed. Moreover a new daemon will waste RAM.

Thanks.

@palinek
Copy link
Contributor

palinek commented Mar 14, 2016

lxqt-globalkeys doesn't do/execute any logic by itself. It just provides
the interface for setting/grabbing shortcuts.

Yes, it is true, but new shortcuts are stored in lxqt-globalkeys.conf, and
CommandActions (shortcuts for command line) are executed by lxqt-globalkeys
daemon.

Sorry... I forgot about those. So you can forget about my previous comment 😄

@selairi
Copy link
Contributor Author

selairi commented Mar 19, 2016

I have just update files. I have added default shortcuts:

  • ctr + atl + T opens terminal
  • Shift + F7 or F6 increases or decreases brightness.

You must delete ~/.config/lxqt/globalkeyshortcuts.conf in order to load defaults:
rm ~/.config/lxqt/globalkeyshortcuts.conf

More defaults?

@Vladimir-csp
Copy link

Browse #331 for some inspiration?

...if not a duplicate.

@selairi
Copy link
Contributor Author

selairi commented Mar 26, 2016

I have just added:

  • XF86MonBrightnessDown or XF86MonBrightnessUp decrease or increase brightness.
  • Shift+Control+F6 or F7 decrease or increase brightness (useful in desktop computers).
  • Control+Atl+e opens pcman-qt
  • Control+Atl+i opens web browser
  • Control+Atl+t opens qterminal
  • Print opens screenshot

If you use Openbox, you can read more defaults in /etc/xdg/lxqt/openbox/rc.xml.

@jleclanche
Copy link
Member

Brightness controls are already handled by some other pieces of the stack though (still havent figured out which. systemd?)

@Vladimir-csp
Copy link

Brightness controls are already handled by some other pieces of the stack though (still havent figured out which. systemd?)

It's ethier something that binds XF86MonBrightnessUp XF86MonBrightnessDown, or hardware itself.

I have just added:...

  • Control+Alt+...

So, you leave one handily situated and readily available button without any useful function? (#331)

@selairi
Copy link
Contributor Author

selairi commented Mar 26, 2016

Brightness controls are already handled by some other pieces of the stack though

I thought about that. Finally, as some systems are not implemented, I decided to keep XF86MonBrightnessUp-Down key shortcuts. The biggest problem is that brightness is set twice in some systems. But... is this a real problem?. Linux driver doesn't do anything if the set value is the same.

I have just added:...

  Control+Alt+...

So, you leave one handily situated and readily available button without any useful function?

Control+Alt+... is well known as shortcut. Missing of ctr+atl+t could be considered as a bug:

https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1292113

@Vladimir-csp
Copy link

Missing of ctr+atl+t could be considered as a bug:

That bug was about shortcut not working as configured.

LXQt, as a new and fresh DE, could introduce some much more logical and streamlined shortcut configuration (and advertise it as a cool feature), instead of hacky ctrl+alt stuff which is probably being dragged along from the times when you-know-which-OS hadn't yet introduced that 'other' key.

@selairi
Copy link
Contributor Author

selairi commented Mar 27, 2016

LXQt, as a new and fresh DE, could introduce some much more logical and streamlined shortcut

Maybe a first start message is needed, like Ubuntu Unity one:

http://i.stack.imgur.com/pf1y5.png

Then we can explain users how to use the desktop and introduce new features.

@Vladimir-csp
Copy link

+1
I also use a similar thing based on conky as an introduction to the interface and a quick help for my office users. (bash wrapper which launching and chain-closing multiple conky windows showing environment overview, hints, shortcuts and other info).

@selairi
Copy link
Contributor Author

selairi commented Mar 27, 2016

Maybe it could be a txt file. A simple tool must read LANG environment variable and load required translation. It should be in autostart and disable itself after first run.

I have just added aero snap in openbox using mouse wheel over tittlebar. It is useful. 😄

@selairi
Copy link
Contributor Author

selairi commented Mar 28, 2016

This a simple picture with actual key shortcuts. It could also be used as start message. It is a SVG file. I could write a tool that translates Shift, Ctr, Alt,... if necessary:

02 svg

@stefonarch
Copy link
Member

Maybe it is me but I have problems "reading" icon language, I would suggest to have text too below the images.

The messagge should be also avalaible in the menu/config, maybe under "about", I think showing only one time on startup is not enough.

@selairi
Copy link
Contributor Author

selairi commented Mar 28, 2016

Maybe it is me but I have problems "reading" icon language, I would suggest to have text too below the images.

It would be easier for us if translate only icons that are more difficult to understand. Please, which icons are more difficult?

The messagge should be also avalaible in the menu/config, maybe under "about", I think showing only one time on startup is not enough.

OK.

@pmattern
Copy link
Contributor

pmattern commented Apr 7, 2016

lxqt-config-globalkeys can be used to tweak shortcuts corresponding to the window manager like changing virtual desktops as well. Basically I'm absolute in favour of this - using different GUIs like obkey or lxqt-config-globalkeyshortcuts to configure shortcuts corresponding to window manager and desktop environment itself respectively may be plausible from a technical point of view but is absolutely counter-intuitive for end-users.
But right now both the settings made in lxqt-config-globalkeys and in tools / configuration files of the particular window managers seem to be used in parallel. Couldn't this eventually be confusing for end-users?

@Vladimir-csp
Copy link

I put my 'conkyinfo' thing in session autostart and also in root of applications menu - Two handy points of destination when telling users to RTFM.

Icons may be good for spicing things up a bit, but not as sole means of communicating the shortcuts. Lots of ambiguity. IMHO Ubuntu did it right with icons.

...and using a certain logo is very questionable.

@Vladimir-csp
Copy link

Here is how my help messages looks like. Technically it is a bash script that outputs some monospace text info (with occasional auto-flipping lines) via positioned conky windows (decorated ones). I'm sure, Qt has some proper tools to make something similar, but much more slick.

screen_conkyinfo

@ptrber
Copy link

ptrber commented Jul 19, 2016

From Debian testing I just installed lxqt on a EeePC 1005HA (2009) and on a XPS 13 (9343 2015) - it works very well so far.
After reading this thread it is still not clear to me on how to set up custom shortcut keybindings? I'm an end user with limited programming skills that just like to use lxqt on my laptops for daily work.

Found a temporary workaround through; lxqt session settings ->autostart->add QTerminal to global shortcuts. Then use Ctrl+Shift+T to launch another terminal next to the one that surface by the autostart launch.

Would like to set up F8 for terminal, F9 for browser a la this workflow.

@palinek
Copy link
Contributor

palinek commented Jul 19, 2016

After reading this thread it is still not clear to me on how to set up custom shortcut keybindings? I'm an end user with limited programming skills that just like to use lxqt on my laptops for daily work.

Run lxqt-config-globalkeys (or via menu 'start' -> preferences -> LXQt Settings -> Shortcut keys), push the Add ... button, in Edit Action dialog push the 'Shortcut:' button, push your desired shortcut keys (e.g. F9), optionaly write some description, choose the Type: to 'Command`, write the intended command to run (e.g. firefox), push the 'OK' button, you're done.

@pmattern
Copy link
Contributor

@ptrber
FYI potentially making the GUI of "Global Actions Manager" ("Shortcut Keys" in the panel's main menu and the configuration center, binary lxqt-config-globalkeyshortcuts) making more user-friendly is discussed in #506.

@agaida agaida transferred this issue from lxqt/lxqt Jul 19, 2019
@amb-iota
Copy link

I did found this conf file but I do not have a clue where to find for example the path /panel/volume/down because the Client does something but not change the mastervolume. So I want to change that. I know that the command amixer set Master 5%- will do the Job but I think there should be a way to find out how the /panel/volume/..... Funktions are working as I am able to watch on the screen how it tells me about the new level but not the masterlevel. So I do not know what's to setup to make it proper working.

Brightnesscontrol is the same at the moment there isn't any shortcut for it.

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