hyprland: add tools
This commit is contained in:
parent
ad5e76819b
commit
36569baaf0
|
@ -7,94 +7,117 @@ in {
|
|||
./kitty.nix
|
||||
./passwords.nix
|
||||
./autostart.nix
|
||||
./tools.nix
|
||||
];
|
||||
# autostart
|
||||
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.packages = with pkgs; [
|
||||
dolphin
|
||||
wofi
|
||||
hyprland
|
||||
hypridle
|
||||
hyprlock
|
||||
grimblast # screenshot
|
||||
];
|
||||
|
||||
programs.hyprlock.enable = true;
|
||||
programs.hyprlock.settings =
|
||||
{
|
||||
general = {
|
||||
disable_loading_bar = false;
|
||||
grace = 10;
|
||||
hide_cursor = true;
|
||||
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;
|
||||
}
|
||||
];
|
||||
{
|
||||
general = {
|
||||
disable_loading_bar = false;
|
||||
grace = 10;
|
||||
hide_cursor = true;
|
||||
no_fade_in = false;
|
||||
};
|
||||
# programs.swaylock.enable = true;
|
||||
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
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;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||
ignore_dbus_inhibit = false;
|
||||
lock_cmd = "hyprlock";
|
||||
ignore_dbus_inhibit = false;
|
||||
before_sleep_cmd = "loginctl lock-session";
|
||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||
lock_cmd = "pidof hyprlock || hyprlock";
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
timeout = 10;
|
||||
on-timeout = "hyprlock";
|
||||
}
|
||||
{
|
||||
timeout = 20;
|
||||
on-timeout = "hyprctl dispatch dpms off";
|
||||
on-resume = "hyprctl dispatch dpms on";
|
||||
}
|
||||
{
|
||||
timeout = 150;
|
||||
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 = 600;
|
||||
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;
|
||||
services.network-manager-applet.enable = true;
|
||||
|
||||
home.pointerCursor = {
|
||||
gtk.enable = true;
|
||||
gtk.enable = true;
|
||||
# x11.enable = true;
|
||||
package = pkgs.bibata-cursors;
|
||||
name = "Bibata-Modern-Classic";
|
||||
size = 16;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
wayland.windowManager.hyprland = {
|
||||
#enable = true;
|
||||
# extraConfig = builtins.readFile ./hyprland.conf;
|
||||
# xwayland.enable = true;
|
||||
|
@ -124,6 +147,6 @@ in {
|
|||
# 10)
|
||||
# );
|
||||
#};
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
7
2configs/gui/hyprland/tools.nix
Normal file
7
2configs/gui/hyprland/tools.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue