feat(hyprland): added input options for reduced repeat_delay and increased repeat_speed

This commit is contained in:
Zhongheng Liu 2024-08-09 18:26:26 +08:00
commit 6d14dac991
No known key found for this signature in database
16 changed files with 300 additions and 259 deletions

View file

@ -45,6 +45,7 @@
home = {
username = "${config.myUserName}";
homeDirectory = "/home/${config.myUserName}";
# copy wallpaper from assets
file = {
"wallpaper.png".source = ./assets/gruvbox-wallpaper.png;
};
@ -53,6 +54,7 @@
home.packages = with pkgs; [
protonvpn-gui
devenv
vlc
];
programs.git = {
enable = true;

View file

@ -1,5 +1,9 @@
{pkgs, config, lib, ...}:
{
pkgs,
config,
lib,
...
}: {
imports = [
./hyprland.nix
./hyprpaper.nix

View file

@ -1,8 +1,6 @@
{pkgs, ...}:
let
{pkgs, ...}: let
timeoutSeconds = 60;
in
{
in {
services.hypridle = {
enable = true;
settings = {

View file

@ -1,5 +1,8 @@
{config, pkgs, ... }:
{
config,
pkgs,
...
}: {
home.packages = with pkgs; [
foot
];
@ -16,20 +19,28 @@
# Whether to enable XWayland
xwayland.enable = true;
settings = {
input = {
# xset rate 250 50 replacement on wayland...
# FAST MODE LET'S GOOO
repeat_rate = 50;
repeat_delay = 250;
};
misc = {
disable_hyprland_logo = true;
disable_splash_rendering = true;
font_family = "monospace";
};
"$mod" = "SUPER";
bind = [
bind =
[
"$mod, Q, killactive"
"$mod, D, exec, ${pkgs.fuzzel}/bin/fuzzel"
# firefox quickstart
"$mod, F, exec, ${pkgs.firefox}/bin/firefox"
# foot terminal
"$mod, Return, exec, ${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=16' zsh"
] ++ (
]
++ (
# workspaces
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
builtins.concatLists (builtins.genList (

View file

@ -1,5 +1,9 @@
{pkgs, config, lib, ...}:
{
pkgs,
config,
lib,
...
}: {
programs.hyprlock = {
enable = true;
settings = {
@ -33,7 +37,6 @@
shadow_passes = 2;
}
];
};
};
}

View file

@ -1,5 +1,8 @@
{pkgs, config, ...}:
{
pkgs,
config,
...
}: {
services.hyprpaper = {
enable = true;
settings = {

View file

@ -1,5 +1,8 @@
{pkgs, lib, ...}:
{
pkgs,
lib,
...
}: {
wayland.windowManager.sway = {
enable = true;
config = rec {

View file

@ -1,6 +1,11 @@
{pkgs, config, lib, ...}:
{
options = with lib; with types; {
pkgs,
config,
lib,
...
}: {
options = with lib;
with types; {
myWallPaperPathString = mkOption {type = str;};
myUserName = mkOption {type = str;};
myDisplayName = mkOption {type = str;};

View file

@ -15,7 +15,7 @@
./services/laptop.preset.nix
./hardware-configuration.nix
];
boot.supportedFilesystems = ["ntfs"];
security.pam.services.hyprlock = {};
hardware.bluetooth = {
enable = true;

View file

@ -1,4 +1,9 @@
{pkgs, config, lib, ...}: {
{
pkgs,
config,
lib,
...
}: {
services.greetd = {
enable = true;
settings = {

View file

@ -1,11 +1,15 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usb_storage" "usbhid" "sd_mod"];
@ -13,13 +17,13 @@
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/f9ff609f-6e72-43cf-917c-3bd3fde6c410";
fileSystems."/" = {
device = "/dev/disk/by-uuid/f9ff609f-6e72-43cf-917c-3bd3fde6c410";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/2E4F-3060";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/2E4F-3060";
fsType = "vfat";
options = ["fmask=0022" "dmask=0022"];
};

View file

@ -1,5 +1,4 @@
{...}:
{
{...}: {
imports = [
./nginx.service.nix
./pipewire.service.nix

View file

@ -1,8 +1,12 @@
{config, pkgs, lib, ...}:
{
config,
pkgs,
lib,
...
}: {
# Type definitions for nix variables used in this configuration
options = with lib; with types; {
options = with lib;
with types; {
myUserName = mkOption {type = str;};
myHostName = mkOption {type = str;};
};