mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Merge branch 'dev' into rc
This commit is contained in:
@@ -92,6 +92,10 @@ Exceptions are allowed for bootstrap, preflight, migration, and package-helper s
|
|||||||
- `default/themed/*.tpl` - templates with `{{ variable }}` placeholders for theme colors
|
- `default/themed/*.tpl` - templates with `{{ variable }}` placeholders for theme colors
|
||||||
- `themes/*/colors.toml` - theme color definitions (accent, background, foreground, color0-15)
|
- `themes/*/colors.toml` - theme color definitions (accent, background, foreground, color0-15)
|
||||||
|
|
||||||
|
# Visual Changes
|
||||||
|
|
||||||
|
When making visual changes, such as Waybar styles or desktop appearance, always take and analyze a screenshot after applying the change to verify the result. Use `omarchy capture screenshot fullscreen save` for fullscreen screenshots.
|
||||||
|
|
||||||
# Refresh Pattern
|
# Refresh Pattern
|
||||||
|
|
||||||
To copy a default config to user config with automatic backup:
|
To copy a default config to user config with automatic backup:
|
||||||
|
|||||||
@@ -233,6 +233,7 @@ stop_screenrecording() {
|
|||||||
else
|
else
|
||||||
finalize_recording
|
finalize_recording
|
||||||
local filename=$(cat "$RECORDING_FILE" 2>/dev/null)
|
local filename=$(cat "$RECORDING_FILE" 2>/dev/null)
|
||||||
|
echo "$filename"
|
||||||
local preview="${filename%.mp4}-preview.png"
|
local preview="${filename%.mp4}-preview.png"
|
||||||
|
|
||||||
# Generate a preview thumbnail from the first frame
|
# Generate a preview thumbnail from the first frame
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# omarchy:summary=Take a screenshot
|
# omarchy:summary=Take a screenshot
|
||||||
# omarchy:group=capture
|
# omarchy:group=capture
|
||||||
# omarchy:args=[smart|region|windows|fullscreen] [slurp|copy] [--editor=<name>]
|
# omarchy:args=[smart|region|windows|fullscreen] [slurp|copy|save] [--editor=<name>]
|
||||||
# omarchy:examples=omarchy screenshot | omarchy capture screenshot region
|
# omarchy:examples=omarchy screenshot | omarchy capture screenshot region
|
||||||
# omarchy:aliases=omarchy screenshot
|
# omarchy:aliases=omarchy screenshot
|
||||||
|
|
||||||
@@ -126,14 +126,22 @@ esac
|
|||||||
FILENAME="screenshot-$(date +'%Y-%m-%d_%H-%M-%S').png"
|
FILENAME="screenshot-$(date +'%Y-%m-%d_%H-%M-%S').png"
|
||||||
FILEPATH="$OUTPUT_DIR/$FILENAME"
|
FILEPATH="$OUTPUT_DIR/$FILENAME"
|
||||||
|
|
||||||
if [[ $PROCESSING == "slurp" ]]; then
|
case "$PROCESSING" in
|
||||||
|
slurp)
|
||||||
grim -g "$SELECTION" "$FILEPATH" || exit 1
|
grim -g "$SELECTION" "$FILEPATH" || exit 1
|
||||||
|
echo "$FILEPATH"
|
||||||
wl-copy <"$FILEPATH"
|
wl-copy <"$FILEPATH"
|
||||||
|
|
||||||
(
|
(
|
||||||
ACTION=$(notify-send "Screenshot saved to clipboard and file" "Edit with Super + Alt + , (or click this)" -t 10000 -i "$FILEPATH" -A "default=edit")
|
ACTION=$(notify-send "Screenshot saved to clipboard and file" "Edit with Super + Alt + , (or click this)" -t 10000 -i "$FILEPATH" -A "default=edit")
|
||||||
[[ $ACTION == "default" ]] && open_editor "$FILEPATH"
|
[[ $ACTION == "default" ]] && open_editor "$FILEPATH"
|
||||||
) &
|
) >/dev/null 2>&1 &
|
||||||
else
|
;;
|
||||||
|
copy)
|
||||||
grim -g "$SELECTION" - | wl-copy
|
grim -g "$SELECTION" - | wl-copy
|
||||||
fi
|
;;
|
||||||
|
save)
|
||||||
|
grim -g "$SELECTION" "$FILEPATH" || exit 1
|
||||||
|
echo "$FILEPATH"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user