From fcd1e75e6d51f18f84648346d8d6a71b7540cc82 Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 22 Jun 2015 23:11:09 +0300 Subject: [PATCH] add support for vscripts in $PATH as well as a hotkey for compton --- rc.lua | 1 + shellrc | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/rc.lua b/rc.lua index 8984433..d439201 100644 --- a/rc.lua +++ b/rc.lua @@ -456,6 +456,7 @@ globalkeys = awful.util.table.join( -- Menubar awful.key({ modkey, }, 'p', function () menubar.show() end), -- Glbal commands + awful.key({ 'Mod1', 'Shift' }, 'F12', function () awful.util.spawn('/home/von/vscripts/compton_toggle', false) end), awful.key({ modkey, }, 'x', function () awful.util.spawn(terminal) end), awful.key({ modkey, }, 'q', function () awful.util.spawn('/home/von/.local/bin/ticket_watch', false) end), awful.key({ modkey, }, 'z', function () awful.util.spawn('bash -c "until i3lock -entc 661111 -i /home/von/Pictures/wallpaper.png; do :; done"') end), diff --git a/shellrc b/shellrc index 35e64dd..5883d4a 100644 --- a/shellrc +++ b/shellrc @@ -4,7 +4,7 @@ # common # {{{ environment -# a bunch of functions to make this whole thing work +# a bunch of functions and vars to make this whole thing work is_zsh() [[ -n ${ZSH_VERSION} ]] if is_zsh; then is_exec() [[ -x $(whence ${1}) ]] @@ -15,9 +15,11 @@ fi newline=" " +vscripts="${HOME}/vscripts" local_bin="${HOME}/.local/bin" -[[ -r ${local_bin} && ${PATH} != *${local_bin}* ]] && export PATH=${PATH}:${local_bin} -unset local_bin +[[ -d ${vscripts} && ${PATH} != *${vscripts}* ]] && export PATH=${PATH}:${vscripts} +[[ -d ${local_bin} && ${PATH} != *${local_bin}* ]] && export PATH=${PATH}:${local_bin} +unset local_bin vscripts dotfiles="${HOME}/vdotfiles" comp_enabled=true