2022-05-20 12:39:40 +02:00
|
|
|
{ config, pkgs }:
|
|
|
|
|
|
|
|
{
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
numlock.enable = true;
|
|
|
|
|
2022-05-20 13:55:27 +02:00
|
|
|
initExtra = ''
|
2022-05-20 16:10:37 +02:00
|
|
|
# Auto setup output and set brightness
|
2022-05-20 13:55:27 +02:00
|
|
|
xrandr --auto --brightness 1
|
|
|
|
|
2022-05-20 16:10:37 +02:00
|
|
|
# Set backlight of output
|
2022-05-20 13:55:27 +02:00
|
|
|
xbacklight -set 25
|
2022-05-20 16:10:37 +02:00
|
|
|
|
|
|
|
# Set background color
|
2022-05-20 13:55:27 +02:00
|
|
|
xsetroot -solid "#2E3436"
|
2022-05-20 16:10:37 +02:00
|
|
|
|
|
|
|
# Disable screen saver
|
2022-05-20 13:55:27 +02:00
|
|
|
xset s off
|
|
|
|
|
2022-05-20 16:10:37 +02:00
|
|
|
# Enable tapping instead of phsyical click
|
2022-05-20 13:55:27 +02:00
|
|
|
xinput --set-prop 'DELL07E6:00 06CB:76AF Touchpad' 'libinput Tapping Enabled' 1
|
2022-05-20 16:10:37 +02:00
|
|
|
|
2022-05-20 13:55:27 +02:00
|
|
|
# Use natural scrolling for trackpad
|
|
|
|
xinput --set-prop 'DELL07E6:00 06CB:76AF Touchpad' 'libinput Natural Scrolling Enabled' 1
|
2022-05-20 16:10:37 +02:00
|
|
|
|
2022-05-20 13:55:27 +02:00
|
|
|
# Increase mouse speed
|
|
|
|
xinput --set-prop 13 'libinput Accel Speed' 1
|
|
|
|
'';
|
|
|
|
|
2022-05-20 12:39:40 +02:00
|
|
|
windowManager.i3 = import ./windowManager/i3.nix {
|
2022-08-15 08:41:53 +02:00
|
|
|
inherit config;
|
2022-05-20 12:39:40 +02:00
|
|
|
};
|
|
|
|
}
|