Bunch of configuration changes

This commit is contained in:
2024-05-28 14:19:16 +02:00
parent 270e6963fc
commit bcb9b1c25b
22 changed files with 218 additions and 197 deletions

View File

@@ -2,17 +2,15 @@
{
imports = [
# ./hyprpaper.nix
./waybar.nix
./hyprpaper.nix
./hyprlock.nix
./fixes.nix
./hypridle.nix
./dunst.nix
./rofi.nix
];
home.packages = with pkgs; [
kitty
alacritty
wev
brightnessctl
playerctl
@@ -30,7 +28,6 @@
exec-once = [
"waybar"
"hyprpaper"
"lxqt-policykit-agent"
];
@@ -70,6 +67,7 @@
misc = {
vfr = "true";
force_default_wallpaper = "0";
};
xwayland = {
@@ -90,10 +88,11 @@
] else [ ];
bind = [
"$mod, Q, exec, kitty"
"$mod, Q, exec, alacritty"
"$mod, SPACE, exec, rofi -show drun"
",Print, exec, grimblast copy area"
"$mod,ESCAPE, exec, nwg-bar"
"$mod, P, exit"
"$mod, C, killactive"
"$mod SHIFT, C, exec, hyprctl kill"

View File

@@ -12,8 +12,4 @@
home.sessionVariables = {
NIXOS_OZONE_WL = "1";
};
programs.bash = {
enable = true;
};
}

View File

@@ -1,35 +0,0 @@
{ inputs, pkgs, lib, hostName, ... }:
{
imports = [
inputs.hypridle.homeManagerModules.default
];
services.hypridle = {
enable = if hostName == "xv-laptop" then true else false;
lockCmd = "pidof ${inputs.hyprlock.packages.${pkgs.system}.hyprlock}/bin/hyprlock || ${inputs.hyprlock.packages.${pkgs.system}.hyprlock}/bin/hyprlock"; # avoid starting multiple hyprlock instances.
beforeSleepCmd = "${inputs.hyprlock.packages.${pkgs.system}.hyprlock}/bin/hyprlock"; # lock before suspend.
afterSleepCmd = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
listeners = [
{
timeout = 180; # 2.5min.
onTimeout = "${pkgs.brightnessctl}/bin/brightnessctl -s set 10"; # set monitor backlight to minimum, avoid 0 on OLED monitor.
onResume = "${pkgs.brightnessctl}/bin/brightnessctl -r";
}
{
timeout = 300; # 5min
onTimeout = "${inputs.hyprlock.packages.${pkgs.system}.hyprlock}/bin/hyprlock";
}
{
timeout = 380; # 5.5min
onTimeout = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off"; # screen off when timeout has passed
onResume = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
}
{
timeout = 600; # 30min
onTimeout = "systemctl suspend"; # suspend pc
}
];
};
}

View File

@@ -1,42 +0,0 @@
{ inputs, config, ... }:
{
imports = [
inputs.hyprlock.homeManagerModules.default
];
programs.hyprlock = {
enable = true;
backgrounds = [
{
monitor = "";
path = "$HOME/Pictures/wallpaper-2.png";
blur_passes = 1;
}
];
input-fields = [{
monitor = "";
size = {
width = 400;
};
fade_on_empty = false;
dots_size = 0.3;
dots_center = true;
outline_thickness = -1;
outer_color = "0xff${config.colorScheme.palette.base05}";
inner_color = "0xff${config.colorScheme.palette.base00}";
font_color = "0xff${config.colorScheme.palette.base05}";
placeholder_text = "<i>Press enter for fingerprint</i>";
position.x = 0;
position.y = -50;
}];
labels = [{
font_size = 80;
color = "0xff${config.colorScheme.palette.base06}";
position.x = 0;
position.y = 250;
font_family = "DejaVuSansM Nerd Font Mono";
text = "$TIME";
}];
};
}

View File

@@ -1,20 +1,11 @@
{ pkgs, ... }:
{ ... }:
{
home.packages = with pkgs; [
hyprpaper
];
# https://wallhaven.cc/w/4veopp
home.file.".config/hypr/hyprpaper.conf" = {
services.hyprpaper = {
enable = true;
executable = false;
text =''
preload = ~/Pictures/wallpaper.png
wallpaper = ,~/Pictures/wallpaper.png
ipc = off
'';
settings = {
preload = [ "~/nix/assets/wallpaper.png"];
wallpaper = [ ",~/nix/assets/wallpaper.png"];
};
};
}