From 9b18af5d5a63cc7bdc23c03046ee2db02ec4dfff Mon Sep 17 00:00:00 2001 From: Crazazy Date: Fri, 17 Nov 2023 20:07:28 +0100 Subject: start up openbox --- nixos.org | 815 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 802 insertions(+), 13 deletions(-) (limited to 'nixos.org') diff --git a/nixos.org b/nixos.org index 12898c7..4d901a7 100644 --- a/nixos.org +++ b/nixos.org @@ -21,9 +21,9 @@ stuff } #+end_src * Configuration -:PROPERTIES: -:header-args: :tangle no :noweb-ref nixos-config -:END: + :PROPERTIES: + :header-args: :tangle no :noweb-ref nixos-config + :END: ** Hardware Normal nixos installation comes with a hardware-configuration file. we are not going to add the contents of that @@ -163,9 +163,9 @@ stuff config = with lib; mkIf (config.homeBinds != [ ]) { fileSystems = genAttrs (map (loc: "/home/${config.mainUser}/${loc}") config.homeBinds) (loc: { - device = "${config.persistRoot}${loc}"; - fsType = "none"; - options = [ "bind" ]; + device = "${config.persistRoot}${loc}"; + fsType = "none"; + options = [ "bind" ]; }); systemd.services.fix-home-perms = { wantedBy = [ "multi-user.target" ]; @@ -216,14 +216,802 @@ stuff services.xserver.libinput.enable = true; } #+end_src -*** KDE - I have decided to be lazy and not install a fancy window manager or whatever into the system. Thats headache +*** openbox + I've decided to embrace minimal-ness and make an openbox config #+begin_src nix { - services.xserver.displayManager.sddm.enable = true; - services.xserver.desktopManager.plasma5.enable = true; + services.xserver.displayManager.lightdm.enable = true; + services.xserver.windowManager.openbox.enable = true; + environment.systemPackages = with pkgs; [ + obconf openbox-menu rox-filer brightnessctl + ]; + environment.etc."xdg/openbox/autostart.sh" = { + mode = "0700"; + text = '' + ${pkgs.tint2}/bin/tint2 + ''; + }; + environment.etc."xdg/openbox/menu.xml".text = '' + + + + + + ''; + environment.etc."xdg/openbox/rc.xml".source = ./rc.xml; } #+end_src + For keybinds, we also need an =rc.xml= file + #+begin_src xml :tangle rc.xml :noweb-ref no + + + + + + + + 10 + 20 + + + + yes + + no + + yes + + no + + 200 + + no + + + + + Smart + +
yes
+ + Primary + + 1 + +
+ + + Clearlooks + NLIMC + + yes + yes + + sans + 8 + + bold + + normal + + + + sans + 8 + + bold + + normal + + + + sans + 9 + + normal + + normal + + + + sans + 9 + + normal + + normal + + + + sans + 9 + + bold + + normal + + + + sans + 9 + + bold + + normal + + + + + + + 4 + 1 + + + + 875 + + + + + yes + Nonpixel + + Center + + + + + 10 + + 10 + + + + + + + 0 + 0 + 0 + 0 + + + + TopLeft + + 0 + 0 + no + Above + + Vertical + + no + 300 + + 300 + + Middle + + + + + C-g + + + + leftno + + + rightno + + + upno + + + downno + + + leftno + + + rightno + + + upno + + + downno + + + 1 + + + 2 + + + 3 + + + 4 + + + + + + + + + + + + + + + + client-menu + + + + + + + + + + + + + + + + + + + + + + + + yesyes + + + + + + + + + + + + right + + + + + left + + + + + up + + + + + down + + + + + brightnessctl set +10% + + + + + brightnessctl set -10% + + + + + amixer set Master 10%- + + + + + amixer set Master 10%+ + + + + + + + + true + Browser + + rox + + + + + + 1 + + 500 + + 400 + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + previous + + + next + + + previous + + + next + + + previous + + + next + + + + + + + + + + + + + + no + + + + + + + + + + + yes + + + + + + + + + + + + + + + + + + + + + + + + + client-menu + + + + + + top + + + + + + left + + + + + + right + + + + + + bottom + + + + + + client-menu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + client-menu + + + + + client-menu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + vertical + + + horizontal + + + + + + + + + + + + + + + + + previous + + + next + + + + previous + + + next + + + previous + + + next + + + + + + + + + + + + + + + + client-list-combined-menu + + + root-menu + + + + + + previous + + + next + + + previous + + + next + + + + + + + + + menu.xml + 200 + + no + + 100 + + 400 + + yes + + yes + + + + + + + +
+ + #+end_src ** Networking Some default network settings for my laptop #+begin_src nix @@ -291,14 +1079,15 @@ stuff krdc mpv # nur.repos.crazazy.seamonkey - myFirefox + # myFirefox + vimb unzip zip vim (wine.override { wineBuild = "wineWow"; }) ]; # persistent directory for my browser details homeBinds = [ - ".mozilla/firefox" + # ".mozilla/firefox" ".config/discord" ".wine" ]; @@ -341,7 +1130,7 @@ stuff #+begin_src nix { services.emacs = { - package = pkgs.emacs29-pgtk; + package = pkgs.emacs29; defaultEditor = true; enable = true; }; -- cgit 1.4.1-2-gfad0