Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
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
ximper-shell-notification-center
Commits
4ecd858c
Verified
Commit
4ecd858c
authored
Mar 22, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backlight: rewrite as unified brightness widget with auto-detection
parent
441e4f55
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
19 deletions
+7
-19
configSchema.json
src/configSchema.json
+1
-17
backlight.vala
src/controlCenter/widgets/backlight/backlight.vala
+0
-0
ddcUtil.vala
src/controlCenter/widgets/backlight/ddcUtil.vala
+6
-2
No files found.
src/configSchema.json
View file @
4ecd858c
...
...
@@ -697,29 +697,13 @@
},
"backlight"
:
{
"type"
:
"object"
,
"description"
:
"
Slider to control monitor brightness
"
,
"description"
:
"
Unified brightness control widget. Auto-detects display backlights (/sys/class/backlight), DDC/CI monitors, and keyboard backlights (/sys/class/leds/*kbd*).
"
,
"additionalProperties"
:
false
,
"properties"
:
{
"device"
:
{
"type"
:
"string"
,
"description"
:
"Name of monitor (find possible devices using `ls /sys/class/backlight` or `ls /sys/class/leds`)"
,
"default"
:
"intel_backlight"
},
"subsystem"
:
{
"type"
:
"string"
,
"description"
:
"Kernel subsystem for brightness control. Use 'ddc' for external monitors via DDC/CI (requires build with -Dddc=true)."
,
"default"
:
"backlight"
,
"enum"
:
[
"backlight"
,
"leds"
,
"ddc"
]
},
"min"
:
{
"type"
:
"integer"
,
"default"
:
0
,
"description"
:
"Lowest possible value for brightness"
},
"display-number"
:
{
"type"
:
"integer"
,
"default"
:
0
,
"description"
:
"DDC display number (from ddcutil detect). 0 means first available. Only used with subsystem 'ddc'."
}
}
},
...
...
src/controlCenter/widgets/backlight/backlight.vala
View file @
4ecd858c
This diff is collapsed.
Click to expand it.
src/controlCenter/widgets/backlight/ddcUtil.vala
View file @
4ecd858c
...
...
@@ -2,7 +2,7 @@ namespace XimperShellNotificationCenter.Widgets {
public
struct
DdcDisplayInfo
{
int
dispno
;
string
model
_name
;
string
display
_name
;
}
class
DdcUtil
{
...
...
@@ -51,9 +51,13 @@ namespace XimperShellNotificationCenter.Widgets {
DdcDisplayInfo
[]
result
=
{};
for
(
int
i
=
0
;
i
<
dlist
.
ct
;
i
++)
{
string
mfg
=
((
string
)
dlist
.
info
[
i
].
mfg_id
).
dup
().
strip
();
string
model
=
((
string
)
dlist
.
info
[
i
].
model_name
).
dup
().
strip
();
string
name
=
mfg
.
length
>
0
?
"%s %s"
.
printf
(
mfg
,
model
)
:
model
;
result
+=
DdcDisplayInfo
()
{
dispno
=
dlist
.
info
[
i
].
dispno
,
model_name
=
((
string
)
dlist
.
info
[
i
].
model_name
).
dup
()
,
display_name
=
name
,
};
}
return
result
;
...
...
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