FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UIX-R/utils.sh at master · OpenMW/UIX-R · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
OpenMW
/
UIX-R
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
44
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
UIX-R
/
utils.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (28 loc) · 999 Bytes
Breadcrumbs
UIX-R
/
utils.sh
Copy path
File metadata and controls
31 lines (28 loc) · 999 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!
/usr/bin/env bash
#
create screnshots of NIFs with nifskope
find
.
-iname
"
*.nif
"
|
while
read
f
;
do
echo
${f}
;
DIR=album/
$(
dirname
"
${f}
"
)
echo
${DIR}
mkdir -p
"
$DIR
"
#
create directories
nifskope
"
${f}
"
&
sleep 3
;
#
open nifskope with NIF
wmctrl -c nifskope
;
sleep 2
;
#
close the PNG ICCC warning window
wmctrl -a nifskope
;
#
raise nifskope to top
gnome-screenshot -w -d 1 -f
"
album/
${f}
.png
"
#
screenshot top window
wmctrl -c nifskope
;
wmctrl -c nifskope
;
#
close any open nifskope windows
done
#
find any screenshots that are incorrect and try to retake them
find ./album -name
'
*.png
'
-exec file {}
\;
|
sed
'
s/\(.*png\): .* \([0-9]* x [0-9]*\).*/\2 \1/
'
|
awk
'
int($1) == 1202 {print}
'
|
while
read
f
;
do
f=
${f
:
19
:-
4}
echo
${f}
;
DIR=album/
$(
dirname
"
${f}
"
)
echo
${DIR}
mkdir -p
"
$DIR
"
nifskope
"
${f}
"
&
sleep 3
;
wmctrl -c nifskope
;
sleep 2
;
wmctrl -a nifskope
;
gnome-screenshot -w -d 1 -f
"
album/
${f}
.png
"
wmctrl -c nifskope
;
wmctrl -c nifskope
;
done
Back
|
FazBrowse Home
|
New Git URL