summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorozpv <39195175+ozpv@users.noreply.github.com>2024-07-27 03:27:48 +0000
committerGitHub <noreply@github.com>2024-07-27 03:27:48 +0000
commit05803aa679156ce52c8f5ab6fe58f3ca05a6eb7b (patch)
tree14055e72ef7bd8b20ee2382baeb4f757ef931124
parentb5fd9f8c76dcc30c4c8e1633989aa922ca11552f (diff)
update dpi touchpad resolution
-rw-r--r--.xinitrc3
-rw-r--r--.xprofile2
-rw-r--r--configuration.nix13
3 files changed, 17 insertions, 1 deletions
diff --git a/.xinitrc b/.xinitrc
index f095875..9b29f16 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -1,4 +1,5 @@
slstatus &
-xwallpaper --zoom /usr/share/wallpapers/wallpaper.png
+xwallpaper --zoom /usr/share/wallpapers/wallpaper.png &
+[ -f ~/.xprofile ] && . ~/.xprofile &
exec dwm
diff --git a/.xprofile b/.xprofile
new file mode 100644
index 0000000..ee2bd72
--- /dev/null
+++ b/.xprofile
@@ -0,0 +1,2 @@
+xrandr --dpi 116 &
+xrandr -s 1920x1200 &
diff --git a/configuration.nix b/configuration.nix
index f74e919..4ab749b 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -22,6 +22,12 @@
networking.hostName = "nixos"; # Define your hostname.
networking.wireless.enable = false; # Enables wireless support via wpa_supplicant.
+ # touchpad
+ services.libinput.enable = true;
+ services.libinput.touchpad.naturalScrolling = false;
+ services.libinput.touchpad.middleEmulation = true;
+ services.libinput.touchpad.tapping = true;
+
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
@@ -66,6 +72,11 @@
# compostior
services.picom.enable = true;
+ # login
+ services.logind.extraConfig = ''
+ HandlePowerKey=ignore
+ '';
+
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.ozpv = {
isNormalUser = true;
@@ -90,6 +101,7 @@
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
+ libinput-gestures
brightnessctl
vim
(st.overrideAttrs {
@@ -154,6 +166,7 @@
# audio
hardware.pulseaudio.enable = true;
+ hardware.pulseaudio.package = pkgs.pulseaudioFull;
# shell
programs.zsh.enable = true;