Bunch of configuration changes
This commit is contained in:
@@ -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"
|
||||
|
@@ -12,8 +12,4 @@
|
||||
home.sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
@@ -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";
|
||||
}];
|
||||
};
|
||||
}
|
@@ -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"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user