Compare commits
1 Commits
2024-12-26
...
2024-09-20
Author | SHA1 | Date | |
---|---|---|---|
29b757638c |
@@ -17,8 +17,11 @@
|
||||
postInstall = (base.postInstall or "") + ''
|
||||
mv $out/bin/megapixels $out/bin/megapixels-next
|
||||
|
||||
rm $out/share/applications/me.gapixels.Megapixels.desktop
|
||||
substituteInPlace $out/share/applications/me.gapixels.Megapixels.desktop \
|
||||
--replace "megapixels" "megapixels-next"
|
||||
'';
|
||||
});
|
||||
|
||||
env.CAMERA = "me.gapixels.Megapixels.desktop";
|
||||
};
|
||||
}
|
||||
|
@@ -50,5 +50,8 @@
|
||||
# sandbox.keepPidsAndProc = true;
|
||||
|
||||
suggestedPrograms = [ "dconf" ]; #< not sure if necessary
|
||||
|
||||
mime.priority = 200; #< fallback
|
||||
env.CAMERA = "org.postmarketos.Megapixels.desktop";
|
||||
};
|
||||
}
|
||||
|
@@ -58,6 +58,7 @@
|
||||
# increments to use for volume adjustment (in %)
|
||||
VOL_INCR=5
|
||||
KEYBOARD="${KEYBOARD:-wvkbd-mobintl}"
|
||||
CAMERA="${CAMERA:-org.postmarketos.Megapixels.desktop}"
|
||||
|
||||
action="$1"
|
||||
|
||||
@@ -228,7 +229,7 @@ dispatchOn() {
|
||||
;;
|
||||
"power_and_voldown")
|
||||
# power (hold) -> voldown: open camera
|
||||
handleWith sane-open --auto-keyboard --application org.postmarketos.Megapixels.desktop
|
||||
handleWith sane-open --auto-keyboard --application "$CAMERA"
|
||||
;;
|
||||
"power_then_volup")
|
||||
# power (tap) -> volup: rotate CCW
|
||||
|
Reference in New Issue
Block a user