Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximpershot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximpershot
Commits
528cefd5
Verified
Commit
528cefd5
authored
Aug 14, 2025
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the command and add an app check
parent
3d1ca032
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
ximpershot
ximpershot
+8
-3
No files found.
ximpershot
View file @
528cefd5
...
@@ -117,7 +117,7 @@ process_screenshot() {
...
@@ -117,7 +117,7 @@ process_screenshot() {
case
"
$app
"
in
case
"
$app
"
in
""
)
""
)
if
[
"
$output_file
"
=
"-"
]
;
then
if
[
"
$output_file
"
=
"-"
]
;
then
grim
-g
"
${
geometry
}
"
-
-stdout
grim
-g
"
${
geometry
}
"
-
elif
[
-n
"
$output_file
"
]
;
then
elif
[
-n
"
$output_file
"
]
;
then
grim
-g
"
${
geometry
}
"
"
$output_file
"
grim
-g
"
${
geometry
}
"
"
$output_file
"
fi
fi
...
@@ -148,7 +148,7 @@ save_geometry() {
...
@@ -148,7 +148,7 @@ save_geometry() {
fi
fi
if
[
"
$COMMAND
"
]
;
then
if
[
"
$COMMAND
"
]
;
then
wayshot
-s
"
${
geometry
}
"
--stdout
|
$COMMAND
grim
-g
"
${
geometry
}
"
-
|
$COMMAND
return
return
fi
fi
...
@@ -231,8 +231,13 @@ while true; do
...
@@ -231,8 +231,13 @@ while true; do
*
)
*
)
print_error
"Неверная опция:
$1
"
print_error
"Неверная опция:
$1
"
;;
;;
esac
esac
done
done
if
[
-n
"
$OUTPUT_APP
"
]
;
then
if
!
command
-v
"
$OUTPUT_APP
"
>
/dev/null 2>&1
;
then
print_error
"Программа
$OUTPUT_APP
не установлена."
fi
fi
begin_grab
$MODE
begin_grab
$MODE
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment