summaryrefslogtreecommitdiff
path: root/dots/home
diff options
context:
space:
mode:
authorElizabeth <me@liz.coffee>2025-06-02 13:11:10 -0700
committerElizabeth <me@liz.coffee>2025-06-02 13:11:10 -0700
commitd098e94ad102da9d018acca72ca5a5c554d25a01 (patch)
treed6d23ee63ad5a1aa4017a605d9e09e75de2c5f49 /dots/home
parentede675866355d34ac9fdc1b8e047576f574bdfa2 (diff)
downloaddotfiles-d098e94ad102da9d018acca72ca5a5c554d25a01.tar.gz
dotfiles-d098e94ad102da9d018acca72ca5a5c554d25a01.zip
Update paths n stuff
Diffstat (limited to 'dots/home')
-rw-r--r--dots/home/.pubkey.j21
-rw-r--r--dots/home/Documents/pubkey.asc0
-rw-r--r--dots/home/Pictures/pfp/bubblegum.pngbin0 -> 443498 bytes
-rw-r--r--dots/home/Pictures/pfp/eejypenguin.pngbin0 -> 175119 bytes
-rw-r--r--dots/home/Pictures/pfp/gus.jpgbin0 -> 31578 bytes
-rw-r--r--dots/home/Pictures/pfp/mefr.pngbin0 -> 1265644 bytes
-rw-r--r--dots/home/Pictures/pfp/shoppingpenguin.pngbin0 -> 277623 bytes
-rw-r--r--dots/home/Pictures/wallpapers/beach.jpgbin0 -> 169847 bytes
-rw-r--r--dots/home/Pictures/wallpapers/flat-books.pngbin0 -> 1133976 bytes
-rw-r--r--dots/home/Pictures/wallpapers/ghibli-road.pngbin0 -> 313297 bytes
-rw-r--r--dots/home/Pictures/wallpapers/penguins-hugging.jpgbin0 -> 519955 bytes
-rw-r--r--dots/home/Pictures/wallpapers/rose.pngbin0 -> 1508642 bytes
-rw-r--r--dots/home/Pictures/wallpapers/snowy-light-trees.jpgbin0 -> 1283226 bytes
-rw-r--r--dots/home/Pictures/wallpapers/sunrise-mountains.webpbin0 -> 62148 bytes
-rw-r--r--dots/home/Pictures/wallpapers/table.pngbin0 -> 608017 bytes
-rw-r--r--dots/home/Pictures/wallpapers/wall.jpgbin0 -> 275592 bytes
-rwxr-xr-xdots/home/scripts/greet.sh29
-rwxr-xr-xdots/home/scripts/log.sh32
-rwxr-xr-xdots/home/scripts/pinentry.sh20
-rwxr-xr-xdots/home/scripts/platform.sh11
-rwxr-xr-xdots/home/scripts/system_name.sh14
-rwxr-xr-xdots/home/scripts/theme.sh22
22 files changed, 129 insertions, 0 deletions
diff --git a/dots/home/.pubkey.j2 b/dots/home/.pubkey.j2
new file mode 100644
index 0000000..e4e3602
--- /dev/null
+++ b/dots/home/.pubkey.j2
@@ -0,0 +1 @@
+{{ pgp.asc }}
diff --git a/dots/home/Documents/pubkey.asc b/dots/home/Documents/pubkey.asc
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/dots/home/Documents/pubkey.asc
diff --git a/dots/home/Pictures/pfp/bubblegum.png b/dots/home/Pictures/pfp/bubblegum.png
new file mode 100644
index 0000000..171bc62
--- /dev/null
+++ b/dots/home/Pictures/pfp/bubblegum.png
Binary files differ
diff --git a/dots/home/Pictures/pfp/eejypenguin.png b/dots/home/Pictures/pfp/eejypenguin.png
new file mode 100644
index 0000000..2ae47cb
--- /dev/null
+++ b/dots/home/Pictures/pfp/eejypenguin.png
Binary files differ
diff --git a/dots/home/Pictures/pfp/gus.jpg b/dots/home/Pictures/pfp/gus.jpg
new file mode 100644
index 0000000..8073311
--- /dev/null
+++ b/dots/home/Pictures/pfp/gus.jpg
Binary files differ
diff --git a/dots/home/Pictures/pfp/mefr.png b/dots/home/Pictures/pfp/mefr.png
new file mode 100644
index 0000000..46e6948
--- /dev/null
+++ b/dots/home/Pictures/pfp/mefr.png
Binary files differ
diff --git a/dots/home/Pictures/pfp/shoppingpenguin.png b/dots/home/Pictures/pfp/shoppingpenguin.png
new file mode 100644
index 0000000..02c14ec
--- /dev/null
+++ b/dots/home/Pictures/pfp/shoppingpenguin.png
Binary files differ
diff --git a/dots/home/Pictures/wallpapers/beach.jpg b/dots/home/Pictures/wallpapers/beach.jpg
new file mode 100644
index 0000000..e2e3949
--- /dev/null
+++ b/dots/home/Pictures/wallpapers/beach.jpg
Binary files differ
diff --git a/dots/home/Pictures/wallpapers/flat-books.png b/dots/home/Pictures/wallpapers/flat-books.png
new file mode 100644
index 0000000..3e4cf16
--- /dev/null
+++ b/dots/home/Pictures/wallpapers/flat-books.png
Binary files differ
diff --git a/dots/home/Pictures/wallpapers/ghibli-road.png b/dots/home/Pictures/wallpapers/ghibli-road.png
new file mode 100644
index 0000000..bf7b60d
--- /dev/null
+++ b/dots/home/Pictures/wallpapers/ghibli-road.png
Binary files differ
diff --git a/dots/home/Pictures/wallpapers/penguins-hugging.jpg b/dots/home/Pictures/wallpapers/penguins-hugging.jpg
new file mode 100644
index 0000000..ee21cc5
--- /dev/null
+++ b/dots/home/Pictures/wallpapers/penguins-hugging.jpg
Binary files differ
diff --git a/dots/home/Pictures/wallpapers/rose.png b/dots/home/Pictures/wallpapers/rose.png
new file mode 100644
index 0000000..0b11bcb
--- /dev/null
+++ b/dots/home/Pictures/wallpapers/rose.png
Binary files differ
diff --git a/dots/home/Pictures/wallpapers/snowy-light-trees.jpg b/dots/home/Pictures/wallpapers/snowy-light-trees.jpg
new file mode 100644
index 0000000..c2f6350
--- /dev/null
+++ b/dots/home/Pictures/wallpapers/snowy-light-trees.jpg
Binary files differ
diff --git a/dots/home/Pictures/wallpapers/sunrise-mountains.webp b/dots/home/Pictures/wallpapers/sunrise-mountains.webp
new file mode 100644
index 0000000..c59bd58
--- /dev/null
+++ b/dots/home/Pictures/wallpapers/sunrise-mountains.webp
Binary files differ
diff --git a/dots/home/Pictures/wallpapers/table.png b/dots/home/Pictures/wallpapers/table.png
new file mode 100644
index 0000000..bb86417
--- /dev/null
+++ b/dots/home/Pictures/wallpapers/table.png
Binary files differ
diff --git a/dots/home/Pictures/wallpapers/wall.jpg b/dots/home/Pictures/wallpapers/wall.jpg
new file mode 100644
index 0000000..f9df8f1
--- /dev/null
+++ b/dots/home/Pictures/wallpapers/wall.jpg
Binary files differ
diff --git a/dots/home/scripts/greet.sh b/dots/home/scripts/greet.sh
new file mode 100755
index 0000000..cb2aae5
--- /dev/null
+++ b/dots/home/scripts/greet.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+source log.sh "greet.sh"
+
+pick_greeting() {
+ path="$1"
+ greetings=("$1"/*)
+ greeting_path="${greetings[$RANDOM % ${#greetings[@]}]}"
+ echo "$greeting_path"
+}
+
+GREETINGS_LIST="$XDG_CONFIG_HOME/zsh/greetings"
+if [ ! -d "$GREETINGS_LIST" ]; then
+ log DEBUG "no such file $GREETINGS_LIST"
+ exit 0
+fi
+
+for greetings in $(ls "$GREETINGS_LIST" | sort); do
+ echo
+ log DEBUG "greeting $greetings"
+
+ path="$GREETINGS_LIST/$greetings"
+ if [ ! -d "$path" ]; then
+ log DEBUG "greetings $path is not a directory"
+ continue
+ fi
+
+ greeting=$(pick_greeting "$path")
+ cat "$greeting"
+done
diff --git a/dots/home/scripts/log.sh b/dots/home/scripts/log.sh
new file mode 100755
index 0000000..8895097
--- /dev/null
+++ b/dots/home/scripts/log.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+# usage:
+# > source log.sh <CALLER>
+# > log INFO "hello"
+# > log "this is epic"
+# > log DEBUG "yo"
+
+_LOG_CALLER=$(basename "$1")
+
+log() {
+ LEVEL=$1
+ shift
+
+ case "$LEVEL" in
+ INFO|DEBUG|ERROR)
+ ;;
+ *)
+ set -- "INFO" "$LEVEL" "$@"
+ LEVEL="INFO"
+ ;;
+ esac
+
+ TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S')
+ MESSAGE="$*"
+
+ if [ "$LEVEL" = "DEBUG" ] && [ -z "$DEBUG" ]; then
+ return
+ fi
+
+ echo "[$TIMESTAMP] [$_LOG_CALLER] [$LEVEL] $MESSAGE"
+}
diff --git a/dots/home/scripts/pinentry.sh b/dots/home/scripts/pinentry.sh
new file mode 100755
index 0000000..f02ee6f
--- /dev/null
+++ b/dots/home/scripts/pinentry.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+source log.sh "pinentry.sh"
+
+#-- <gpg> --
+bin="${HOMEBREW_PREFIX:-"/usr"}/bin"
+case "$PINENTRY_USER_DATA" in
+ *USE_TTY*) pe=$bin/pinentry-tty ;;
+ *USE_CURSES*) pe=$bin/pinentry-curses ;;
+ *USE_QT*) pe=$bin/pinentry-qt ;;
+ *USE_MAC*) pe=$bin/pinentry-mac ;;
+ *USE_GTK2*) pe=$bin/pinentry-gtk-2 ;;
+ *USE_GNOME3*) pe=$bin/pinentry-gnome3 ;;
+ *USE_X11*) pe=$bin/pinentry-x11 ;;
+esac
+
+log DEBUG "$pe"
+
+exec $pe "$@"
+#-- </gpg> --
diff --git a/dots/home/scripts/platform.sh b/dots/home/scripts/platform.sh
new file mode 100755
index 0000000..9449ceb
--- /dev/null
+++ b/dots/home/scripts/platform.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+case "$OSTYPE" in
+ solaris*) echo "solaris" ;;
+ darwin*) echo "osx" ;;
+ linux*) echo "linux" ;;
+ bsd*) echo "bsd" ;;
+ msys*) echo "windows" ;;
+ cygwin*) echo "windows" ;;
+ *) echo "unknown" ;;
+esac
diff --git a/dots/home/scripts/system_name.sh b/dots/home/scripts/system_name.sh
new file mode 100755
index 0000000..2625293
--- /dev/null
+++ b/dots/home/scripts/system_name.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+PLATFORM="${PLATFORM:-`platform.sh`}"
+
+MACHINE="$HOST"
+if [ "$PLATFORM" = "osx" ]; then
+ MACHINE="$(scutil --get ComputerName)"
+elif [ "$PLATFORM" = "linux" ]; then
+ MACHINE="$(cat /proc/sys/kernel/hostname)"
+fi
+
+echo $MACHINE | awk -F\. '{print $1}' \
+ | tr '[:upper:]' '[:lower:]' \
+ | tr ' ' '-'
diff --git a/dots/home/scripts/theme.sh b/dots/home/scripts/theme.sh
new file mode 100755
index 0000000..830f56b
--- /dev/null
+++ b/dots/home/scripts/theme.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+# usage: theme.sh <theme_name>
+
+source log.sh "theme.sh"
+
+THEME="$1"
+log DEBUG "setting theme $THEME"
+
+THEME_SRC="$XDG_CONFIG_HOME/theme"
+THEME_DEST="$HOME/.theme"
+log DEBUG "src $THEME_SRC -> dest $THEME_DEST"
+
+THEME_TEMPL="{{THEME}}"
+
+find -L "$THEME_SRC/" -type f | while read source_file; do
+ destination_file=`echo "$source_file" | sed "s|^$THEME_SRC|$THEME_DEST|g"`
+ mkdir -p `dirname $destination_file`
+ log DEBUG "src $source_file -> dest $destination_file"
+ cat "$source_file" | sed "s|$THEME_TEMPL|$THEME|g" > $destination_file
+done
+