Zeigt her eure Openbox Configs

lockdoc

Well-Known Member
Hi,

ich nutze jetzt schon seit langer Zeit Openbox und versuch das so komfortabel wie moeglich einzurichten, dass es sich so einfach wie eine komlette DE nutzen laesst. Hier stoeber ich auch immer wieder gern in anderen Konfigurationen rum.

Also wer Lust hat und auch Openbox nutzt, kann ja mal seine Configs posten.


Mein Notebook laeuft allerdings derzeit auf Debian Wheezy anstatt FreeBSD wegen dem gut funktionierenden Hibernate

~/.config/openbox/autostart
Code:
########################################################################################
#
# Exports
#
########################################################################################

# Force openoffice.org to use GTK theme
# enable this if you install openoffice
export OOO_FORCE_DESKTOP=gnome



########################################################################################
#
# Devices
#
########################################################################################

## Turn on/off annoying system beep
xset b off &

## Setup dual monitor
xrandr --auto --output VGA1 --mode 1920x1080 --right-of HDMI1
xrandr --output HDMI1 --mode 1920x1200 --left-of VGA1

## Detect and configure touchpad. See 'man synclient' for more info.
if egrep -iq 'touchpad' /proc/bus/input/devices; then
    synclient VertEdgeScroll=1 &
    synclient TapButton1=1 &
fi

## Set keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
## Adjust the values according to your preferances.
xset r rate 250 25 &



########################################################################################
#
# System Daemons
#
########################################################################################

## GNOME PolicyKit and Keyring
eval $(gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh) &
export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID GPG_AGENT_INFO SSH_AUTH_SOCK &

## Power Management
xfce4-power-manager &

## Volume Control
xfce4-volumed &

## Clipboard
xfce4-clipman &

## Keyboard Input
ibus-daemon --replace --restart --desktop=openbox --xim --daemonize &

## Start xscreensaver
xscreensaver -no-splash &



########################################################################################
#
# Application Daemons
#
########################################################################################

## Thunar Daemon
thunar --daemon &

## urxvt Daemon
urxvtd &

## KDE Services
kdeinit4 &



########################################################################################
#
# Panel / Applets
#
########################################################################################

## Tint2 Panel
tint2 &
#tint2 -c ~/.config/tint2/two.switcher &
#tint2 -c ~/.config/tint2/two.main &

## Network Manager Applet
nm-applet &

## Bluetooth Applet
blueman-applet &

## Volume Icon Applety
volti &

## Notes / Tasks
(sleep 4 && gnote) &
(sleep 4 && tasque) &



########################################################################################
#
# Eye Candy
#
########################################################################################

## Wallpaper
nitrogen --restore &

## Conky
(sleep 2s && conky -c ~/.conky/conkyrc) &

## Compositor
(sleep 2s && compton --config ~/.compton.conf) &

## Expose (skippy-xd)
skippy-xd --start-daemon &

## Crunchbang Hot Korners
cb-hotcorners --daemon &


Auszug aus der ~/.config/openbox/rc.xml mit folgenden gimmicks
  • Window-snapping
  • Send window to other monitor
  • Send window to other desktop
  • Make window Transparenter/weniger transparent
  • ...
