bspwm: Load device-specific rc files
This commit is contained in:
parent
14c44ec428
commit
922ae91986
@ -20,14 +20,20 @@
|
|||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
# SOFTWARE.
|
# 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
|
## Patch path, if not already done
|
||||||
if [[ "$PATH" != "*$HOME/.local/bin*" ]]; then
|
if [[ "$PATH" != "*$HOME/.local/bin*" ]]; then
|
||||||
|
printf "[..] Patching path for $HOME/.local/bin\n"
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Load device-specific scripts
|
## Load device-specific scripts
|
||||||
if [[ -r ".config/bspwm/$HOSTNAME.rc" ]]; then
|
if [[ -x ".config/bspwm/$(hostname).rc" ]]; then
|
||||||
.config/bspwm/$HOSTNAME.rc
|
printf "[..] Sourcing .config/bspwm/$(hostname).rc\n"
|
||||||
|
source .config/bspwm/$(hostname).rc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## bspwm GENERAL CONFIGURATION
|
## bspwm GENERAL CONFIGURATION
|
||||||
|
Reference in New Issue
Block a user