1
0

Move x* to xsession

This commit is contained in:
dump_stack() 2019-07-20 10:33:02 +00:00
parent 61a88b1445
commit d84a882017
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 15 additions and 6 deletions

View File

@ -18,10 +18,6 @@ main = xmonad $ defaultConfig
startup = do startup = do
setWMName "LG3D" setWMName "LG3D"
spawn "xrandr --auto && xrandr --output DP-1.3 --above DP-2" spawn "xrandr --auto && xrandr --output DP-1.3 --above DP-2"
spawn "xsetroot -solid '#000000'"
spawn "xinput --disable $(xinput | grep -o 'Synaptics TouchPad.*id=[0-9]*' | cut -d '=' -f 2)"
spawn "xinput --set-prop 15 'Device Accel Constant Deceleration' 0.20"
spawn "xhost +local"
windowManage = composeAll windowManage = composeAll
[ className =? "Emacs" --> doShift "1:emacs" [ className =? "Emacs" --> doShift "1:emacs"

View File

@ -72,7 +72,20 @@ in {
options = [ "ctrl:nocaps" "grp:rctrl_toggle" ]; options = [ "ctrl:nocaps" "grp:rctrl_toggle" ];
}; };
xsession.enable = true; xsession = {
xsession.windowManager.command = "exec xmonad"; enable = true;
windowManager.command = "exec xmonad";
initExtra = ''
touchpad=$(xinput | grep -o 'TouchPad.*id=[0-9]*' | cut -d '=' -f 2)
trackpoint=$(xinput | grep -o 'TrackPoint.*id=[0-9]*' | cut -d '=' -f 2)
xsetroot -solid '#000000'
xinput --disable $touchpad
xinput --set-prop $trackpoint 'Device Accel Constant Deceleration' 0.20
xhost +local
'';
};
}; };
} }