Awesome: user variable for terminal.

homeinit: new script to automate new session init.
master
Ambrevar 2012-07-28 18:39:12 +01:00
parent e6b4e77ec1
commit 4cb590ec67
2 changed files with 32 additions and 4 deletions

View File

@ -272,13 +272,13 @@ end
-- Note that some laptop will not work when pressing Super+Fn.
-- Therefore we only use Fn and Mod1+Fn.
--------------------------------------------------------------------------------
-- termcmd = "lxterminal -e "
termcmd = "urxvt -e "
term = "urxvt"
termcmd = term .. " -e "
globalkeys = awful.util.table.join(
-- Terminal
awful.key({ modkey, }, "Return", function () awful.util.spawn("urxvt") end),
awful.key({ }, "XF86Terminal", function () awful.util.spawn("urxvt") end),
awful.key({ modkey, }, "Return", function () awful.util.spawn(term) end),
awful.key({ }, "XF86Terminal", function () awful.util.spawn(term) end),
-- Calc
awful.key({ modkey, }, "b", function () awful.util.spawn(termcmd .. "calc") end),

28
.homeinit Executable file
View File

@ -0,0 +1,28 @@
#!/bin/sh
## Fetch from Git repo:
# cd
# git init
# git remote add origin https://github.com/Ambrevar/home-config
# git fetch
# git branch master origin/master
# git checkout master
## Create links
SOURCEDIR="~/Dropbox/Personal"
## Mutt
[ ! -e ~/.mutt ] && ln -s "${SOURCEDIR}/MAILS" "~/.mutt"
## Taskwarrior
[ ! -e ~/.mutt ] && ln -s "${SOURCEDIR}/TODO" "~/.task"
## Awesome
THEME_DEST="${HOME}/.config/awesome/themes/custom"
THEME_SOURCE="/usr/share/awesome/themes/default/"
if [ ! -e ${THEME_DEST} ]; then
[ -d ${THEME_SRC} ] && cp -rn ${THEME_SRC} ${THEME_DEST}
fi
## Luakit -- Fetch Adblock list.
mkdir -p "$XDG_DATA_HOME/luakit"
wget 'https://easylist-downloads.adblockplus.org/easylist.txt' -O "$XDG_DATA_HOME/luakit/easylist.txt"