Move stuff from i3 to xsession

As this is not related to i3 as window manager.
Also add xrandr --auto to have proper output by default.
This commit is contained in:
Daniel Siepmann 2022-05-20 13:55:27 +02:00
parent f324d067ac
commit 74ace250ee
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 17 additions and 36 deletions

View file

@ -168,47 +168,11 @@ in {
};
startup = [
# TODO: Move configuration to configuration instead of calls from i3
{
# Increase mouse speed
command = "xinput --set-prop 13 'libinput Accel Speed' 1";
notification = false;
}
{
# Use natural scrolling for trackpad
command = "xinput --set-prop 'DELL07E6:00 06CB:76AF Touchpad' 'libinput Natural Scrolling Enabled' 1";
notification = false;
}
{
command = "xinput --set-prop 'DELL07E6:00 06CB:76AF Touchpad' 'libinput Tapping Enabled' 1";
notification = false;
}
{
command = "xsetroot -solid \"#2E3436\"";
notification = false;
}
{
command = "xset s off";
notification = false;
}
# Configure display
{
command = "xrandr --output eDP1 --scale 0.75x0.75 --mode 2560x1440 --brightness 1";
}
{
command = "xbacklight -set 25";
}
# Start programs / applets
{
command = "clipit";
notification = false;
}
{
command = "eval $(ssh-agent)";
notification = false;
}
{
command = "nm-applet";
notification = false;

View file

@ -5,6 +5,23 @@
numlock.enable = true;
# TODO: Check how to set those options somewhere else?
initExtra = ''
eval $(ssh-agent)
xrandr --auto --brightness 1
xbacklight -set 25
xsetroot -solid "#2E3436"
xset s off
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
# Increase mouse speed
xinput --set-prop 13 'libinput Accel Speed' 1
'';
windowManager.i3 = import ./windowManager/i3.nix {
inherit config pkgs;
};