From 37e059424804b08be39fffb6e5062c568e13a0e0 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 6 Nov 2012 11:51:56 +0100 Subject: [PATCH] setup: add package list and create directory if they don't exist --- rc.lua | 4 ++++ rc/appearance.lua | 1 + requirements.txt | 21 +++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 requirements.txt diff --git a/rc.lua b/rc.lua index cd46f85..cc1b917 100644 --- a/rc.lua +++ b/rc.lua @@ -38,6 +38,10 @@ end 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 modkey = "Mod4" config = {} diff --git a/rc/appearance.lua b/rc/appearance.lua index fa09c5c..6e1540b 100644 --- a/rc/appearance.lua +++ b/rc/appearance.lua @@ -28,6 +28,7 @@ gtk2:write(gtk) gtk2:close() -- 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") gtk, _ = gtk:gsub('"', '') gtk3:write("[Settings]\n") diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..a0fa966 --- /dev/null +++ b/requirements.txt @@ -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