added mod4+z for editing .zshrc and PATH fix

This commit is contained in:
Johannes Findeisen 2015-07-10 03:32:17 +02:00
commit c008496828
2 changed files with 3 additions and 1 deletions

View file

@ -413,6 +413,8 @@ globalkeys = awful.util.table.join(
awful.key({ modkey }, "b", function() awful.util.spawn("/usr/bin/chromium") end),
awful.key({ modkey }, "c", function()
awful.util.spawn(editor_cmd .. " " .. awesome.conffile) end),
awful.key({ modkey }, "z", function()
awful.util.spawn(editor_cmd .. " " .. os.getenv("HOME") .. "/.zshrc") end),
awful.key({ modkey }, "y", function() awful.util.spawn("/usr/bin/thunar") end),
-- Standard program

2
.zshrc
View file

@ -1,5 +1,5 @@
# Extend my $PATH to $PATH/bin
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH:$HOME/bin
export PATH=$HOME/bin:$PATH
# Export the $EDITOR and $TERMINAL
export EDITOR=/usr/bin/vim