From 75c5c71ea1a9e51e45aa8d043d767ca190e0a29d Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 2 Aug 2023 15:49:33 +0300 Subject: [PATCH] awesome window manager --- hosts/sakotop/configuration.nix | 3 +- modules/desktop/awesome/default.nix | 76 +++++++++++++++++++++++++++++ modules/desktop/default.nix | 1 + 3 files changed, 79 insertions(+), 1 deletion(-) diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 63e4ae6b..5b64e118 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -14,7 +14,8 @@ modules = { desktop = { kitty.enable = true; - xmonad.enable = true; + xmonad.enable = false; + awesome.enable = true; dwm = { enable = false; dwmblocks.enable = false; diff --git a/modules/desktop/awesome/default.nix b/modules/desktop/awesome/default.nix index 195707d9..9cd7b936 100644 --- a/modules/desktop/awesome/default.nix +++ b/modules/desktop/awesome/default.nix @@ -9,5 +9,81 @@ in }; config = mkIf cfg.enable { + services.xserver = { + enable = true; + windowManager.awesome = { + enable = true; + luaModules = with pkgs.luaPackages; [ + luarocks + luadbi-mysql + ]; + }; + displayManager = { + defaultSession = "none+awesome"; + lightdm = { + enable = true; + background = ../../../config/bspwm/background.png; + greeters.gtk = { + enable = true; + theme = { + name = "vimix-dark-ruby"; + package = pkgs.vimix-gtk-themes; + }; + }; + + }; + }; + libinput = { + enable = true; + + # no mouse accel + mouse = { + accelProfile = "flat"; + }; + + # no touchpad accel + touchpad = { + accelProfile = "flat"; + }; + }; + }; + users.users.sako.packages = with pkgs; [ + rofi + # network + networkmanagerapplet + # brightness + brightnessctl + # gee tee k + vimix-gtk-themes + vimix-icon-theme + lxappearance + catppuccin-cursors.mochaDark + # screen shot (s) + flameshot + ]; + + home-manager.users.sako = { pkgs , ...}: { + home.pointerCursor = { + name = "Catppuccin-Mocha-Dark"; + size = 16; + x11 = { + enable = true; + }; + gtk.enable = true; + package = pkgs.catppuccin-cursors.mochaDark; + }; + gtk = { + theme.name = "vimix-dark-ruby"; + iconTheme.name = "Vimix Ruby Dark"; + }; + home.file = { + "background.png" = { + enable = true; + source = ../../../config/background.png; + }; + }; + xdg.configFile = { + }; + }; }; } diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 6b0a09f4..b8f72f76 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -1,6 +1,7 @@ { imports = [ # window managers + ./awesome ./bspwm ./dwm ./hyprland