bspwm: Load device-specific rc files

This commit is contained in:
Salt 2018-07-31 12:45:12 -05:00
parent 14c44ec428
commit 922ae91986

View File

@ -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