bspwm: Load device-specific rc files
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user