home-manager/hypr.nix

77 lines
1.8 KiB
Nix
Raw Permalink Normal View History

2024-11-27 18:14:36 +01:00
{ ... }:
{
2024-11-27 18:14:36 +01:00
#imports = [
# ./theme.nix
#];
### Hyprland
wayland.windowManager.hyprland = {
enable = true;
settings = {
### DEBUG
debug = {
disable_logs = false;
};
2024-11-27 18:14:36 +01:00
### Refer to the wiki for more information.
### https://wiki.hyprland.org/Configuring/Configuring-Hyprland/
2024-11-27 18:14:36 +01:00
### Theme
source = [ "$XDG_CONFIG_HOME/hypr/mocha.conf" ];
2024-11-27 18:14:36 +01:00
### Fuck you NVIDIA!
cursor = {
no_hardware_cursors = true;
};
2024-11-27 18:14:36 +01:00
### Monitors
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor = [
" , preferred, auto, 1"
"DP-1, preferred, auto, 1, bitdepth, 10"
];
2024-11-27 18:14:36 +01:00
### Programs
2024-11-27 18:14:36 +01:00
## Defaults
"$terminal" = "kitty";
"$menu" = "wofi --show drun";
2024-11-27 18:14:36 +01:00
## Autostart
exec-once = [
# Status bar
"waynbar"
# Display Random Wallpaper
"unlink $XDG_PICTURES_DIR/Wallpapers/current ; ln -s $XDG_PICTURES_DIR/Wallpapers/$(ls $XDG_PICTURES_DIR/Wallpapers | sort -R | tail -1) $XDG_PICTURES_DIR/Wallpapers/current && hyprpaper"
# Notification Daemon
"mako"
# Idle Manager
"hypridle"
];
2024-11-27 18:14:36 +01:00
### Environment Variables
env = [
"LIBVA_DRIVER_NAME,nvidia" # fNVIDIA
"XDG_SESSION_TYPE,wayland" # fNVIDIA
"GBM_BACKEND,nvidia-drm" # fNVIDIA
"__GLX_VENDOR_LIBRARY_NAME,nvidia" # fNVIDIA
"NVD_BACKEND,direct" # fNVIDIA
"ELECTRON_OZONE_PLATFORM_HINT,auto" # fNVIDIA
"XCURSOR_SIZE,24"
"HYPRCURSOR_SIZE,24"
];
2024-11-27 18:14:36 +01:00
### Look and Feel
# Refer to https://wiki.hyprland.org/Configuring/Variables/
# https://wiki.hyprland.org/Configuring/Variables/#general
general = {
gaps_in = 4;
gaps_out = 8;
border_size = 2;
};
};
};
}