home · contact · privacy
Reorganize. master
authorChristian Heller <c.heller@plomlompom.de>
Mon, 24 Mar 2025 06:49:08 +0000 (07:49 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 24 Mar 2025 06:49:08 +0000 (07:49 +0100)
12 files changed:
testing/home/all/.bashrc
testing/home/all/.nonpath_bins/plomlib.file_dot_variants [deleted file]
testing/home/all/.plomlib.sh/file_dot_variants [new file with mode: 0644]
testing/home/all/.profile
testing/home/desktop/.local/bin/borgplom
testing/home/desktop/.local/bin/vol
testing/home/desktop/.nonpath_bins/plomlib.audio_dev_is_mute [deleted file]
testing/home/desktop/.nonpath_bins/plomlib.get_passphrase [deleted file]
testing/home/desktop/.plomlib.sh/audio_dev_is_mute [new file with mode: 0644]
testing/home/desktop/.plomlib.sh/get_passphrase [new file with mode: 0644]
testing/home/t490s/.nonpath_bins/status.sh
testing/scripts/setup_secrets.sh

index 115837e36d8c284027ebda734286b77bc092ba74..636c40854b8188fcb0d23cf56a7889e545e9f146 100644 (file)
@@ -25,5 +25,5 @@ PS3="${tput_color}select: ${tput_reset}"
 PS4="${tput_color}+ ${tput_reset}"
 
 # include others
-. "${HOME}/.nonpath_bins/plomlib.file_dot_variants"
+. "${HOME}/.plomlib.sh/file_dot_variants"
 file_dot_variants "${HOME}/\.bashrc"
diff --git a/testing/home/all/.nonpath_bins/plomlib.file_dot_variants b/testing/home/all/.nonpath_bins/plomlib.file_dot_variants
deleted file mode 100644 (file)
index 1c1bf69..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-file_dot_variants() {
-    for FILE in ${1}\.*; do
-        if [ -f "${FILE}" ]; then
-            . "${FILE}"
-        fi
-    done
-}
diff --git a/testing/home/all/.plomlib.sh/file_dot_variants b/testing/home/all/.plomlib.sh/file_dot_variants
new file mode 100644 (file)
index 0000000..1c1bf69
--- /dev/null
@@ -0,0 +1,7 @@
+file_dot_variants() {
+    for FILE in ${1}\.*; do
+        if [ -f "${FILE}" ]; then
+            . "${FILE}"
+        fi
+    done
+}
index 02e3771fae4c9baf1b5b135acaab75129be20064..13fa4226a1836873242f7fae74e054f9086c6404 100644 (file)
@@ -16,5 +16,5 @@ PATH_LOCAL_BIN="${HOME}/.local/bin"
 export PATH
 
 # include others
-. "${HOME}/.nonpath_bins/plomlib.file_dot_variants"
+. "${HOME}/.plomlib.sh/file_dot_variants"
 file_dot_variants "${HOME}/\.profile"
index d9511b43659283a9a9d12a3347bd60c71d46eb17..477ecf6f1de4a718ee8e307c2e8a3cb4eaf205b4 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-. "${HOME}/.nonpath_bins/plomlib.get_passphrase"
+. "${HOME}/.plomlib.sh/get_passphrase"
 
 PATH_BORGKEYS="${HOME}/.config/borg/keys"
 NAME_REPO=borg
index cf49262176c02dcf20df08aec8f6f3b947dad83a..bae15e40c4d8fe1096e96eaa7f5acb88179ccab5 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-. "${HOME}/.nonpath_bins/plomlib.audio_dev_is_mute"
+. "${HOME}/.plomlib.sh/audio_dev_is_mute"
 
 MAX_LOUDNESS=150
 
diff --git a/testing/home/desktop/.nonpath_bins/plomlib.audio_dev_is_mute b/testing/home/desktop/.nonpath_bins/plomlib.audio_dev_is_mute
deleted file mode 100644 (file)
index e28da40..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-audio_dev_is_mute() {
-    [ "$(pactl get-sink-mute 0)" = "Mute: yes" ]
-}
diff --git a/testing/home/desktop/.nonpath_bins/plomlib.get_passphrase b/testing/home/desktop/.nonpath_bins/plomlib.get_passphrase
deleted file mode 100644 (file)
index 6e3f0ff..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-get_passphrase() {
-    stty -echo
-    read PASSPHRASE
-    stty echo
-    printf "${PASSPHRASE}"
-}
diff --git a/testing/home/desktop/.plomlib.sh/audio_dev_is_mute b/testing/home/desktop/.plomlib.sh/audio_dev_is_mute
new file mode 100644 (file)
index 0000000..e28da40
--- /dev/null
@@ -0,0 +1,3 @@
+audio_dev_is_mute() {
+    [ "$(pactl get-sink-mute 0)" = "Mute: yes" ]
+}
diff --git a/testing/home/desktop/.plomlib.sh/get_passphrase b/testing/home/desktop/.plomlib.sh/get_passphrase
new file mode 100644 (file)
index 0000000..6e3f0ff
--- /dev/null
@@ -0,0 +1,6 @@
+get_passphrase() {
+    stty -echo
+    read PASSPHRASE
+    stty echo
+    printf "${PASSPHRASE}"
+}
index 9794d2e2d10ff83e75f74d2fedf199d460b52b54..379ef4ac2e54aa67b05453a9ba44bd298373ef27 100755 (executable)
@@ -2,7 +2,7 @@
 # see sway-bar(5) and swaybar-protocol(7)
 set -e
 
-. "${HOME}/.nonpath_bins/plomlib.audio_dev_is_mute"
+. "${HOME}/.plomlib.sh/audio_dev_is_mute"
 
 SYSCLASS_DIR=/sys/class
 
index 6135927801b80426740cb0ce2a293c8d92802318..224ac7e0cdf2a9b835edb925ee0feffe96583d6b 100755 (executable)
@@ -14,7 +14,7 @@ cd $(dirname "$0")
 # - PATH_USER_HOME
 # - USERNAME
 
-. "${PATH_USER_HOME}/.nonpath_bins/plomlib.get_passphrase"
+. "${PATH_USER_HOME}/.plomlib.sh/get_passphrase"
 
 PATH_REL_SECRETS=to_usb
 export PATH_SECRETS="${PATH_USER_HOME}/${PATH_REL_SECRETS}"