hyprland: add tools

This commit is contained in:
makefu 2024-07-30 22:34:52 +02:00
parent ad5e76819b
commit 36569baaf0
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
2 changed files with 91 additions and 61 deletions

View file

@ -7,94 +7,117 @@ in {
./kitty.nix ./kitty.nix
./passwords.nix ./passwords.nix
./autostart.nix ./autostart.nix
./tools.nix
]; ];
# autostart # autostart
programs.hyprland.enable = true; programs.hyprland.enable = true;
security.pam.services.hyprlock = {};
# security.pam.services.swaylock = {}; programs.hyprland.package = pkgs.hyprland.overrideAttrs {
src = pkgs.fetchFromGitHub {
owner = "hyprwm";
repo = "Hyprland";
fetchSubmodules = true;
rev = "v0.41.1";
hash = "sha256-hLnnNBWP1Qjs1I3fndMgp8rbWJruxdnGTq77A4Rv4R4=";
};
};
programs.hyprland.xwayland.enable = true;
programs.hyprlock.enable = true;
# automatically enabled by programs.hyprlock
# services.hypridle.enable = true;
# security.pam.services.hyprlock = {};
environment.systemPackages = [ pkgs.brightnessctl ];
home-manager.users.${mainUser} = { home-manager.users.${mainUser} = {
home.packages = with pkgs; [ home.packages = with pkgs; [
dolphin dolphin
wofi wofi
hyprland
hypridle
hyprlock
grimblast # screenshot grimblast # screenshot
]; ];
programs.hyprlock.enable = true; programs.hyprlock.enable = true;
programs.hyprlock.settings = programs.hyprlock.settings =
{ {
general = { general = {
disable_loading_bar = false; disable_loading_bar = false;
grace = 10; grace = 10;
hide_cursor = true; hide_cursor = true;
no_fade_in = false; no_fade_in = false;
};
background = [
{
path = "screenshot";
blur_passes = 3;
blur_size = 8;
}
];
input-field = [
{
size = "200, 50";
position = "0, -80";
monitor = "";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
placeholder_text = ''Password...'';
shadow_passes = 2;
}
];
}; };
# programs.swaylock.enable = true;
services.hypridle = { background = [
enable = true; {
settings = { path = "screenshot";
blur_passes = 3;
blur_size = 8;
}
];
input-field = [
{
size = "200, 50";
position = "0, -80";
monitor = "";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
placeholder_text = ''Password...'';
shadow_passes = 2;
}
];
};
services.hypridle = {
enable = true;
settings = {
general = { general = {
after_sleep_cmd = "hyprctl dispatch dpms on"; ignore_dbus_inhibit = false;
ignore_dbus_inhibit = false; before_sleep_cmd = "loginctl lock-session";
lock_cmd = "hyprlock"; after_sleep_cmd = "hyprctl dispatch dpms on";
lock_cmd = "pidof hyprlock || hyprlock";
}; };
listener = [ listener = [
{ {
timeout = 10; timeout = 150;
on-timeout = "hyprlock"; on-timeout = "brightnessctl -sd rgb:kbd_backlight set 0";# turn off keyboard backlight.
} on-resume = "brightnessctl -rd rgb:kbd_backlight"; # turn on keyboard backlight.
{ }
timeout = 20; {
on-timeout = "hyprctl dispatch dpms off"; timeout = 600;
on-resume = "hyprctl dispatch dpms on"; on-timeout = "loginctl lock-session";
} }
{
timeout = 630;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
{
timeout = 1800;
on-timeout = "systemctl suspend";
}
]; ];
}; };
}; };
programs.waybar.enable = true; programs.waybar.enable = true;
# programs.waybar.systemd.enable = true; # programs.waybar.systemd.enable = true;
services.network-manager-applet.enable = true; services.network-manager-applet.enable = true;
home.pointerCursor = { home.pointerCursor = {
gtk.enable = true; gtk.enable = true;
# x11.enable = true; # x11.enable = true;
package = pkgs.bibata-cursors; package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic"; name = "Bibata-Modern-Classic";
size = 16; size = 16;
}; };
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
#enable = true; #enable = true;
# extraConfig = builtins.readFile ./hyprland.conf; # extraConfig = builtins.readFile ./hyprland.conf;
# xwayland.enable = true; # xwayland.enable = true;
@ -124,6 +147,6 @@ in {
# 10) # 10)
# ); # );
#}; #};
}; };
}; };
} }

View file

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
home-manager.users.${config.krebs.build.user.name}.xdg.desktopEntries.privatefox = {
name = "Privatefox";
exec = "${pkgs.firefox}/bin/firefox -P Privatefox";
};
}