hyprland initial config

This commit is contained in:
2024-04-17 10:04:55 +02:00
parent 3c61157a52
commit 5abbb6d27e
5 changed files with 104 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
{lib, pkgs, config, ...}: {
imports = [
];
dconf.settings."org/gnome/desktop/interface".color-scheme =
if config.colorscheme.variant == "dark"
then "prefer-dark"
else if config.colorscheme.variant == "light"
then "prefer-light"
else "default";
xdg.portal.enable = true;
}

View File

@@ -0,0 +1,29 @@
{pkgs, ...}: {
imports = [];
xdg.mimeApps.enable = true;
home.packages = with pkgs; [
grim
gtk3
imv
mimeo
primary-xwayland
pulseaudio
slurp
waypipe
wf-recorder
wl-clipboard
wl-mirror
wl-mirror-pick
xdg-utils
ydotool
];
home.sessionVariables = {
MOZ_ENABLE_WAYLAND = 1;
QT_QPA_PLATFORM = "wayland";
LIBSEAT_BACKEND = "logind";
};
xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-wlr];
}

View File

@@ -0,0 +1 @@
{imports = [../common];}

View File

@@ -0,0 +1,40 @@
{
lib,
config,
pkgs,
...
}: let
hyprland = pkgs.inputs.hyprland.hyprland.override {wrapRuntimeDeps = false;};
xdhp = pkgs.inputs.hyprland.xdg-desktop-portal-hyprland.override {inherit hyprland;};
in {
imports = [
../common
../common/wayland-wm
];
xdg.portal = {
extraPortals = [xdhp];
configPackages = [hyprland];
};
home.packages = with pkgs; [
inputs.hyprwm-contrib.grimblast
hyprslurp
hyprpicker
];
wayland.windowManger.hyprland = {
enable = true;
package = hyprland;
systemd = {
enable = true;
# Same as default but stop graphical-session too
extraCommands = lib.mkBefore [
"systemctl --user stop graphical-session.target"
"systemctl --user start hyprland-session.target"
];
};
#TODO: Add hyprland config
};
}