From 922ae9198624ed7efb8df1d22f3da2d8327264af Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 31 Jul 2018 12:45:12 -0500 Subject: [PATCH] bspwm: Load device-specific rc files --- .config/bspwm/bspwmrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 3b1cd766..d9b81cb8 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -20,14 +20,20 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +## Clean up some variables that I use in device-specific scripts +unset PB_BAR_WIDTH +unset PB_MONITOR + ## Patch path, if not already done if [[ "$PATH" != "*$HOME/.local/bin*" ]]; then + printf "[..] Patching path for $HOME/.local/bin\n" export PATH="$HOME/.local/bin:$PATH" fi ## Load device-specific scripts -if [[ -r ".config/bspwm/$HOSTNAME.rc" ]]; then - .config/bspwm/$HOSTNAME.rc +if [[ -x ".config/bspwm/$(hostname).rc" ]]; then + printf "[..] Sourcing .config/bspwm/$(hostname).rc\n" + source .config/bspwm/$(hostname).rc fi ## bspwm GENERAL CONFIGURATION