From 184bd30bcb303104a4981ac742d8f8961c5477e7 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Mon, 1 Jan 2024 10:57:38 -0500 Subject: several changes, hyprland --- modules/desktop/awesome/rc.lua | 2 +- modules/desktop/awesome/theme.lua | 50 ++++++++++++++++++------------------ modules/desktop/default.nix | 1 + modules/desktop/hyprland/default.nix | 36 ++++++++++++++++++++++++++ modules/desktop/rofi.nix | 7 ++++- 5 files changed, 69 insertions(+), 27 deletions(-) create mode 100644 modules/desktop/hyprland/default.nix (limited to 'modules/desktop') diff --git a/modules/desktop/awesome/rc.lua b/modules/desktop/awesome/rc.lua index 41728fa..99abc89 100644 --- a/modules/desktop/awesome/rc.lua +++ b/modules/desktop/awesome/rc.lua @@ -94,7 +94,7 @@ awful.layout.layouts = { -- awful.layout.suit.spiral, -- awful.layout.suit.spiral.dwindle, awful.layout.suit.max, - -- awful.layout.suit.max.fullscreen, + awful.layout.suit.max.fullscreen, -- awful.layout.suit.magnifier, -- awful.layout.suit.corner.nw, -- awful.layout.suit.corner.ne, diff --git a/modules/desktop/awesome/theme.lua b/modules/desktop/awesome/theme.lua index 18be5db..401eebb 100644 --- a/modules/desktop/awesome/theme.lua +++ b/modules/desktop/awesome/theme.lua @@ -77,31 +77,31 @@ theme.menu_width = dpi(100) -- Define the image to load --- theme.titlebar_close_button_normal = themes_path.."zenburn/titlebar/close_normal.png" --- theme.titlebar_close_button_focus = themes_path.."zenburn/titlebar/close_focus.png" - --- theme.titlebar_minimize_button_normal = themes_path.."zenburn/titlebar/minimize_normal.png" --- theme.titlebar_minimize_button_focus = themes_path.."zenburn/titlebar/minimize_focus.png" - --- theme.titlebar_ontop_button_normal_inactive = themes_path.."zenburn/titlebar/ontop_normal_inactive.png" --- theme.titlebar_ontop_button_focus_inactive = themes_path.."zenburn/titlebar/ontop_focus_inactive.png" --- theme.titlebar_ontop_button_normal_active = themes_path.."zenburn/titlebar/ontop_normal_active.png" --- theme.titlebar_ontop_button_focus_active = themes_path.."zenburn/titlebar/ontop_focus_active.png" - --- theme.titlebar_sticky_button_normal_inactive = themes_path.."zenburn/titlebar/sticky_normal_inactive.png" --- theme.titlebar_sticky_button_focus_inactive = themes_path.."zenburn/titlebar/sticky_focus_inactive.png" --- theme.titlebar_sticky_button_normal_active = themes_path.."zenburn/titlebar/sticky_normal_active.png" --- theme.titlebar_sticky_button_focus_active = themes_path.."zenburn/titlebar/sticky_focus_active.png" - --- theme.titlebar_floating_button_normal_inactive = themes_path.."zenburn/titlebar/floating_normal_inactive.png" --- theme.titlebar_floating_button_focus_inactive = themes_path.."zenburn/titlebar/floating_focus_inactive.png" --- theme.titlebar_floating_button_normal_active = themes_path.."zenburn/titlebar/floating_normal_active.png" --- theme.titlebar_floating_button_focus_active = themes_path.."zenburn/titlebar/floating_focus_active.png" - --- theme.titlebar_maximized_button_normal_inactive = themes_path.."zenburn/titlebar/maximized_normal_inactive.png" --- theme.titlebar_maximized_button_focus_inactive = themes_path.."zenburn/titlebar/maximized_focus_inactive.png" --- theme.titlebar_maximized_button_normal_active = themes_path.."zenburn/titlebar/maximized_normal_active.png" --- theme.titlebar_maximized_button_focus_active = themes_path.."zenburn/titlebar/maximized_focus_active.png" +theme.titlebar_close_button_normal = themes_path.."zenburn/titlebar/close_normal.png" +theme.titlebar_close_button_focus = themes_path.."zenburn/titlebar/close_focus.png" + +theme.titlebar_minimize_button_normal = themes_path.."zenburn/titlebar/minimize_normal.png" +theme.titlebar_minimize_button_focus = themes_path.."zenburn/titlebar/minimize_focus.png" + +theme.titlebar_ontop_button_normal_inactive = themes_path.."zenburn/titlebar/ontop_normal_inactive.png" +theme.titlebar_ontop_button_focus_inactive = themes_path.."zenburn/titlebar/ontop_focus_inactive.png" +theme.titlebar_ontop_button_normal_active = themes_path.."zenburn/titlebar/ontop_normal_active.png" +theme.titlebar_ontop_button_focus_active = themes_path.."zenburn/titlebar/ontop_focus_active.png" + +theme.titlebar_sticky_button_normal_inactive = themes_path.."zenburn/titlebar/sticky_normal_inactive.png" +theme.titlebar_sticky_button_focus_inactive = themes_path.."zenburn/titlebar/sticky_focus_inactive.png" +theme.titlebar_sticky_button_normal_active = themes_path.."zenburn/titlebar/sticky_normal_active.png" +theme.titlebar_sticky_button_focus_active = themes_path.."zenburn/titlebar/sticky_focus_active.png" + +theme.titlebar_floating_button_normal_inactive = themes_path.."zenburn/titlebar/floating_normal_inactive.png" +theme.titlebar_floating_button_focus_inactive = themes_path.."zenburn/titlebar/floating_focus_inactive.png" +theme.titlebar_floating_button_normal_active = themes_path.."zenburn/titlebar/floating_normal_active.png" +theme.titlebar_floating_button_focus_active = themes_path.."zenburn/titlebar/floating_focus_active.png" + +theme.titlebar_maximized_button_normal_inactive = themes_path.."zenburn/titlebar/maximized_normal_inactive.png" +theme.titlebar_maximized_button_focus_inactive = themes_path.."zenburn/titlebar/maximized_focus_inactive.png" +theme.titlebar_maximized_button_normal_active = themes_path.."zenburn/titlebar/maximized_normal_active.png" +theme.titlebar_maximized_button_focus_active = themes_path.."zenburn/titlebar/maximized_focus_active.png" theme.wallpaper = themes_path.."zenburn/zenburn-background.png" diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 18f184e..546d7de 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -1,6 +1,7 @@ [ ./xserver ./awesome + ./hyprland ./picom.nix ./rofi.nix ] diff --git a/modules/desktop/hyprland/default.nix b/modules/desktop/hyprland/default.nix new file mode 100644 index 0000000..2acf5b6 --- /dev/null +++ b/modules/desktop/hyprland/default.nix @@ -0,0 +1,36 @@ +{ config, lib, pkgs, user, ... }: +with lib; +let +in +{ + options = { + hyprland = { + enable = mkOption { + type = types.bool; + default = false; + }; + }; + }; + + config = mkIf (config.hyprland.enable) + { + environment.variables.WLR_NO_HARDWARE_CURSORS = "1"; + environment.systemPackages = with pkgs; [ + wayland + glib + wl-clipboard + wdisplays + hyprpaper + ]; + + programs.hyprland = { + enable = true; + xwayland.enable = true; + enableNvidiaPatches = true; + }; + + programs.waybar = { + enable = true; + }; + }; +} diff --git a/modules/desktop/rofi.nix b/modules/desktop/rofi.nix index d5aba06..85726b8 100644 --- a/modules/desktop/rofi.nix +++ b/modules/desktop/rofi.nix @@ -11,7 +11,12 @@ with lib; }; config.home-manager.users.${user} = mkIf (config.rofi.enable) { - programs.rofi = { + + programs.rofi = mkIf (config.xserver.enable) { + enable = true; + }; + + programs.wofi = mkIf (config.hyprland.enable) { enable = true; }; }; -- cgit v1.2.1