Detect toolbox

TODO: Update other scripts to skip actions (eg. launching sway) if in toolbox
This commit is contained in:
John Mertz 2022-10-17 11:44:00 -04:00
parent 87a8141336
commit 384e96c6cb
1 changed files with 3 additions and 0 deletions

View File

@ -44,3 +44,6 @@ alias blc="${HOME}/scripts/thinkpad/blc.pl --notify"
# Flatpaks
alias mpv="flatpak run io.mpv.Mpv"
# Detect if I'm in a toolbox
alias istoolbox='[ -f "/run/.toolboxenv" ] && grep -oP "(?<=name=\")[^\";]+" /run/.containerenv'