diff --git a/sway/gammastep.pl b/distrobox/debian12/gammastep.pl similarity index 81% rename from sway/gammastep.pl rename to distrobox/debian12/gammastep.pl index 7a84a37..eb79325 100755 --- a/sway/gammastep.pl +++ b/distrobox/debian12/gammastep.pl @@ -24,7 +24,11 @@ unless ($pid) { open STDOUT, '>>/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