#!/bin/python
import os
from libinstall import FileInstaller, PackageInstaller
dir = os.path.dirname(__file__)

PackageInstaller.try_install('xorg-server')
PackageInstaller.try_install('xorg-xinit')
PackageInstaller.try_install('xorg-xrandr')
PackageInstaller.try_install('xdotool')
PackageInstaller.try_install('pkg-config')

FileInstaller.create_symlink(os.path.join(dir, 'xinitrc'), '~/.xinitrc')
FileInstaller.create_symlink(os.path.join(dir, 'Xresources'), '~/.config/Xresources')
FileInstaller.create_symlink(os.path.join(dir, 'imwheelrc'), '~/.imwheelrc')
run_verbose(['xrdb', os.path.expanduser('~/.config/Xresources')])


@@ -71,16 +71,29 @@
 nstaller
+, run_verbose
 %0Adir = o
@@ -122,223 +122,8 @@
 _)%0A%0A
-PackageInstaller.try_install('xorg-server')%0APackageInstaller.try_install('xorg-xinit')%0APackageInstaller.try_install('xorg-xrandr')%0APackageInstaller.try_install('xdotool')%0APackageInstaller.try_install('pkg-config')%0A%0A
 File

fix xorg run command