diff options
| author | Andrew Guschin <saintruler@gmail.com> | 2020-07-20 17:12:30 -0400 |
|---|---|---|
| committer | Andrew Guschin <saintruler@gmail.com> | 2020-07-20 17:12:30 -0400 |
| commit | f4173cd2c510631049bac9399e013a770764811e (patch) | |
| tree | 180ef4da2db914962f043b00455cdfa390023465 /.config/openbox | |
| parent | be9e153ae1efb20077ac519ae1374c47ab5b5e60 (diff) | |
Restyled polybar and tweaked openbox to use env variables
Diffstat (limited to '.config/openbox')
| -rwxr-xr-x | .config/openbox/autostart | 2 | ||||
| -rw-r--r-- | .config/openbox/menu.xml | 5 | ||||
| -rw-r--r-- | .config/openbox/rc.xml | 26 |
3 files changed, 18 insertions, 15 deletions
diff --git a/.config/openbox/autostart b/.config/openbox/autostart index 2a75664..bdad5b6 100755 --- a/.config/openbox/autostart +++ b/.config/openbox/autostart @@ -6,5 +6,5 @@ # need to change .xprofile killall -q polybar -polybar example & +polybar main & XDG_SESSION_TYPE=x11 plank & diff --git a/.config/openbox/menu.xml b/.config/openbox/menu.xml index cd37853..866980a 100644 --- a/.config/openbox/menu.xml +++ b/.config/openbox/menu.xml @@ -1,14 +1,15 @@ <?xml version="1.0" encoding="utf-8"?> <openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd"> <menu id="root-menu" label="Openbox 3"> + <separator label="Openbox"/> <item label="Terminal emulator"> <action name="Execute"> - <execute>x-terminal-emulator</execute> + <execute>sh -c "setsid -f $TERMINAL"</execute> </action> </item> <item label="Web browser"> <action name="Execute"> - <execute>x-www-browser</execute> + <execute>sh -c "setsid -f $BROWSER"</execute> </action> </item> <!-- This requires the presence of the 'openbox-menu' package to work --> diff --git a/.config/openbox/rc.xml b/.config/openbox/rc.xml index 874fc44..e182ba2 100644 --- a/.config/openbox/rc.xml +++ b/.config/openbox/rc.xml @@ -171,20 +171,18 @@ <moveButton>Middle</moveButton> <!-- 'Left', 'Middle', 'Right' --> </dock> - <keyboard> <chainQuitKey>C-g</chainQuitKey> <keybind key="W-Return"> <action name="Execute"> - <command>x-terminal-emulator</command> + <command>sh -c "setsid -f $TERMINAL"</command> </action> </keybind> <keybind key="W-Tab"> <action name="Execute"> - <command>x-terminal-emulator -e htop</command> + <command>sh -c "setsid -f $TERMINAL -e htop"</command> </action> </keybind> - <!-- Keybindings for screenshots --> <keybind key="Print"> <action name="Execute"> @@ -196,7 +194,6 @@ <command>screenshot area to file</command> </action> </keybind> - <keybind key="C-Print"> <action name="Execute"> <command>screenshot window to clip</command> @@ -207,7 +204,6 @@ <command>screenshot window to file</command> </action> </keybind> - <keybind key="W-Print"> <action name="Execute"> <command>screenshot screen to clip</command> @@ -218,7 +214,18 @@ <command>screenshot screen to file</command> </action> </keybind> - + <!-- App launcher --> + <keybind key="W-p"> + <action name="Execute"> + <command>rofi -show drun -theme nord</command> + </action> + </keybind> + <!-- Browser --> + <keybind key="W-w"> + <action name="Execute"> + <command>sh -c "setsid -f $BROWSER"</command> + </action> + </keybind> <!-- Keybindings for desktop switching --> <keybind key="W-Left"> <action name="GoToDesktop"> @@ -244,7 +251,6 @@ <wrap>no</wrap> </action> </keybind> - <!-- Tiling-like keybindings for sending windows to dekstops --> <keybind key="W-S-1"> <action name="SendToDesktop"> @@ -300,7 +306,6 @@ <follow>no</follow> </action> </keybind> - <!-- Tiling-like keybindings for changing desktop --> <keybind key="W-1"> <action name="GoToDesktop"> @@ -350,7 +355,6 @@ <keybind key="W-d"> <action name="ToggleShowDesktop"/> </keybind> - <!-- Keybindings for windows --> <keybind key="A-F4"> <action name="Close"/> @@ -365,7 +369,6 @@ <menu>client-menu</menu> </action> </keybind> - <!-- Keybindings for window switching --> <keybind key="A-Tab"> <action name="NextWindow"> @@ -397,7 +400,6 @@ </action> </keybind> </keyboard> - <mouse> <dragThreshold>1</dragThreshold> <!-- number of pixels the mouse must move before a drag begins --> |