setup: add package list and create directory if they don't exist

This commit is contained in:
Vincent Bernat 2012-11-06 11:51:56 +01:00
parent cbf4695a21
commit 37e0594248
3 changed files with 26 additions and 0 deletions

4
rc.lua
View file

@ -38,6 +38,10 @@ end
loadrc("errors") -- errors and debug stuff loadrc("errors") -- errors and debug stuff
-- Create cache directory
os.execute("test -d " .. awful.util.getdir("cache") ..
" || mkdir -p " .. awful.util.getdir("cache"))
-- Global configuration -- Global configuration
modkey = "Mod4" modkey = "Mod4"
config = {} config = {}

View file

@ -28,6 +28,7 @@ gtk2:write(gtk)
gtk2:close() gtk2:close()
-- GTK3 is the same, but no double quotes for strings -- GTK3 is the same, but no double quotes for strings
os.execute("test -d ~/.config/gtk-3.0 || mkdir -p ~/.config/gtk-3.0")
local gtk3 = io.open(os.getenv("HOME") .. "/.config/gtk-3.0/settings.ini", "w") local gtk3 = io.open(os.getenv("HOME") .. "/.config/gtk-3.0/settings.ini", "w")
gtk, _ = gtk:gsub('"', '') gtk, _ = gtk:gsub('"', '')
gtk3:write("[Settings]\n") gtk3:write("[Settings]\n")

21
requirements.txt Normal file
View file

@ -0,0 +1,21 @@
# Packages needed
awesome
awesome-extra
i3lock
xautolock
xfonts-terminus
ttf-dejavu
xcompmgr
python-xpyb
python-imaging
fvwm
fvwm-crystal
gnome-themes-standard
gnome-wine-icon-theme
alsa-utils
pidgin
gnome-bluetooth
pulseaudio
numlockx
rxvt-unicode-256color