Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding an option for notification screen selection #231

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions libcinnamon-desktop/cdesktop-enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ typedef enum
C_DESKTOP_STYLUS_BUTTON_ACTION_DISABLED
} CDesktopStylusButtonAction;

typedef enum
{
C_DESKTOP_NOTIFICATION_SCREEN_DISPLAY_PRIMARY_SCREEN,
C_DESKTOP_NOTIFICATION_SCREEN_DISPLAY_ACTIVE_SCREEN,
C_DESKTOP_NOTIFICATION_SCREEN_DISPLAY_FIXED_SCREEN
} CDesktopNotificationScreenDisplay;

typedef enum
{
/* All bindings before _SEPARATOR are treated as
Expand Down
22 changes: 22 additions & 0 deletions schemas/org.cinnamon.desktop.notifications.gschema.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,28 @@
<default>false</default>
<summary>Whether notifications are displayed on the bottom side of the screen</summary>
</key>
<key name="notification-screen-display"
enum="org.cinnamon.desktop.CDesktopNotificationScreenDisplay">
<default>'primary-screen'</default>
<summary>Define which screen(s) to use for displaying notifications</summary>
<description>
This option provides control over how newly created notifications are displayed.
It has three possible values: "primary-screen" which shows notifications only on
the primary display, "active-screen" which shows subsequent notifications only on
the display where the mouse is located, and "fixed-screen" which shows
notifications on a fixed display number if it exists and the primary display if
it does not exist.
</description>
</key>
<key type="i" name="notification-fixed-screen">
<default>1</default>
<summary>Fixed screen number for displaying notifications</summary>
<description>
The fixed display number to use for displaying notifications if it exists,
where the primary display is last. If the fixed screen number does
not exist, the primary display is used instead.
</description>
</key>
<key type="i" name="notification-duration">
<default>4</default>
<summary>How long notifications are displayed before disappearing</summary>
Expand Down