From 7ff834541460ca686b39fba889c22485f86596e2 Mon Sep 17 00:00:00 2001 From: meml0rz Date: Wed, 13 Nov 2024 23:16:42 +0100 Subject: [PATCH] herbstluftwm --- configuration.nix | 6 +++++- modules/home.nix | 35 +++++++++++++++++------------------ modules/nix/herbst.nix | 15 +++++++++++++++ modules/nix/hypr.nix | 5 ++++- 4 files changed, 41 insertions(+), 20 deletions(-) create mode 100644 modules/nix/herbst.nix diff --git a/configuration.nix b/configuration.nix index 368c91b..a476769 100644 --- a/configuration.nix +++ b/configuration.nix @@ -64,6 +64,7 @@ programs = { hyprland = { enable = true; + xwayland.enable = true; }; nix-ld.enable = true; }; @@ -99,6 +100,9 @@ dosfstools ntfs3g waybar + xdg-desktop-portal-hyprland + grim + slurp # cli neofetch @@ -131,8 +135,8 @@ # misc cava mumble - discord-screenaudio discord + xwaylandvideobridge # hardware & shit libplist diff --git a/modules/home.nix b/modules/home.nix index 93e3945..321ce72 100644 --- a/modules/home.nix +++ b/modules/home.nix @@ -1,22 +1,21 @@ { config, pkgs, ... }: { - imports = - [ - ./nix/user.nix - ./nix/hypr.nix - ./nix/kitty.nix - ./nix/nvim/default.nix - ]; - - home.enableNixpkgsReleaseCheck = false; - home.stateVersion = "24.05"; + imports = [ + ./nix/user.nix + ./nix/hypr.nix + ./nix/kitty.nix + ./nix/nvim/default.nix + ./nix/herbst.nix + ]; - home.file = { - # WAYBAR - ".config/waybar/style.css".source = ./raw/waybar/style.css; - ".config/waybar/config".source = ./raw/waybar/config; - # WP - ".wp/temple.png".source = ./raw/wp/temple.png; - ".wp/skull_purple.png".source = ./raw/wp/skull_purple.png; - }; + home.enableNixpkgsReleaseCheck = false; + home.stateVersion = "24.05"; + home.file = { + # WAYBAR + ".config/waybar/style.css".source = ./raw/waybar/style.css; + ".config/waybar/config".source = ./raw/waybar/config; + # WP + ".wp/temple.png".source = ./raw/wp/temple.png; + ".wp/skull_purple.png".source = ./raw/wp/skull_purple.png; + }; } diff --git a/modules/nix/herbst.nix b/modules/nix/herbst.nix new file mode 100644 index 0000000..7e6c8a9 --- /dev/null +++ b/modules/nix/herbst.nix @@ -0,0 +1,15 @@ +{ config, pkgs, ... }: +{ + xsession.windowManager.herbstluftwm = { + enable = true; + keybinds = { + Mod4-Return = "${pkgs.alacritty}/bin/alacritty"; + Mod4-space = "${pkgs.rofi}/bin/rofi -show drun"; + }; + settings = { + gapless_grid = false; + window_border_width = 1; + window_border_active_color = "#FF0000"; + }; + }; +} diff --git a/modules/nix/hypr.nix b/modules/nix/hypr.nix index 367298c..fec3fa0 100644 --- a/modules/nix/hypr.nix +++ b/modules/nix/hypr.nix @@ -2,6 +2,8 @@ { wayland.windowManager.hyprland = { enable = true; + xwayland.enable = true; + systemd.enable = true; extraConfig = '' windowrulev2 = opacity 0.0 override, class:^(xwaylandvideobridge)$ windowrulev2 = noanim, class:^(xwaylandvideobridge)$ @@ -18,10 +20,11 @@ ''; settings = { - "monitor" = "HDMI-A-2, 2560x1440@144, 0x0, 1"; + "monitor" = "HDMI-A-2, 2560x1440@144, 0x0, 1, bitdepth,10"; "$mod" = "SUPER"; exec-once = [ "waybar &" + "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP" "${pkgs.swaybg}/bin/swaybg -i ~/.wp/temple.png" ]; bind = [