Let hyprland do the services starting

This commit is contained in:
SebastianStork 2024-05-21 20:22:53 +02:00
parent a9e83e15ad
commit 905d55db30
13 changed files with 92 additions and 138 deletions

View file

@ -1,16 +1,82 @@
{ config, lib, ... }:
{
imports = [
./config.nix
./keybinds.nix
];
config,
pkgs,
lib,
wrappers,
...
}:
{
imports = [ ./keybinds.nix ];
options.myConfig.de.hyprland.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.de.hyprland.enable {
myConfig.de = {
hypridlelock.enable = true;
waybar.enable = true;
home.packages = [
wrappers.hyprpaper
wrappers.waybar
wrappers.hyprlock
(wrappers.rofi { inherit (config.myConfig.de) theme; })
pkgs.cliphist
pkgs.wl-clipboard
(pkgs.writeScriptBin "clipboard" "cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy")
];
wayland.windowManager.hyprland = {
enable = true;
settings = {
exec-once = [
"hyprpaper"
"sleep 3 && waybar"
"hypridle"
"cliphist wipe && wl-paste --watch cliphist store"
];
input = {
kb_layout = "de";
kb_variant = "nodeadkeys";
accel_profile = "flat";
};
device = {
name = "dell0b9f:00-27c6:0d43-touchpad";
accel_profile = "adaptive";
disable_while_typing = true;
natural_scroll = true;
middle_button_emulation = true;
};
general = {
gaps_in = 5;
gaps_out = 10;
border_size = 1;
layout = "master";
};
master = {
new_is_master = false;
no_gaps_when_only = 1;
mfact = "0.5";
};
decoration = {
rounding = 6;
drop_shadow = false;
};
animations.enabled = false;
misc = {
disable_hyprland_logo = true;
disable_splash_rendering = true;
force_default_wallpaper = 0;
key_press_enables_dpms = true;
};
};
};
};
}