Add symlink_xorg task

This commit is contained in:
Ivan Malison 2016-09-16 12:57:44 -07:00
parent 6afd1ed99c
commit d6ecadf101
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
2 changed files with 12 additions and 0 deletions

View File

@ -23,6 +23,7 @@ EndSection
Section "Monitor" Section "Monitor"
Identifier "DVI-D-0" Identifier "DVI-D-0"
Option "Primary" "true" Option "Primary" "true"
Option "DPI" "96 x 96"
EndSection EndSection
Section "Monitor" Section "Monitor"

View File

@ -31,3 +31,14 @@ SERVICES = [
@task @task
def install_pacaur(ctx): def install_pacaur(ctx):
ctx.run(os.path.join(RESOURCES_DIRECTORY, "install_pacaur.sh")) ctx.run(os.path.join(RESOURCES_DIRECTORY, "install_pacaur.sh"))
@task
def symlink_xorg(ctx, xorg_target="/etc/X11/xorg.conf"):
ctx.run("sudo mv {} {}".format(
xorg_target, xorg_target + ".backup"
))
ctx.run("sudo ln -s {} {}".format(
os.path.join(RESOURCES_DIRECTORY, "xorg.conf"),
xorg_target,
))