Author Topic: some tricks for helpful apps under lxde  (Read 2881 times)

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3748
  • God knows, i'm not an Angel!
    • Tipps und Tricks
some tricks for helpful apps under lxde
« on: June 15, 2010, 01:56:07 AM »
LXDE is a good desktop, but i need some apps, that want work with shortcuts. Xbindkeys is installed, but don't start a startup. No problem with the article from http://pclosmag.com/html/Issues/201006/page10.html , we can add a .desktop file.
You can add the follow file, as root in /usr/share/applications/, save it at XbindKeys.desktop
Code: [Select]
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=XbindKeys
Comment=shortcuts enable
Categories=X-MandrivaLinux-System-Configuration
Exec=xbindkeys
Icon=gnome-settings-keybindings
Terminal=false
StartupNotify=false

Now copy with file as user to your autostart folder /home/user/.config/autostart/
Code: [Select]
cp /usr/share/applications/XbindKeys.desktop $HOME/.config/autostart/When you now start a new session, xbinkeys is now available, and you can add shortcuts, simple to edit the xbindkeysrc with your editor ( i use gedit). Xbindkeys must restart to work with your new shortcut.


To add a shortcut open xbindkeysrc and type following lines over
Quote
##################################
# End of xbindkeys configuration #
##################################

it is on the end of the file.

Code: [Select]
# Screenshooter
"xfce4-screenshooter"
control+b
To make shots of my desktop i use xfce4-screenshooter, it's looks good, and clean...
With the keyboard keys "ctrl+b" start's xfce4-screenshooter.

A other way to add icon-starter is wbar...
Advantage:
You don't change the system setting, because a file names .wbar will create under your /home directory.
What is need?
wbar and wbarconf, find it in the repositories.
You can download the following wbar file. Save it in your /home/user/.wbar. Notice wbar is a hidden file, and must set a dot for wbar ;)
Code: [Select]
# The Bar && Font
#
#wbarcommand="wbar -bpress -above-desk -pos top"

i: /usr/share/wbar/iconpack/wbar.osx/osxbarback.png
c:
t: /usr/share/wbar/iconpack/wbar.osx/font/12

i: /usr/share/icons/file_tools_section.png
c: pcmanfm
t: PCMan

i: /usr/share/wbar/iconpack/wbar.osx/firefox.png
c: firefox
t: firefox

i: /usr/share/wbar/iconpack/wbar.osx/thunderbird.png
c: evolution
t: Evolution

i: /usr/share/wbar/iconpack/wbar.osx/psi.png
c: pidgin
t: pidgin

i: /usr/share/wbar/iconpack/wbar.osx/gimp.png
c: gimp
t: gimp

i: /usr/share/wbar/iconpack/wbar.osx/gqview.png
c: mtpaint
t: mtpaint

i: /usr/share/wbar/iconpack/wbar.osx/xmms.png
c: lxmusic
t: LXMusicPlayer

i: /usr/share/icons/nuoveXT2/128x128/apps/music-player.png
c: xmms
t: XMMS

i: /usr/share/wbar/iconpack/wbar.osx/gnucash.png
c: abiword
t: Abiword

i: /usr/share/wbar/iconpack/wbar.osx/gmplayer.png
c: smplayer
t: smplayer

i: /usr/share/icons/packaging_section.png
c: $HOME/re-install
t: Re-Install

i: /usr/share/icons/gnome/48x48/apps/gnome-settings-keybindings.png
c: gedit $HOME/.xbindkeysrc
t: Tastenkürzel

i: /usr/share/icons/wbarconf.png
c: wbarconf
t: WbarConf

You should installed gedit, too to use Tastenkürzel. You can rename the german words to your language. It's should work, hope  ::)
To startup wbar by systemstart use
 
Code: [Select]
cp /usr/share/applications/wbar.desktop $HOME/.config/autostart/
more will come...
« Last Edit: June 15, 2010, 02:32:51 AM by Leiche »

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: some tricks for helpful apps under lxde
« Reply #1 on: June 15, 2010, 04:43:17 AM »
LXDE is a good desktop, but i need some apps, that want work with shortcuts. Xbindkeys is installed, but don't start a startup. No problem with the article from http://pclosmag.com/html/Issues/201006/page10.html , we can add a .desktop file.


?

Lxde uses Openbox. Openbox has shortcuts. The shorcuts can be found and added in rc.xml, or for Lxde, in lxde-rc.xml.

ie: in ~/.config/openbox/rc.xml, in the one I have put in the Openbox version:
Quote
    <!-- personalized config -->
    <keybind key="W-A-p">
      <action name="Execute">
        <command>pcmanfm</command>
      </action>
    </keybind>

    <keybind key="W-A-u">
      <action name="Execute">
        <command>urxvt</command>
      </action>
    </keybind>

    <keybind key="W-A-s">
      <action name="Execute">
        <command>sakura</command>
      </action>
    </keybind>
    <keybind key="W-S-f">
      <action name="Execute">
        <command>firefox</command>
      </action>
    </keybind>
    <keybind key="W-S-s">
      <action name="Execute">
        <command>sylpheed</command>
      </action>
    </keybind>
    <keybind key="W-S-p">
      <action name="Execute">
        <command>pino</command>
      </action>
    </keybind>
    <keybind key="W-S-g">
      <action name="Execute">
        <command>geany</command>
      </action>
    </keybind>
    <keybind key="W-S-x">
      <action name="Execute">
        <command>xchat</command>
      </action>
    </keybind>
    <keybind key="W-S-a">
      <action name="Execute">
        <command>audacious2 -i gtkui</command>
      </action>
    </keybind>
    <keybind key="W-S-c">
      <action name="Execute">
        <command>contacts</command>
      </action>
    </keybind>
    <keybind key="W-s">
      <action name="Execute">
        <command>sunbird</command>
      </action>
    </keybind>
  </keyboard>


My question is : does Xbindkeys bring something that theses xml block text can't do ?

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3748
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: some tricks for helpful apps under lxde
« Reply #2 on: June 15, 2010, 10:48:01 AM »
Quote
Lxde uses Openbox. Openbox has shortcuts. The shorcuts can be found and added in rc.xml, or for Lxde, in lxde-rc.xml.
good to hearing, and good to know that get more as one way to create shortcuts.

Quote
My question is : does Xbindkeys bring something that theses xml block text can't do ?
When i find it out, you get the answer  ;D

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3748
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: some tricks for helpful apps under lxde
« Reply #3 on: July 02, 2010, 02:38:51 AM »
A simple trick for zip_player by right click menu is...
Right click on a zip archive, open with type in the command line
/usr/bin/zip_player 
That's all... ;)

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3748
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: some tricks for helpful apps under lxde
« Reply #4 on: November 19, 2010, 12:51:34 AM »
When you reads the article about xbindkeys http://pclosmag.com/html/Issues/201011/page12.html , so i have a little trick for the wbar.
What about a trick with wbar?
When you add a shortcut under xbindkeys, you must restart xbindkeys. When you now use wbar, you can add with in your .wbar file:
Code: [Select]
i: /usr/share/icons/gnome/48x48/apps/gnome-settings-keybindings.png
c: killall xbindkeys | gedit $HOME/.xbindkeysrc &&  xbindkeys
t: Tastenkürzel
Quote
Tastenkürzel > keys shortcut


What make with command?
It stop xbindkeys, and start a editor "gedit", and loads the file .xbindkeysrc.
&& means waits for gedit.
After you have finish to edit the rc file, it will start again.
That`s all
Hope you like it.

ps.: you can add leafpad, or what ever your "editor" is  :)