Skip to content

Commit

Permalink
Adding an option for notification screen selection (#231)
Browse files Browse the repository at this point in the history
Resolves #230
  • Loading branch information
rcalixte authored Nov 16, 2023
1 parent fe21fa8 commit fdff5ca
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
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

0 comments on commit fdff5ca

Please sign in to comment.