-
Notifications
You must be signed in to change notification settings - Fork 0
/
xserver.nix
37 lines (35 loc) · 1.04 KB
/
xserver.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{config, lib, pkgs, ...}:
{
services.xserver = {
synaptics.dev=''/dev/input/event11'';
synaptics.enable = true;
synaptics.additionalOptions = ''
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "VertEdgeScroll" "on"
Option "VertTwoFingerScroll" "on"
Option "HorizEdgeScroll" "on"
Option "HorizTwoFingerScroll" "on"
Option "CircularScrolling" "on"
Option "CircScrollTrigger" "2"
Option "EmulateTwoFingerMinZ" "40"
Option "EmulateTwoFingerMinW" "8"
Option "CoastingSpeed" "0"
Option "FingerLow" "30"
Option "FingerHigh" "50"
Option "MaxTapTime" "125"
'';
enable = true;
layout = "tr";
autorun = true;
xautolock = {
enable = true;
locker = "${pkgs.i3lock}/bin/i3lock -i ~/Wallpapers/desktop.png";
enableNotifier = true;
notifier = ''${pkgs.libnotify}/bin/notify-send "Locking in 30 seconds" '';
time = 30;
};
windowManager.i3.enable=true;
};
}