pind
Simple Rust hotkey daemon.
git clone https://git.pi66.xyz/pind
About | Files | Commits | Refs | License
starting the app again will automatically restart it
Author: pixel2175
Date: 2025-08-13 14:05
commit: 6f2eac83
Stat
| M | Cargo.toml | 2 | +1 | -1 |
| M | pindc | 4 | +2 | -2 |
Diff
diff --git a/Cargo.toml b/Cargo.toml
index 6681dc0..87bf89d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "pind"
-version = "0.1.0"
+version = "0.1.1"
edition = "2024"
[dependencies]
diff --git a/pindc b/pindc
index 9c3783b..3938ff6 100755
--- a/pindc
+++ b/pindc
@@ -2,9 +2,9 @@
Pixel 2025
https://pi66.xyz/pind | github:pixel2175/pind
this script runs the daemon with the client env
...
Show all
Show less
diff --git a/Cargo.toml b/Cargo.toml
index 6681dc0..87bf89d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "pind"
-version = "0.1.0"
+version = "0.1.1"
edition = "2024"
[dependencies]
diff --git a/pindc b/pindc
index 9c3783b..3938ff6 100755
--- a/pindc
+++ b/pindc
@@ -2,9 +2,9 @@
Pixel 2025
https://pi66.xyz/pind | github:pixel2175/pind
this script runs the daemon with the client env
...
diff --git a/Cargo.toml b/Cargo.toml
index 6681dc0..87bf89d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "pind"
-version = "0.1.0"
+version = "0.1.1"
edition = "2024"
[dependencies]
diff --git a/pindc b/pindc
index 9c3783b..3938ff6 100755
--- a/pindc
+++ b/pindc
@@ -2,9 +2,9 @@
Pixel 2025
https://pi66.xyz/pind | github:pixel2175/pind
this script runs the daemon with the client env
-
env_cmd="$1"
-[ -z "$env_cmd" ] && env_cmd="env"
+[ -z "$env_cmd" ] && env_cmd="sudo"
+pgrep -x "pindd" >/dev/null 2>&1 && $env_cmd pkill -x "pindd" >/dev/null 2>&1
if [ "$env_cmd" = "doas" ]; then
exec doas -u root env $(printenv | tr '\n' '\0' | xargs -0 -I{} echo "{}") pindd "$USER"