Today i came into a problem when I had to work on a power point presentation I didn't finished at the office.
After installing openoffice, I realized that no action was bound to the printscreen button on my keyboard.
After working on some tutorials here is the summary of the method i came with:
First look out for the "name" of the key you want to bind, use a program called "xev" (just type xev)
then press the key you want to bind, and look for how it's called:
KeyPress event, serial 29, synthetic NO, window 0x2400001,
root 0x6a, subw 0x0, time 325551491, (303,246), root:(360,324),
state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
Here is the result when I pressed Alt key, you can see the exact name "Alt_L", in parenthesis by looking inside the text.
then process to bind your key with the action you want:
>> open the fluxbox setting, in your home folder look out for the ".fluxbox" directory
>> open the "keys" file
>> The key we want to bind is called "Print" so here is the line I have to add in the Keys file:
None Print :ExecCommand scrot -d 1 screensnapshot_"$(date)".png
"None" means no modificator (shift or any other)
Print is the key name i want to bind
":ExecCommand" is the tag to place before adding a command
"scrot -d 1 ..." is the command to print screen
To make it work be sure that scrot has been installed on your system or apt-get for it. (apt-get install scrot)
restart fluxbox
a new png file should appear in your home folder every time you press on the pintscreen key :-)
Thanks for posting this. I just got into fluxbox on Arch and was wondering about key bindings. This helped a lot.
RépondreSupprimertuavectiode Ronald Infinite https://wakelet.com/wake/VF3OzspWQI6GI9K5EDMy-
RépondreSupprimerfrilunerre
agustalri-1982 Liz Rogers Crack
RépondreSupprimersincpidestagc
0tiotralrup-to Sarah Metcalf
RépondreSupprimerThere
genmocorpo