mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
102 lines
2.2 KiB
Nix
102 lines
2.2 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
wrappers,
|
|
...
|
|
}@moduleArgs:
|
|
{
|
|
imports = [ ./keybinds.nix ];
|
|
|
|
options.myConfig.de.hyprland.enable = lib.mkEnableOption "" // {
|
|
default = moduleArgs.osConfig.myConfig.de.hyprland.enable or false;
|
|
};
|
|
|
|
config = lib.mkIf config.myConfig.de.hyprland.enable {
|
|
home.packages = [
|
|
wrappers.hyprpaper
|
|
wrappers.waybar
|
|
wrappers.hypridle
|
|
|
|
(wrappers.rofi { inherit (config.myConfig) theme; })
|
|
pkgs.cliphist
|
|
pkgs.wl-clipboard
|
|
(pkgs.writeScriptBin "clipboard" "cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy")
|
|
|
|
pkgs.playerctl
|
|
pkgs.brightnessctl
|
|
pkgs.grimblast
|
|
];
|
|
|
|
wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
exec-once = [
|
|
"hyprpaper"
|
|
"sleep 3 && waybar"
|
|
"hypridle"
|
|
"cliphist wipe && wl-paste --watch cliphist store"
|
|
];
|
|
|
|
monitor = [
|
|
"Unknown-1,disable"
|
|
# North
|
|
"DP-1,2560x1440@144,0x0,1"
|
|
"HDMI-A-1,2560x1440@60,-1440x-617,1,transform,1"
|
|
# Inspiron
|
|
"eDP-1,1920x1080@60,0x0,1"
|
|
",preferred,auto,1,mirror,eDP-1"
|
|
];
|
|
|
|
workspace = [ "m[HDMI-A-1],layoutopt:orientation:top" ];
|
|
|
|
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;
|
|
};
|
|
|
|
gestures.workspace_swipe = 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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|