mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-29 15:20:53 +01:00
fix: fix hyprland on enigma
This commit is contained in:
parent
1a904cc93c
commit
1e0e602bb7
1 changed files with 149 additions and 150 deletions
|
@ -1,4 +1,9 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.luj.programs.hyprland;
|
cfg = config.luj.programs.hyprland;
|
||||||
terminal = "${pkgs.kitty}/bin/kitty";
|
terminal = "${pkgs.kitty}/bin/kitty";
|
||||||
|
@ -10,8 +15,7 @@ with lib;
|
||||||
enable = mkEnableOption "Enable HyprLand";
|
enable = mkEnableOption "Enable HyprLand";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable
|
config = mkIf cfg.enable {
|
||||||
{
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.unstable.hyprland;
|
package = pkgs.unstable.hyprland;
|
||||||
|
@ -25,7 +29,6 @@ with lib;
|
||||||
"$term" = terminal;
|
"$term" = terminal;
|
||||||
"$launcher" = menu;
|
"$launcher" = menu;
|
||||||
|
|
||||||
|
|
||||||
general = {
|
general = {
|
||||||
gaps_in = "6";
|
gaps_in = "6";
|
||||||
gaps_out = "10";
|
gaps_out = "10";
|
||||||
|
@ -53,14 +56,12 @@ with lib;
|
||||||
"2,monitor:HDM1-A-1"
|
"2,monitor:HDM1-A-1"
|
||||||
];
|
];
|
||||||
|
|
||||||
exec = [
|
exec = [ "hyprpaper" ];
|
||||||
"hyprpaper"
|
|
||||||
];
|
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
"LIBVA_DRIVER_NAME, nvidia"
|
"LIBVA_DRIVER_NAME, nvidia"
|
||||||
"WLR_NO_HARDWARE_CURSORS, 1"
|
"WLR_NO_HARDWARE_CURSORS, 1"
|
||||||
"WLR_DRM_DEVICES,/dev/dri/card0"
|
"WLR_DRM_DEVICES,/home/julien/.config/hypr/card"
|
||||||
];
|
];
|
||||||
|
|
||||||
monitor = [
|
monitor = [
|
||||||
|
@ -112,7 +113,6 @@ with lib;
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -122,18 +122,18 @@ with lib;
|
||||||
wallpaper = ,${../../machines/x2100/wallpaper.jpg}
|
wallpaper = ,${../../machines/x2100/wallpaper.jpg}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
services.swayidle = {
|
services.swayidle = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemdTarget = "hyprland-session.target";
|
systemdTarget = "hyprland-session.target";
|
||||||
events = [
|
events = [
|
||||||
{ event = "before-sleep"; command = "${pkgs.swaylock-effects}/bin/swaylock --config /home/julien/.config/swaylock/config"; }
|
{
|
||||||
|
event = "before-sleep";
|
||||||
|
command = "${pkgs.swaylock-effects}/bin/swaylock --config /home/julien/.config/swaylock/config";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.swaylock = {
|
||||||
programs.swaylock =
|
|
||||||
{
|
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.swaylock-effects;
|
package = pkgs.swaylock-effects;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -160,12 +160,11 @@ with lib;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
qt6.qtwayland
|
||||||
|
libsForQt5.qt5.qtwayland
|
||||||
home.packages = with pkgs;
|
hyprpaper
|
||||||
[ qt6.qtwayland libsForQt5.qt5.qtwayland hyprpaper ];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue