Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Primtux-Eole
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Grenoble
Primtux-Eole
Commits
0be6f2bb
Unverified
Commit
0be6f2bb
authored
Sep 16, 2019
by
David Beniamine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid double multiple runs
parent
9709ca77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
refreshVP.sh
refreshVP.sh
+8
-0
No files found.
refreshVP.sh
View file @
0be6f2bb
...
...
@@ -19,6 +19,7 @@
timeout
=
10
DEBUG
=
true
interaction
=
true
echo
""
>
/var/log/vp.log
log
(){
if
$DEBUG
then
...
...
@@ -69,11 +70,18 @@ screens=$(xrandr | grep " connected" | cut -f 1 -d ' ' \
|
sed
-e
's/ /\n/g'
|
grep
-v
"
\<
$MAIN_SCREEN
\>
"
)
log
"SCREENS '
$screens
'"
log
"all '
$screens$MAIN_SCREEN
'"
log
"cat '
$(
cat
/tmp/vp-screens
)
'"
if
[
-z
"
$screens$MAIN_SCREEN
"
]
then
log
"noscreens exiting on
$(
date
)
"
exit
elif
[
"
$screens$MAIN_SCREEN
"
==
"
$(
cat
/tmp/vp-screens
)
"
]
then
log
"no changes exiting on
$(
date
)
"
exit
fi
echo
"
$screens$MAIN_SCREEN
"
>
/tmp/vp-screens
clone
(){
# Auto detect best resolution
...
...
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