modified: Kvantum/matugen/matugen.svg modified: btop/themes/matugen.theme modified: cava/themes/matugen modified: clipse/matugen.json new file: fish/functions/up-or-search.fish modified: foot/themes/matugen-theme.ini modified: gtk-3.0/colors.css modified: gtk-3.0/colors.css.bak modified: gtk-3.0/colors.css.nak modified: gtk-4.0/colors.css modified: gtk-4.0/colors.css.bak modified: hypr/colors-hyprlock.conf modified: hypr/colors.conf modified: hypr/hyprtoolkit.conf modified: hyprwhspr/mic_osd.pid new file: ironbar/1 modified: ironbar/colors.css modified: ironbar/config.json new file: ironbar/config.json.matugen new file: ironbar/schema-v0.18.0.json modified: kitty/current-theme.conf new file: kitty/current-theme1.conf new file: kitty/dank-tabs.conf modified: kitty/themes/Matugen.conf modified: matugen/config.toml new file: matugen/config1.toml new file: matugen/custom3.json modified: matugen/scripts/foot-apply-colors.sh modified: mimeapps.list modified: niri/binds.kdl modified: niri/colors.kdl modified: niri/config.kdl new file: niri/dms/alttab.kdl new file: niri/dms/binds.kdl new file: niri/dms/colors.kdl new file: niri/dms/cursor.kdl new file: niri/dms/layout.kdl new file: niri/dms/outputs.kdl new file: niri/dms/profiles/profile_1776211496314_g03e3q.kdl new file: niri/dms/windowrules.kdl new file: niri/dms/wpblur.kdl new file: niri/scripts/caps new file: niri/scripts/clipse.sh new file: niri/scripts/ironbar-toggle.sh new file: niri/scripts/satty.sh modified: niri/spawn-at-startup.kdl modified: niri/window-rule.kdl modified: nvim/lua/matugen.lua modified: rmpc/themes/matugen.ron modified: starship.toml modified: swaync/colors.css new file: swaync/config_1.json new file: swaync/style_1.css modified: swayosd/colors.css modified: telegram/matugen.tdesktop-theme modified: telegram/matugen/background.jpg modified: telegram/matugen/background.svg modified: telegram/matugen/colors.tdesktop-theme modified: tmux/colors.conf modified: walker/themes/matugen/colors.css modified: yazi/theme.toml
27 lines
725 B
Bash
27 lines
725 B
Bash
#!/bin/bash
|
||
set -e
|
||
|
||
TIMESTAMP=$(date '+%Y%m%d-%H%M%S')
|
||
TMPFILE="/tmp/satty-${TIMESTAMP}.png"
|
||
OUTPUT_DIR="$HOME/imgs/screenshots"
|
||
mkdir -p "$OUTPUT_DIR"
|
||
|
||
# Запускаем скриншот niri в указанный путь
|
||
niri msg action screenshot-screen --path "$TMPFILE"
|
||
|
||
# Ждём появления файла (с таймаутом)
|
||
for i in $(seq 1 60); do
|
||
[ -f "$TMPFILE" ] && break
|
||
sleep 0.1
|
||
done
|
||
|
||
# Если файл создан — открываем в Satty
|
||
if [ -f "$TMPFILE" ]; then
|
||
satty --filename "$TMPFILE" \
|
||
--output-filename "${OUTPUT_DIR}/screenshot-from-${TIMESTAMP}.png" \
|
||
--copy-command wl-copy \
|
||
--early-exit
|
||
rm -f "$TMPFILE"
|
||
# niri msg action focus-window-previous
|
||
|
||
fi
|