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
6ea41065
Unverified
Commit
6ea41065
authored
Oct 12, 2025
by
Erik Reider
Committed by
GitHub
Oct 12, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add config option to auto expand the per volume controls (#657)
parent
5896170d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
swaync.5.scd
man/swaync.5.scd
+5
-0
configSchema.json
src/configSchema.json
+5
-0
volume.vala
src/controlCenter/widgets/volume/volume.vala
+15
-4
No files found.
man/swaync.5.scd
View file @
6ea41065
...
...
@@ -679,6 +679,11 @@ config file to be able to detect config errors
optional: true ++
default: false ++
description: Show application name in per app control ++
expand-per-app: ++
type: bool ++
optional: true ++
default: false ++
description: If the per app section should start expanded ++
empty-list-label: ++
type: string ++
optional: true ++
...
...
src/configSchema.json
View file @
6ea41065
...
...
@@ -702,6 +702,11 @@
"default"
:
false
,
"description"
:
"Show application name in per app control"
},
"expand-per-app"
:
{
"type"
:
"boolean"
,
"default"
:
false
,
"description"
:
"If the per app section should start expanded"
},
"empty-list-label"
:
{
"type"
:
"string"
,
"default"
:
"No active sink input"
,
...
...
src/controlCenter/widgets/volume/volume.vala
View file @
6ea41065
...
...
@@ -30,9 +30,10 @@ namespace SwayNotificationCenter.Widgets {
private
PulseDevice
?
default_sink
=
null
;
private
PulseDaemon
client
=
new
PulseDaemon
();
private
bool
show_per_app
;
private
bool
show_per_app
=
false
;
private
bool
show_per_app_icon
=
true
;
private
bool
show_per_app_label
=
false
;
private
bool
expand_per_app
=
false
;
construct
{
this
.
client
.
change_default_device
.
connect
(
default_device_changed
);
...
...
@@ -76,6 +77,13 @@ namespace SwayNotificationCenter.Widgets {
this
.
show_per_app_label
=
show_per_app_label
;
}
bool
expand_per_app_found
;
bool
?
expand_per_app
=
get_prop
<
bool
>
(
config
,
"expand-per-app"
,
out
expand_per_app_found
);
if
(
expand_per_app_found
)
{
this
.
expand_per_app
=
expand_per_app
;
}
string
?
el
=
get_prop
<
string
>
(
config
,
"empty-list-label"
);
if
(
el
!=
null
)
{
empty_label
=
el
;
...
...
@@ -155,6 +163,9 @@ namespace SwayNotificationCenter.Widgets {
this
.
client
.
remove_active_sink
.
connect
(
active_sink_removed
);
reveal_button
=
new
Gtk
.
ToggleButton
();
reveal_button
.
set_active
(
expand_per_app
);
revealer
.
set_reveal_child
(
expand_per_app
);
set_button_icon
();
reveal_button
.
toggled
.
connect
(()
=>
{
set_button_icon
();
...
...
@@ -186,9 +197,9 @@ namespace SwayNotificationCenter.Widgets {
this
.
client
.
start
();
}
else
{
this
.
client
.
close
();
if
(
show_per_app
)
{
reveal_button
.
set_active
(
false
);
}
}
if
(
show_per_app
)
{
reveal_button
.
set_active
(
expand_per_app
);
}
}
...
...
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