Code:
...
    <keyboard>
        <chainQuitKey>C-g</chainQuitKey>
        <!-- ============================================================================================== -->
        <!-- Openbox Menu -->
        <!-- ============================================================================================== -->
        <keybind key="C-Super_L">
            <action name="ShowMenu">
                <menu>root-menu</menu>
            </action>
        </keybind>
        <keybind key="S-Super_L">
            <action name="ShowMenu">
                <menu>client-list-combined-menu</menu>
            </action>
        </keybind>
        <!-- ============================================================================================== -->
        <!-- Goto Virtual Desktop -->
        <!-- ============================================================================================== -->
        <keybind key="W-F1">
            <action name="GoToDesktop">
                <to>1</to>
            </action>
        </keybind>
        <keybind key="W-F2">
            <action name="GoToDesktop">
                <to>2</to>
            </action>
        </keybind>
        <keybind key="W-F3">
            <action name="GoToDesktop">
                <to>3</to>
            </action>
        </keybind>
        <keybind key="W-F4">
            <action name="GoToDesktop">
                <to>4</to>
            </action>
        </keybind>
        <!-- ============================================================================================== -->
        <!-- Switch Virtual Desktop -->
        <!-- ============================================================================================== -->
        <keybind key="C-A-Left">
            <action name="GoToDesktop">
                <to>left</to>
                <wrap>no</wrap>
            </action>
        </keybind>
        <keybind key="C-A-Right">
            <action name="GoToDesktop">
                <to>right</to>
                <wrap>no</wrap>
            </action>
        </keybind>
        <keybind key="C-A-Up">
            <action name="GoToDesktop">
                <to>up</to>
                <wrap>no</wrap>
            </action>
        </keybind>
        <keybind key="C-A-Down">
            <action name="GoToDesktop">
                <to>down</to>
                <wrap>no</wrap>
            </action>
        </keybind>
        <!-- ============================================================================================== -->
        <!-- Send Programs to Virtual Desktop -->
        <!-- ============================================================================================== -->
        <keybind key="S-A-Left">
            <action name="SendToDesktop">
                <to>left</to>
                <wrap>no</wrap>
            </action>
        </keybind>
        <keybind key="S-A-Right">
            <action name="SendToDesktop">
                <to>right</to>
                <wrap>no</wrap>
            </action>
        </keybind>
        <keybind key="S-A-Up">
            <action name="SendToDesktop">
                <to>up</to>
                <wrap>no</wrap>
            </action>
        </keybind>
        <keybind key="S-A-Down">
            <action name="SendToDesktop">
                <to>down</to>
                <wrap>no</wrap>
            </action>
        </keybind>
        <!-- ============================================================================================== -->
        <!-- Send Programs to Other Monitor (maximized or non-maximized) -->
        <!-- ============================================================================================== -->
        <keybind key="W-alt-Left">
            <action name="If">
                <maximized>yes</maximized>
                <then>
                    <action name="UnmaximizeFull"/>
                    <action name="MoveResizeTo">
                        <monitor>1</monitor>
                    </action>
                    <action name="Maximize"/>
                </then>
                <else>
                    <action name="MoveResizeTo">
                        <monitor>1</monitor>
                    </action>
                </else>
            </action>
        </keybind>
        <keybind key="W-alt-Right">
            <action name="If">
                <maximized>yes</maximized>
                <then>
                    <action name="UnmaximizeFull"/>
                    <action name="MoveResizeTo">
                        <monitor>2</monitor>
                    </action>
                    <action name="Maximize"/>
                </then>
                <else>
                    <action name="MoveResizeTo">
                        <monitor>2</monitor>
                    </action>
                </else>
            </action>
        </keybind>
        <!-- ============================================================================================== -->
        <!-- Make Window Sticky across Desktops -->
        <!-- ============================================================================================== -->
        <keybind key="W-s">
            <action name="ToggleOmnipresent"/>
        </keybind>
        <!-- ============================================================================================== -->
        <!-- Hide/Show Desktop -->
        <!-- ============================================================================================== -->
        <keybind key="W-d">
            <action name="ToggleShowDesktop"/>
        </keybind>
        <!-- ============================================================================================== -->
        <!-- Window Switching -->
        <!-- ============================================================================================== -->
        <keybind key="A-Tab">
            <action name="NextWindow">
                <raise>yes</raise>
                <!-- bring window to front -->
                <bar>no</bar>
                <!-- no extra border around window -->
                <dialog>icons</dialog>
                <!-- show horizontal icons instead of vertical list -->
                <finalactions>
                    <action name="Focus"/>
                    <action name="Raise"/>
                    <action name="Unshade"/>
                </finalactions>
            </action>
        </keybind>
        <keybind key="A-S-Tab">
            <action name="PreviousWindow">
                <raise>yes</raise>
                <!-- bring window to front -->
                <bar>no</bar>
                <!-- no extra border around window -->
                <dialog>icons</dialog>
                <!-- show horizontal icons instead of vertical list -->
                <finalactions>
                    <action name="Focus"/>
                    <action name="Raise"/>
                    <action name="Unshade"/>
                </finalactions>
            </action>
        </keybind>
        <!-- ============================================================================================== -->
        <!-- Window Tiling/Snapping -->
        <!-- ============================================================================================== -->
        <!-- Snap Left (50% width) -->
        <keybind key="W-Left">
            <action name="UnmaximizeFull"/>
            <action name="MaximizeVert"/>
            <action name="MoveResizeTo">
                <width>50%</width>
                <x>0</x>
                <y>0</y>
            </action>
        </keybind>
        <!-- Snap Right (50% width) -->
        <keybind key="W-Right">
            <action name="UnmaximizeFull"/>
            <action name="MaximizeVert"/>
            <action name="MoveResizeTo">
                <width>50%</width>
                <x>50%</x>
                <y>0</y>
            </action>
        </keybind>
        <!-- Maximize -->
        <keybind key="W-Up">
            <action name="Maximize"/>
        </keybind>
        <!-- Restore Snapping -->
        <keybind key="W-Down">
            <action name="Unmaximize"/>
        </keybind>
        <!-- ============================================================================================== -->
        <!-- Window Actions -->
        <!-- ============================================================================================== -->
        <keybind key="A-F4">
            <action name="Close"/>
        </keybind>
        <keybind key="A-Escape">
            <action name="Lower"/>
            <action name="FocusToBottom"/>
            <action name="Unfocus"/>
        </keybind>
        <!-- Toggle window descorations -->
        <keybind key="C-A-d">
            <action name="ToggleDecorations"/>
        </keybind>
        <!-- ============================================================================================== -->
        <!-- Hot Keys for Actions -->
        <!-- ============================================================================================== -->
        <!-- Run Dialog -->
        <keybind key="A-F2">
            <action name="Execute">
                <command>gmrun</command>
            </action>
        </keybind>
        <!-- Run Dialog (Windows Style)-->
        <keybind key="W-r">
            <action name="Execute">
                <command>gmrun</command>
            </action>
        </keybind>
        <!-- Transparancy + -->
        <keybind key="C-S-Up">
            <action name="Execute">
                <startupnotify>
                    <enabled>trasparencia</enabled>
                    <name>apagar</name>
                </startupnotify>
                <command>transset -a --dec .1</command>
            </action>
        </keybind>
        <!-- Transparancy - -->
        <keybind key="C-S-Down">
            <action name="Execute">
                <startupnotify>
                    <enabled>trasparencia</enabled>
                    <name>apagar</name>
                </startupnotify>
                <command>transset -a --inc 0.1</command>
            </action>
        </keybind>
        <!-- Screenshot with Print key -->
        <keybind key="Print">
            <action name="Execute">
                <command>~/.config/openbox/bin/screenshot.sh</command>
            </action>
        </keybind>
        <!-- Screenshot of current window with Alt+Print -->
        <keybind key="A-Print">
            <action name="Execute">
                <command>~/.config/openbox/bin/screenshot-window.sh</command>
            </action>
        </keybind>
        <!-- Xkill -->
        <keybind key="W-x">
            <action name="Execute">
                <command>~/.config/openbox/bin/kill-window.sh</command>
            </action>
        </keybind>
        <!-- Color Picker -->
        <keybind key="W-c">
            <action name="Execute">
                <command>~/.config/openbox/bin/colorpicker.sh</command>
            </action>
        </keybind>
        <!-- Lock Screen -->
        <keybind key="W-l">
            <action name="Execute">
                <command>xscreensaver-command -lock</command>
            </action>
        </keybind>
        <!-- ============================================================================================== -->
        <!-- Hot Keys for starting Programms -->
        <!-- ============================================================================================== -->
        <!-- Start File Manager -->
        <keybind key="W-e">
            <action name="Execute">
                <command>thunar</command>
            </action>
        </keybind>
        <!-- Start Terminal (with tmux)-->
        <keybind key="W-t">
            <action name="Execute">
                <command>urxvtcd -e bash -i -c "tmux"</command>
            </action>
        </keybind>
        <!-- Start Terminal (plain)-->
        <keybind key="W-S-t">
            <action name="Execute">
                <command>urxvtcd</command>
            </action>
        </keybind>
        <!-- Start Mail Program -->
        <keybind key="W-m">
            <action name="Execute">
                <command>evolution</command>
            </action>
        </keybind>
    </keyboard>
