Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-unified-theme-switcher
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
1
Merge Requests
1
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
ximper-unified-theme-switcher
Commits
7604b19b
Commit
7604b19b
authored
Dec 07, 2024
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
double-trigger check when using de gnome replaced with a 150 millisecond ignore (eterbug 17898)
parent
a9897544
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
ximper-unified-theme-switcher-service
service/bin/ximper-unified-theme-switcher-service
+8
-13
No files found.
service/bin/ximper-unified-theme-switcher-service
View file @
7604b19b
...
...
@@ -113,25 +113,20 @@ main() {
;;
esac
if
[
"
$GNOME_DE
"
=
True
]
;
then
local
COUNT
=
0
fi
dbus-monitor
"interface='org.freedesktop.portal.Settings',member=SettingChanged"
|
\
while
IFS
=
read
-r
LINE
;
do
local
THEME
local
CURRENT_TIME
local
LAST_UPDATE
THEME
=
$(
echo
"
$LINE
"
|
grep
-E
-o
'string "(prefer-dark|default)"'
)
if
[
-n
"
$THEME
"
]
;
then
# Текущее время в миллисекундах
CURRENT_TIME
=
$(
date
+%s%3N
)
if
[
"
$GNOME_DE
"
=
True
]
;
then
((
COUNT++
))
if
[
$((
$COUNT
%
2
))
=
0
]
;
then
echo
"
$THEME
"
check_and_update_themes
COUNT
=
0
fi
else
if
[
-z
"
$LAST_UPDATE
"
]
||
[
$((
CURRENT_TIME
-
LAST_UPDATE
))
-ge
150
]
;
then
LAST_UPDATE
=
$CURRENT_TIME
echo
"
$THEME
"
check_and_update_themes
fi
...
...
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