git-lfs,media: add lfs for media files and new catpuccin imgs (#111)
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.gif filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
|
Before Width: | Height: | Size: 205 KiB After Width: | Height: | Size: 131 B |
@@ -1,5 +1,21 @@
|
||||
# Themes
|
||||
|
||||
## catppuccin-frappe.ini
|
||||
|
||||

|
||||
|
||||
## catppuccin-latte.ini
|
||||
|
||||

|
||||
|
||||
## catppuccin-macchiato.ini
|
||||
|
||||

|
||||
|
||||
## catppuccin-mocha.ini
|
||||
|
||||

|
||||
|
||||
## cherry.ini
|
||||
|
||||

|
||||
|
||||
3
themes/screenshots/catppuccin-frappe.png
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0704a1aadffee71bc0753c861d8ac8b8588aae76ad8cdcb4f2c2700b98ec095c
|
||||
size 23814
|
||||
3
themes/screenshots/catppuccin-latte.png
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:58d56d6e16e14f0eddaa8a11e8bf238f2056e784b9c7c46d88aa8ff2d948355e
|
||||
size 23110
|
||||
3
themes/screenshots/catppuccin-macchiato.png
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:225dba8cf87de1ae7118bfd98a1966fdb92cc826418dd9ef7dda5ee77ae8d0f3
|
||||
size 23886
|
||||
3
themes/screenshots/catppuccin-mocha.png
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0c8269cc55fdc26bfff240b3dccd94ffab6400b33c049af23912b74a62247943
|
||||
size 23826
|
||||
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 130 B |
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
MYSELF=$(realpath "$0")
|
||||
@@ -16,7 +17,7 @@ if [[ -z "$IM_FLOATING" ]]; then
|
||||
# 12 pts ≈ 16 px
|
||||
exec hyprctl dispatch exec \
|
||||
"[float; size $((COLS*16)) $((ROWS*16))]" \
|
||||
"kitty --override font_size=12.0 --override background_opacity=1 --override cursor_trail=0 --override cursor_shape=beam --override cursor_blink_interval=0 bash -c 'cd \"$PWD\" && IM_FLOATING=1 LIDM_PATH=\"$LIDM_PATH\" LIDM_SCR_TTY=\"$(tty)\" LIDM_SESSIONS_N=\"$LIDM_SESSIONS_N\" \"$MYSELF\"'"
|
||||
"kitty --override font_size=12.0 --override background_opacity=1 --override cursor_trail=0 --override cursor_shape=beam --override cursor_blink_interval=0 bash -c 'cd \"$PWD\" && IM_FLOATING=1 LIDM_PATH=\"$LIDM_PATH\" LIDM_SCR_TTY=\"$(tty)\" LIDM_SESSIONS_N=\"$LIDM_SESSIONS_N\" bash -i \"$MYSELF\"'"
|
||||
fi
|
||||
|
||||
LIDM_PATH=${LIDM_PATH:-$(command which lidm)}
|
||||
@@ -44,23 +45,26 @@ printf '\033]4;0;rgb:%s\007' "${BG:0:2}/${BG:2:2}/${BG:4:2}"
|
||||
PRAD=$(hyprctl getoption decoration:rounding | rg int | cut -d' ' -f2)
|
||||
hyprctl keyword decoration:rounding 0
|
||||
|
||||
tty=$(tty)
|
||||
for theme in "$MYDIR"/*.ini; do
|
||||
LIDM_CONF="$theme" "$LIDM_PATH" <"$tty" &
|
||||
LIDM_CONF="$theme" "$LIDM_PATH" &
|
||||
LIDM_PID=$!
|
||||
|
||||
sleep .2
|
||||
for n in $(seq "$LIDM_SESSIONS_N"); do
|
||||
GEOMETRY=$(
|
||||
hyprctl -j activewindow | \
|
||||
jq -r '(.at[0]|tostring) + "," + (.at[1]|tostring) + " " + (.size[0]|tostring) + "x" + (.size[1]|tostring)'
|
||||
)
|
||||
grim -g "$GEOMETRY" - > "$MYDIR/screenshots/$(basename "$theme" | cut -d. -f1)-$n.png"
|
||||
notify-send "$n taken"
|
||||
wtype -k right
|
||||
sleep .5
|
||||
done
|
||||
kill -15 $LIDM_PID
|
||||
(
|
||||
sleep .2
|
||||
for n in $(seq "$LIDM_SESSIONS_N"); do
|
||||
GEOMETRY=$(
|
||||
hyprctl -j activewindow | \
|
||||
jq -r '(.at[0]|tostring) + "," + (.at[1]|tostring) + " " + (.size[0]|tostring) + "x" + (.size[1]|tostring)'
|
||||
)
|
||||
grim -g "$GEOMETRY" - > "$MYDIR/screenshots/$(basename "$theme" | cut -d. -f1)-$n.png"
|
||||
notify-send "$n taken"
|
||||
wtype -k right
|
||||
sleep .5
|
||||
done
|
||||
kill -15 $LIDM_PID
|
||||
) &
|
||||
|
||||
fg %-
|
||||
sleep .5
|
||||
done
|
||||
|
||||
@@ -68,9 +72,9 @@ gifski \
|
||||
-Q 95 --fps 4 \
|
||||
-W $((COLS*32)) \
|
||||
-o "$MYDIR/../assets/media/lidm.gif" \
|
||||
"$MYDIR"/screenshots/*.png &> "$LIDM_SCR_TTY"
|
||||
"$MYDIR"/screenshots/*-?.png &> "$LIDM_SCR_TTY"
|
||||
|
||||
for screenshot in "$MYDIR"/screenshots/*"-1.png"; do
|
||||
for screenshot in "$MYDIR"/screenshots/*"-2.png"; do
|
||||
# shellcheck disable=SC2001
|
||||
mv "$screenshot" "$(sed 's/-[0-9]\.png/.png/' <<<"$screenshot")"
|
||||
|
||||
|
||||