Commit 9a72aea

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