Pi66

Home | Repos | About | Blog | Gaza

pind
Simple Rust hotkey daemon.
git clone https://git.pi66.xyz/pind

About | Files | Commits | Refs | License


Makefile: prevent overwriting existing file on rebuild

Author: pixel2175
Date: 2025-08-13 14:35
commit: 934262b3

Stat

M Makefile 2 +1 -1
M pindrc 17 +6 -11

Diff

diff --git a/Makefile b/Makefile
index c31f8c1..6fe2e71 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ install: build
 	sudo cp ./pindc $(INSTALL_DIR)/
 	sudo chmod 755 $(INSTALL_DIR)/pindc
 	sudo chmod 755 $(INSTALL_DIR)/pindd
-	sudo mkdir -p $(CONFIG_DIR)
+	sudo mkdir $(CONFIG_DIR)
 	sudo cp pindrc $(CONFIG_DIR)

uninstall: diff --git a/pindrc b/pindrc index 26bb3a8..376f738 100644 --- a/pindrc +++ b/pindrc @@ -1,13 +1,8 @@ -# should every binding take one only line -# key : command ...

Show all

diff --git a/Makefile b/Makefile
index c31f8c1..6fe2e71 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ install: build
 	sudo cp ./pindc $(INSTALL_DIR)/
 	sudo chmod 755 $(INSTALL_DIR)/pindc
 	sudo chmod 755 $(INSTALL_DIR)/pindd
-	sudo mkdir -p $(CONFIG_DIR)
+	sudo mkdir $(CONFIG_DIR)
 	sudo cp pindrc $(CONFIG_DIR)

uninstall: diff --git a/pindrc b/pindrc index 26bb3a8..376f738 100644 --- a/pindrc +++ b/pindrc @@ -1,13 +1,8 @@ -# should every binding take one only line -# key : command -CSU : doas light -A 10 ; notify-send "Light" "Light Up %$(light)" -CSD : doas light -U 10 ; notify-send "Light" "Light Down %$(light)" -Mu : set file (ls ~/learn/book | dmenu); and test -n "$file"; and zathura ~/learn/book/"$file" -CSR : pactl set-sink-volume @DEFAULT_SINK@ +10% ; notify-send "Sound" "Volume Up %$(pamixer --get-volume)" -CSL : pactl set-sink-volume @DEFAULT_SINK@ -10% ; notify-send "Sound" "Volume Down %$(pamixer --get-volume)" +CSU : doas light -A 10 ; notify-send "Light" "Light Up %$(light)" +CSD : doas light -U 10 ; notify-send "Light" "Light Down %$(light)" +Mu : set file (ls ~/learn/book | wmenu); and test -n "$file"; and zathura ~/learn/book/"$file" +CSR : pactl set-sink-volume @DEFAULT_SINK@ +10% ; notify-send "Sound" "Volume Up %$(pamixer --get-volume)" +CSL : pactl set-sink-volume @DEFAULT_SINK@ -10% ; notify-send "Sound" "Volume Down %$(pamixer --get-volume)" CSw : walrs -i ~/.config/wallpaper -CSm : maim -s -o | xclip -selection clipboard -t image/png && pino --title "Screenshot" -essage "The screenshot is copied to clipboard" -CSp : pkill -x pino -CSj : xdg-open /home/pixel/soft/web/japan/indexx.html -CSi : rm $(cat ~/.cache/wal/wal) +CSm : grim -g "$(slurp)" - | wl-copy && pino --title "Screenshot" --message "The screenshot is copied to clipboard" CSh : foot

// Created by Pi66

// Copyright ©Pi66 2026