Sabayon-Wiki Archive
Aposteeltje (Talk | contribs) |
Aposteeltje (Talk | contribs) (→tips) |
||
| Line 10: | Line 10: | ||
== tips == | == tips == | ||
| + | |||
| + | === Enabling back/forward mouse buttons in Konqueror and Dolphin file managers === | ||
| + | |||
| + | First, you must install xautomation and xbindkeys from Entropy. | ||
| + | |||
| + | Next, create a text file named .xbindkeysrc and save it to your home directory. The content of the file should be: | ||
| + | |||
| + | ########################### | ||
| + | # xbindkeys configuration # | ||
| + | ########################### | ||
| + | # | ||
| + | # Version: 1.8.0 | ||
| + | # | ||
| + | # If you edit this file, do not forget to uncomment any lines | ||
| + | # that you change. | ||
| + | # The pound(#) symbol may be used anywhere for comments. | ||
| + | # | ||
| + | # To specify a key, you can use 'xbindkeys --key' or | ||
| + | # 'xbindkeys --multikey' and put one of the two lines in this file. | ||
| + | # | ||
| + | # The format of a command line is: | ||
| + | # "command to start" | ||
| + | # associated key | ||
| + | # | ||
| + | # | ||
| + | # A list of keys is in /usr/include/X11/keysym.h and in | ||
| + | # /usr/include/X11/keysymdef.h | ||
| + | # The XK_ is not needed. | ||
| + | # | ||
| + | # List of modifier: | ||
| + | # Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock), | ||
| + | # Mod3 (CapsLock), Mod4, Mod5 (Scroll). | ||
| + | # | ||
| + | |||
| + | # The release modifier is not a standard X modifier, but you can | ||
| + | # use it if you want to catch release events instead of press events | ||
| + | |||
| + | # By defaults, xbindkeys does not pay attention with the modifiers | ||
| + | # NumLock, CapsLock and ScrollLock. | ||
| + | # Uncomment the lines above if you want to pay attention to them. | ||
| + | |||
| + | #keystate_numlock = enable | ||
| + | #keystate_capslock = enable | ||
| + | #keystate_scrolllock= enable | ||
| + | |||
| + | # Examples of commands: | ||
| + | |||
| + | "xbindkeys_show" | ||
| + | control+shift + q | ||
| + | |||
| + | # set directly keycode (here control + f with my keyboard) | ||
| + | "xterm" | ||
| + | c:41 + m:0x4 | ||
| + | |||
| + | # specify a mouse button | ||
| + | "xterm" | ||
| + | control + b:2 | ||
| + | |||
| + | #"xterm -geom 50x20+20+20" | ||
| + | # Shift+Mod2+alt + s | ||
| + | # | ||
| + | ## set directly keycode (here control+alt+mod2 + f with my keyboard) | ||
| + | #"xterm" | ||
| + | # alt + c:0x29 + m:4 + mod2 | ||
| + | # | ||
| + | ## Control+Shift+a release event starts rxvt | ||
| + | #"rxvt" | ||
| + | # release+control+shift + a | ||
| + | # | ||
| + | ## Control + mouse button 2 release event starts rxvt | ||
| + | #"rxvt" | ||
| + | # Control + b:2 + Release | ||
| + | |||
| + | # dolphin go back | ||
| + | "xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'" | ||
| + | b:9 | ||
| + | |||
| + | # dolphin go forward | ||
| + | "xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'" | ||
| + | b:8 | ||
| + | |||
| + | |||
| + | ################################## | ||
| + | # End of xbindkeys configuration # | ||
| + | ################################## | ||
| + | |||
| + | Now create an autostart entry in /home/user_name/.kde4/Autostart named xbindkeys.desktop containing the following code: | ||
| + | |||
| + | [Desktop Entry] | ||
| + | Comment[en_US]= | ||
| + | Comment= | ||
| + | Encoding=UTF-8 | ||
| + | Exec=xbindkeys | ||
| + | GenericName[en_US]= | ||
| + | GenericName= | ||
| + | Icon= | ||
| + | MimeType= | ||
| + | Name[en_US]= | ||
| + | Name= | ||
| + | Path= | ||
| + | StartupNotify=false | ||
| + | Terminal=false | ||
| + | TerminalOptions= | ||
| + | Type=Application | ||
| + | Version=1.0 | ||
| + | X-DBUS-ServiceName= | ||
| + | X-DBUS-StartupType= | ||
| + | X-DCOP-ServiceType= | ||
| + | X-KDE-SubstituteUID=false | ||
| + | X-KDE-Username= | ||
| + | X-KDE-autostart-after=kdesktop | ||
| + | |||
| + | Now just reboot your computer and you should have back/forward mouse button functionality in Dolphin and Konqueror. | ||
| + | This, of course can also work when running a different Desktop Environment. eg. XFCE. | ||
| + | |||
| + | Some like the XFCE looks and feel, but mainly use KDE apps. | ||
| + | In this case, add the xbindkeys.desktop script to XFCE-settings --> session and startup. | ||
| + | (Make sure you enable the KDE-services under the Advanced tab.) | ||
== Visual tour == | == Visual tour == | ||
Revision as of 22:45, 9 December 2012
Contents |
Howto's
tips
Enabling back/forward mouse buttons in Konqueror and Dolphin file managers
First, you must install xautomation and xbindkeys from Entropy.
Next, create a text file named .xbindkeysrc and save it to your home directory. The content of the file should be:
########################### # xbindkeys configuration # ########################### # # Version: 1.8.0 # # If you edit this file, do not forget to uncomment any lines # that you change. # The pound(#) symbol may be used anywhere for comments. # # To specify a key, you can use 'xbindkeys --key' or # 'xbindkeys --multikey' and put one of the two lines in this file. # # The format of a command line is: # "command to start" # associated key # # # A list of keys is in /usr/include/X11/keysym.h and in # /usr/include/X11/keysymdef.h # The XK_ is not needed. # # List of modifier: # Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock), # Mod3 (CapsLock), Mod4, Mod5 (Scroll). # # The release modifier is not a standard X modifier, but you can # use it if you want to catch release events instead of press events # By defaults, xbindkeys does not pay attention with the modifiers # NumLock, CapsLock and ScrollLock. # Uncomment the lines above if you want to pay attention to them. #keystate_numlock = enable #keystate_capslock = enable #keystate_scrolllock= enable # Examples of commands: "xbindkeys_show" control+shift + q # set directly keycode (here control + f with my keyboard) "xterm" c:41 + m:0x4 # specify a mouse button "xterm" control + b:2 #"xterm -geom 50x20+20+20" # Shift+Mod2+alt + s # ## set directly keycode (here control+alt+mod2 + f with my keyboard) #"xterm" # alt + c:0x29 + m:4 + mod2 # ## Control+Shift+a release event starts rxvt #"rxvt" # release+control+shift + a # ## Control + mouse button 2 release event starts rxvt #"rxvt" # Control + b:2 + Release # dolphin go back "xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'" b:9 # dolphin go forward "xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'" b:8 ################################## # End of xbindkeys configuration # ##################################
Now create an autostart entry in /home/user_name/.kde4/Autostart named xbindkeys.desktop containing the following code:
[Desktop Entry] Comment[en_US]= Comment= Encoding=UTF-8 Exec=xbindkeys GenericName[en_US]= GenericName= Icon= MimeType= Name[en_US]= Name= Path= StartupNotify=false Terminal=false TerminalOptions= Type=Application Version=1.0 X-DBUS-ServiceName= X-DBUS-StartupType= X-DCOP-ServiceType= X-KDE-SubstituteUID=false X-KDE-Username= X-KDE-autostart-after=kdesktop
Now just reboot your computer and you should have back/forward mouse button functionality in Dolphin and Konqueror. This, of course can also work when running a different Desktop Environment. eg. XFCE.
Some like the XFCE looks and feel, but mainly use KDE apps. In this case, add the xbindkeys.desktop script to XFCE-settings --> session and startup. (Make sure you enable the KDE-services under the Advanced tab.)
Visual tour
En:Visual_Tour:_Part_1_Booting_Sabayon_Linux-4
Visual_Tour:_Booting_Sabayon_Linux-5.2_KDE4
Pl:Visual_Tour:_Booting_Sabayon_Linux-4.1_KDE4
Package Management
En:HOWTO:_3.5_Pod_adding_portage