Awesome: user variable for terminal.
homeinit: new script to automate new session init.master
parent
e6b4e77ec1
commit
4cb590ec67
|
@ -272,13 +272,13 @@ end
|
||||||
-- Note that some laptop will not work when pressing Super+Fn.
|
-- Note that some laptop will not work when pressing Super+Fn.
|
||||||
-- Therefore we only use Fn and Mod1+Fn.
|
-- Therefore we only use Fn and Mod1+Fn.
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
-- termcmd = "lxterminal -e "
|
term = "urxvt"
|
||||||
termcmd = "urxvt -e "
|
termcmd = term .. " -e "
|
||||||
|
|
||||||
globalkeys = awful.util.table.join(
|
globalkeys = awful.util.table.join(
|
||||||
-- Terminal
|
-- Terminal
|
||||||
awful.key({ modkey, }, "Return", function () awful.util.spawn("urxvt") end),
|
awful.key({ modkey, }, "Return", function () awful.util.spawn(term) end),
|
||||||
awful.key({ }, "XF86Terminal", function () awful.util.spawn("urxvt") end),
|
awful.key({ }, "XF86Terminal", function () awful.util.spawn(term) end),
|
||||||
|
|
||||||
-- Calc
|
-- Calc
|
||||||
awful.key({ modkey, }, "b", function () awful.util.spawn(termcmd .. "calc") end),
|
awful.key({ modkey, }, "b", function () awful.util.spawn(termcmd .. "calc") end),
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue