Bare openbox config

This commit is contained in:
Nathan Anderson 2024-01-20 12:34:12 -07:00
parent 576722233a
commit 18a7fb90e9
17 changed files with 135 additions and 54 deletions

View File

@ -0,0 +1,52 @@
<?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">
<item label="Terminal emulator">
<action name="Execute">
<execute>x-terminal-emulator</execute>
</action>
</item>
<item label="Web browser">
<action name="Execute">
<execute>x-www-browser</execute>
</action>
</item>
<separator />
<menu execute="openbox-menu lxde-applications.menu" id="apps" label="Applications"/>
<menu id="client-list-menu" />
<separator />
<item label="Configurations">
<action name="Execute">
<execute>obconf</execute>
</action>
</item>
<item label="Reconfigure">
<action name="Reconfigure" />
</item>
<separator />
<menu id="exit" label="Exit" >
<item label="Logout">
<action name="Exit" />
</item>
<item label="Suspend">
<action name="Execute">
<execute>systemctl suspend</execute>
</action>
</item>
<item label="Reboot">
<action name="Execute">
<execute>systemctl reboot</execute>
</action>
</item>
<item label="Shutdown">
<action name="Execute">
<execute>systemctl poweroff</execute>
</action>
</item>
</menu>
</menu>
</openbox_menu>

View File

@ -1,52 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<openbox_menu
xmlns="http://openbox.org/" <openbox_menu>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <!-- Note: for localization support of menu items "client-menu" has to be removed here -->
xsi:schemaLocation="http://openbox.org/ <menu id="client-menu">
file:///usr/share/openbox/menu.xsd"> <item label="Minimize">
<menu id="root-menu" label="Openbox 3"> <action name="Iconify" />
<item label="Terminal emulator">
<action name="Execute">
<execute>x-terminal-emulator</execute>
</action>
</item> </item>
<item label="Maximize">
<action name="ToggleMaximize" />
</item>
<item label="Fullscreen">
<action name="ToggleFullscreen" />
</item>
<item label="Roll up/down">
<action name="ToggleShade" />
</item>
<item label="Decorations">
<action name="ToggleDecorations" />
</item>
<item label="Always on Top">
<action name="ToggleAlwaysOnTop" />
</item>
<!--
Any menu with the id "workspaces" will be hidden
if there is only a single workspace available.
-->
<menu id="workspaces" label="Workspace">
<item label="Move left">
<action name="SendToDesktop" to="left" />
</item>
<item label="Move right">
<action name="SendToDesktop" to="right" />
</item>
<separator />
<item label="Always on Visible Workspace">
<action name="ToggleOmnipresent" />
</item>
</menu>
<item label="Close">
<action name="Close" />
</item>
</menu>
<menu id="root-menu">
<item label="Web browser"> <item label="Web browser">
<action name="Execute"> <action name="Execute" command="firefox" />
<execute>x-www-browser</execute>
</action>
</item> </item>
<separator /> <item label="Terminal">
<menu execute="openbox-menu lxde-applications.menu" id="apps" label="Applications"/> <action name="Execute" command="foot" />
<menu id="client-list-menu" />
<separator />
<item label="Configurations">
<action name="Execute">
<execute>obconf</execute>
</action>
</item> </item>
<item label="Reconfigure"> <item label="Reconfigure">
<action name="Reconfigure" /> <action name="Reconfigure" />
</item> </item>
<separator /> <item label="Exit">
<menu id="exit" label="Exit" >
<item label="Logout">
<action name="Exit" /> <action name="Exit" />
</item> </item>
<item label="Suspend"> <item label="Poweroff">
<action name="Execute"> <action name="Execute" command="systemctl -i poweroff" />
<execute>systemctl suspend</execute>
</action>
</item>
<item label="Reboot">
<action name="Execute">
<execute>systemctl reboot</execute>
</action>
</item>
<item label="Shutdown">
<action name="Execute">
<execute>systemctl poweroff</execute>
</action>
</item> </item>
</menu> </menu>
<menu id="some-custom-menu">
<item label="Reconfigure">
<action name="Reconfigure" />
</item>
<item label="Exit">
<action name="Exit" />
</item>
</menu> </menu>
</openbox_menu> </openbox_menu>

View File

@ -24,7 +24,7 @@
### ###
config = lib.mkIf config.labwc.enable { config = lib.mkIf config.labwc.enable {
programs.sway.enable = true; # programs.sway.enable = true;
nixpkgs.config.allowUnfree = config.labwc.useNonFree; nixpkgs.config.allowUnfree = config.labwc.useNonFree;
# For R2ModMan # For R2ModMan
@ -61,6 +61,7 @@
git git
glib # gsettings glib # gsettings
grim grim
ghostscript
labwc labwc
libnotify libnotify
mako mako
@ -85,9 +86,9 @@
# ]) # ])
]; ];
environment.loginShellInit = '' # environment.loginShellInit = ''
[[ "$(tty)" == /dev/tty1 ]] && labwc # [[ "$(tty)" == /dev/tty1 ]] && labwc
''; # '';
# Thunar config # Thunar config
programs.thunar = { programs.thunar = {
enable = true; enable = true;
@ -108,8 +109,15 @@
### ###
## Services ## Services
### ###
# Printing
services.printing.enable = true;
services.printing.drivers = [ pkgs.brlaser ];
services.gvfs.enable = true; # thunar functionalities services.gvfs.enable = true; # thunar functionalities
services.openssh.enable = true; services.openssh.enable = true;
services.dbus.enable = true; services.dbus.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;