...


Vielleicht hat ja der ein oder andere noch was super cooles und Lust das zu sharen.

LG
 
Ich lasse mir unter Fluxbox mit "x11/unclutter" nach 3 Sekunden den Mauszeiger ausblenden. Das ist unheimlich entspannend. :)

Man muss nur darauf achten, bei Fullscreen Spielen unclutter zu beenden, sonst springt der Mauscursor immer wieder ins Bildzentrum zurück (es war nicht lustig, Q3A damit zu spielen... ;) ).
 
Mein Notebook laeuft allerdings derzeit auf Debian Wheezy anstatt FreeBSD wegen dem gut funktionierenden Hibernate

Du könntest sonst auch mal OpenBSD probieren. Die zumindest (meist) funktionierendes suspend/resume. Allerdings halt kein Flash und von nvidia sollte dein Grafikchip auch nicht sein ;).
 
Hiermit kann ich auf ein schweizer/englisches Layout umschalten, wenn ich beide Shifttasten gleichzeitig drücke:
Code:
#--- keyboard layout
setxkbmap -keycodes "evdev+aliases(qwerty)" -types "complete" -compat "complete+ledscroll(group_lock)" -symbols "pc+ch+us:2++inet(evdev)+group(shifts_toggle)" -geometry "pc(pc105)" &
Und dies damit der Cursor nicht einschläft ;)
Code:
xset r rate 240 42 &
 
Zurück
Oben