I want to switch desktops with Ctrl F1/F2 etc. like in Xfce but don't know how to set it as a keyboard shortcut. Any idea how to do that?
Also, I might be a retard, but where do you change the wallpaper?
Switching Desktops with shortcut Ctrl F1
Re: Switching Desktops with shortcut Ctrl F1
Hi
1. Have a look at "~/.config/openbox/lxde-rc.xml" you can set shortcuts here.
2. Open PCManFM and have a look at the "Desktop" tab in the settings.
maces
1. Have a look at "~/.config/openbox/lxde-rc.xml" you can set shortcuts here.
2. Open PCManFM and have a look at the "Desktop" tab in the settings.
maces
Re: Switching Desktops with shortcut Ctrl F1
1. I hate editing (often breaking) text files. Is there a way to do it through the gui?
2. That makes my home folder appear as icons on the desktop, which I hate. Is there a way to set a wallpaper and have the icons still invisible?
2. That makes my home folder appear as icons on the desktop, which I hate. Is there a way to set a wallpaper and have the icons still invisible?
-
- Posts: 381
- Joined: Mon Mar 23, 2009 5:14 am
Re: Switching Desktops with shortcut Ctrl F1
There is a thing obconf that comes from the Openbox people. That is a GUI for configuring it. I hate using GUIs and like editing text files, so I've never used it.
You can set a wallpaper with other tools without running PCManFM. feh is one that is mentioned frequently.
You can set a wallpaper with other tools without running PCManFM. feh is one that is mentioned frequently.
Re: Switching Desktops with shortcut Ctrl F1
1. For shortcuts in openbox, there is no GUI, AFAIK. You could use "xbindkeys" there is a GUI for it (ugly GTK1 but works). If you use it remember to add it to the autostart.
2. Yes I'm using something like this for a very long time now.
I've written this script:
Save this to a file, like "setbg.sh" and make it executable (chmod +x).
Now I've add entires to the menu in openbox:
At last you have to add it to the LXDE autostart. I've done it by adding the full path (with scriptname, of course) to the "autostart" file in "~/.config/lxsession/LXDE/", like this:
Hope this helped. If you have any questions, just ask .
maces
2. Yes I'm using something like this for a very long time now.
I've written this script:
Code: Select all
#!/bin/bash
# autor: maces
if [ $1 = get ]
then
new_file=`zenity --file-selection --title "Choose background" --window-icon "/usr/share/pixmaps/gpicview.png" --filename=$HOME/bilder/wallpaper/`
echo ${new_file} > $HOME/apps/skripts/design/bg/bg
OPTION_I=`zenity --title "Setting" --height=210 --list --text "Choose how you Wallpaper will be set?" --radiolist --column "Pick" --column "Option" TRUE tile FALSE center FALSE scale FALSE seamless`
# this set the background with feh (have a look at the manpage)
# --bg-tile
# --bg-center
# --bg-scale
# --bg-seamless
OPTION_V="--bg-${OPTION_I}"
echo ${OPTION_I} > $HOME/apps/skripts/design/bg/option
else
V=`cat $HOME/apps/skripts/design/bg/option`
OPTION_V="--bg-${V}"
fi
file=`cat $HOME/apps/skripts/design/bg/bg`
feh ${OPTION_V} ${file}
exit 0
Now I've add entires to the menu in openbox:
Code: Select all
<item label="choose background">
<action name="Execute">
<command>
/home/maces/apps/skripts/design/bg/set_bg.sh get
</command>
<startupnotify>
<enabled>
yes
</enabled>
</startupnotify>
</action>
</item>
<item label="set background">
<action name="Execute">
<command>
/home/maces/apps/skripts/design/bg/set_bg.sh
</command>
<startupnotify>
<enabled>
yes
</enabled>
</startupnotify>
</action>
</item>
Code: Select all
...
/home/maces/apps/skripts/design/bg/set_bg.sh
@xbindkeys
...
maces