Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
04b08f7b
Commit
04b08f7b
authored
Aug 6, 2013
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Can choose window size in utility to resize window (for screenshot)
parent
7438809a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dev/resize_window.sh
+15
-3
15 additions, 3 deletions
dev/resize_window.sh
with
15 additions
and
3 deletions
dev/resize_window.sh
+
15
−
3
View file @
04b08f7b
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
# Syntax
# Syntax
if
[
"x
$1
"
=
"x"
]
if
[
"x
$1
"
=
"x"
]
then
then
echo
"resize_windows.sh (list|0x99999999)"
echo
"resize_windows.sh (list|0x99999999)
[1280 1024]
"
fi
fi
# To list all windows
# To list all windows
...
@@ -20,7 +20,19 @@ fi
...
@@ -20,7 +20,19 @@ fi
# To resize a specific window
# To resize a specific window
if
[
"x
$1
"
!=
"xlist"
-a
"x
$1
"
!=
"x"
]
if
[
"x
$1
"
!=
"xlist"
-a
"x
$1
"
!=
"x"
]
then
then
wmctrl
-i
-r
$1
-e
0,0,0,1280,1024
if
[
"x
$2
"
=
"x"
]
echo
Size of windows
$1
modified
then
width
=
1280
else
width
=
$2
fi
if
[
"x
$3
"
=
"x"
]
then
height
=
1024
else
height
=
$3
fi
wmctrl
-i
-r
$1
-e
0,0,0,
$width
,
$height
echo
Size of windows
$1
modified to
$width
x
$height
fi
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment