2022-11-03 17:01:37 +01:00
|
|
|
{ config, pkgs, ownLib }:
|
2022-05-20 12:39:40 +02:00
|
|
|
|
2022-11-02 22:13:19 +01:00
|
|
|
let
|
|
|
|
initExtraHikari = ''
|
|
|
|
xrandr --auto --output eDP-1 --brightness 1 --scale 1.25x1.25
|
2022-05-20 12:39:40 +02:00
|
|
|
|
2022-11-02 22:13:19 +01:00
|
|
|
# Use natural scrolling for trackpad
|
|
|
|
xinput --set-prop bcm5974 'libinput Natural Scrolling Enabled' 1
|
|
|
|
'';
|
|
|
|
initExtraHikari2 = ''
|
2022-05-20 13:55:27 +02:00
|
|
|
xrandr --auto --brightness 1
|
|
|
|
|
2022-11-02 22:13:19 +01:00
|
|
|
# Enable tapping instead of phsyical click
|
|
|
|
xinput --set-prop 'DELL07E6:00 06CB:76AF Touchpad' 'libinput Tapping Enabled' 1
|
|
|
|
|
|
|
|
# Use natural scrolling for trackpad
|
|
|
|
xinput --set-prop 'DELL07E6:00 06CB:76AF Touchpad' 'libinput Natural Scrolling Enabled' 1
|
|
|
|
'';
|
|
|
|
in {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
numlock.enable = true;
|
|
|
|
|
|
|
|
initExtra = (if ownLib.onHikari {} then initExtraHikari else initExtraHikari2) + ''
|
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
|
|
|
|
|
|
|
|
# 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-11-04 10:22:06 +01:00
|
|
|
inherit config pkgs ownLib;
|
2022-05-20 12:39:40 +02:00
|
|
|
};
|
|
|
|
}
|