Move gammastep to distrobox

This commit is contained in:
John Mertz 2022-12-16 20:15:00 -05:00
parent ccde8384cc
commit 2955c76c7b
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
1 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,11 @@ unless ($pid) {
open STDOUT, '>>/dev/null'; open STDOUT, '>>/dev/null';
open STDERR, '>>/dev/null'; open STDERR, '>>/dev/null';
exec "exec gammastep -l $lat_lon -b 0.7:0.3"; if (! -e "/run/.containerenv" && ! -e "/.dockerenv" ) {
exec "exec /bin/distrobox-enter -n debian12 -- gammastep -l $lat_lon -b 0.7:0.3";
} else {
exec "exec gammastep -l $lat_lon -b 0.7:0.3";
}
} }
sub fetch_lat_lon sub fetch_lat_lon