From 2955c76c7be2f39160b172c69d5a11eb4a4e9b96 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Fri, 16 Dec 2022 20:15:00 -0500 Subject: [PATCH] Move gammastep to distrobox --- {sway => distrobox/debian12}/gammastep.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename {sway => distrobox/debian12}/gammastep.pl (81%) 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