disable middle click emulation
This commit is contained in:
@@ -17,12 +17,6 @@ in {
|
||||
#displayManager.sddm.settings.Wayland.SessionDir = "${pkgs.plasma5Packages.plasma-workspace}/share/wayland-sessions";
|
||||
#displayManager.sddm.wayland.enable = true;
|
||||
|
||||
libinput = {
|
||||
enable = true;
|
||||
|
||||
# disabling mouse acceleration
|
||||
mouse = { accelProfile = "flat"; };
|
||||
};
|
||||
};
|
||||
services.xserver.desktopManager.plasma5.enable = true;
|
||||
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
{ config, pkgs, inputs, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.custom.graphical.shared;
|
||||
in
|
||||
{
|
||||
let cfg = config.custom.graphical.shared;
|
||||
in {
|
||||
options.custom.graphical.shared = {
|
||||
enable = mkEnableOption "Enables shared";
|
||||
};
|
||||
|
||||
|
||||
config = let
|
||||
screenshot = pkgs.writeShellScriptBin "screenshot" ''
|
||||
${pkgs.scrot}/bin/scrot -fs - | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png -i
|
||||
@@ -15,7 +13,7 @@ in
|
||||
in mkIf cfg.enable {
|
||||
programs.dconf.enable = true;
|
||||
programs.kdeconnect.enable = true;
|
||||
|
||||
|
||||
fonts.fontDir.enable = true;
|
||||
fonts.packages = with pkgs; [
|
||||
#uw-ttyp0
|
||||
@@ -23,24 +21,40 @@ in
|
||||
nerdfonts # noto and hack
|
||||
#noto-fonts
|
||||
#noto-fonts-emoji
|
||||
noto-fonts-cjk
|
||||
noto-fonts-cjk
|
||||
#font-awesome
|
||||
];
|
||||
|
||||
services.xserver = {
|
||||
libinput = {
|
||||
enable = true;
|
||||
|
||||
# disabling mouse acceleration
|
||||
mouse = {
|
||||
accelProfile = "flat";
|
||||
middleEmulation = false;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 25565 53317 ]; #localsend
|
||||
allowedUDPPorts = [ 1194 53317 ]; #openvpn, localsend
|
||||
allowedTCPPortRanges = [
|
||||
{ from = 1714; to = 1764; } # KDE Connect
|
||||
];
|
||||
allowedUDPPortRanges = [
|
||||
{ from = 1714; to = 1764; } # KDE Connect
|
||||
];
|
||||
allowedTCPPorts = [ 25565 53317 ]; # localsend
|
||||
allowedUDPPorts = [ 1194 53317 ]; # openvpn, localsend
|
||||
allowedTCPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
} # KDE Connect
|
||||
];
|
||||
allowedUDPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
} # KDE Connect
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
#services.xserver.wacom.enable = true;
|
||||
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
Reference in New Issue
Block a user