aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home/dot_local/share/bin/executable_qrclip2
-rw-r--r--home/dot_local/share/bin/executable_qrclip.tmpl9
-rw-r--r--home/private_Library/private_Preferences/private_com.lujjjh.LinearMouse.plist2
3 files changed, 11 insertions, 2 deletions
diff --git a/home/dot_local/share/bin/executable_qrclip b/home/dot_local/share/bin/executable_qrclip
deleted file mode 100644
index f4f5d36..0000000
--- a/home/dot_local/share/bin/executable_qrclip
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/usr/bin/env sh
-maim -usb 4 -c 0,0,0 | zbarimg --raw --quiet -
diff --git a/home/dot_local/share/bin/executable_qrclip.tmpl b/home/dot_local/share/bin/executable_qrclip.tmpl
new file mode 100644
index 0000000..89d2bca
--- /dev/null
+++ b/home/dot_local/share/bin/executable_qrclip.tmpl
@@ -0,0 +1,9 @@
+#!/usr/bin/env sh
+{{- if eq .chezmoi.os "darwin" }}
+tmp="$(mktemp)"
+screencapture -i "$tmp"
+zbarimg --raw --quiet "$tmp"
+rm -f "$tmp"
+{{- else if eq .chezmoi.os "linux" }}
+maim -usb 4 -c 0,0,0 | zbarimg --raw --quiet -
+{{- end }}
diff --git a/home/private_Library/private_Preferences/private_com.lujjjh.LinearMouse.plist b/home/private_Library/private_Preferences/private_com.lujjjh.LinearMouse.plist
index 7ba7199..d31f40c 100644
--- a/home/private_Library/private_Preferences/private_com.lujjjh.LinearMouse.plist
+++ b/home/private_Library/private_Preferences/private_com.lujjjh.LinearMouse.plist
@@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
+ <key>LaunchAtLogin__hasMigrated</key>
+ <true/>
<key>NSStatusItem VisibleCC Item-0</key>
<false/>
<key>SUAutomaticallyUpdate</key>