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:
parent
f324d067ac
commit
74ace250ee
|
@ -168,47 +168,11 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
startup = [
|
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
|
# Start programs / applets
|
||||||
{
|
{
|
||||||
command = "clipit";
|
command = "clipit";
|
||||||
notification = false;
|
notification = false;
|
||||||
}
|
}
|
||||||
{
|
|
||||||
command = "eval $(ssh-agent)";
|
|
||||||
notification = false;
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
command = "nm-applet";
|
command = "nm-applet";
|
||||||
notification = false;
|
notification = false;
|
||||||
|
|
|
@ -5,6 +5,23 @@
|
||||||
|
|
||||||
numlock.enable = true;
|
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 {
|
windowManager.i3 = import ./windowManager/i3.nix {
|
||||||
inherit config pkgs;
|
inherit config pkgs;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue