dots


commit
9a72aea
parent
da997b3
author
xxwhirlpool
date
2025-06-09 08:24:55 -0400 EDT
more scripts
4 files changed,  +29, -13
M config/.local/bin/pusheu
+1, -1
1@@ -2,4 +2,4 @@
2 #
3 # this is my shortcut for pushing to the remote for my site eunoia and also generating a new changelog file
4 
5-git push bytes main && cd /home/kat/Documents/Code/Git/-mine/astro-eunoia/eunoia/src/utils && node git-changelog.js
6+git push bytes main && cd /home/kat/Documents/Git/-mine/eunoia-astro/src/utils && node git-changelog.js
A config/.local/bin/recordscreen
+22, -0
 1@@ -0,0 +1,22 @@
 2+#!/bin/bash
 3+#
 4+# inspired by bread on penguins
 5+#
 6+# https://github.com/BreadOnPenguins/scripts/blob/master/record
 7+
 8+VIDPATH="/home/kat/Videos/Screencasts"
 9+
10+record() {
11+	ffmpeg -s "$(xdpyinfo | awk '/dimensions/{print $2}')" -f x11grab -r 30 -i :0.0 -c:v h264 -qp 0 "$VIDPATH/screencast_ffmpeg_$(date '+%a__%b%d__%H_%M_%S').mp4" &
12+	echo $! > /tmp/recpid
13+
14+	notify-send "screen recording started"
15+}
16+
17+end() {
18+	kill -15 "$(cat /tmp/recpid)" && rm -f /tmp/recpid
19+
20+	notify-send "screen recording ended"
21+}
22+
23+([[ -f /tmp/recpid ]] && end && exit 0) || record
M config/.local/bin/screenshot
+1, -12
 1@@ -9,17 +9,6 @@ SHOTPATH="/home/kat/Pictures/Screenshots"
 2 COUNT=$(find $SHOTPATH -type f -printf x | wc -c | awk '{print $1+1}' | awk '{printf "%04d\n", $0}')
 3 FILE="$SHOTPATH/$COUNT.png"
 4 
 5-# Determine screenshot utility
 6-if command -v import &> /dev/null; then
 7-    TOOL="import"
 8-elif command -v scrot &> /dev/null; then
 9-    TOOL="scrot"
10-else
11-    notify-send "Screenshot Tool Missing" "Neither ImageMagick (import) nor scrot is installed!"
12-    echo "Error: No screenshot tool found (import or scrot)."
13-    exit 1
14-fi
15-
16 import -window root "$FILE" || exit 1
17 
18-notify-send "Screenshot Taken" "Saved as ${FILE} in ${SHOTPATH}"
19+notify-send "screenshot taken" "saved as ${FILE} in ${SHOTPATH}"
A stow-local.sh
+5, -0
1@@ -0,0 +1,5 @@
2+#!/bin/bash
3+
4+stow -v -t ~ "config" --adopt
5+
6+stow -v -t ~ "scripts" --adopt