Set the time of notifications in Plasma 5How to change the notification timeout in GNOME?Avoid notification...
What's the benefit of prohibiting the use of techniques/language constructs that have not been taught?
In what sequence should an advanced civilization teach technology to medieval society to maximize rate of adoption?
Amortized Loans seem to benefit the bank more than the customer
Read string of any length in C
How To Make Earth's Oceans as Brackish as Lyr's
80s sci fi film with line "Paris? Bye bye!"
Ethernet, Wifi and a little human psychology
Does my opponent need to prove his creature has morph?
Why does the speed of sound decrease at high altitudes although the air density decreases?
How do I say "quirky" in German without sounding derogatory?
Is there a tool to measure the "maturity" of a code in Git?
How to write characters doing illogical things in a believable way?
Has SHA256 been broken by Treadwell Stanton DuPont?
How can I discourage sharing internal API keys within a company?
super and subscripts on stackrel variable
Bit one of the Intel 8080's Flags register
Are there successful ways of getting out of a REVERSE MORTGAGE?
Is "you will become a subject matter expert" code for "you'll be working on your own 100% of the time"?
What was the motivation for the invention of electric pianos?
How to publish superseding results without creating enemies
What next step can I take in solving this sudoku?
Can I conceal an antihero's insanity - and should I?
Why the car dealer is insisting on loan instead of cash
A Mainer Expression
Set the time of notifications in Plasma 5
How to change the notification timeout in GNOME?Avoid notification “kdeinit5 closed unexpectedly” in Plasma 5.14 when starting DolphinKDE no longer automatically switches desktopsIs there a minimum requirement for Plasma Desktop?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
The notification popups stay too long on the screen in my opinion.
How to modify the number of seconds notifications are displayed?
I see no such option in any of the notification settings.
(Kubuntu 18.04 - Plasma 5.12.7)
kde kubuntu notifications settings plasma5
add a comment
|
The notification popups stay too long on the screen in my opinion.
How to modify the number of seconds notifications are displayed?
I see no such option in any of the notification settings.
(Kubuntu 18.04 - Plasma 5.12.7)
kde kubuntu notifications settings plasma5
add a comment
|
The notification popups stay too long on the screen in my opinion.
How to modify the number of seconds notifications are displayed?
I see no such option in any of the notification settings.
(Kubuntu 18.04 - Plasma 5.12.7)
kde kubuntu notifications settings plasma5
The notification popups stay too long on the screen in my opinion.
How to modify the number of seconds notifications are displayed?
I see no such option in any of the notification settings.
(Kubuntu 18.04 - Plasma 5.12.7)
kde kubuntu notifications settings plasma5
kde kubuntu notifications settings plasma5
edited 12 mins ago
kjones
1053 bronze badges
1053 bronze badges
asked Jan 9 at 21:43
user32012
add a comment
|
add a comment
|
2 Answers
2
active
oldest
votes
This can be done by modifying the file /usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationPopup.qml
. So, open it in kate
:
kate /usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationPopup.qml
Find the line notificationTimer.interval = notification.expireTimeout
and comment/change it to
notificationTimer.interval = 1 * 1000
where 1
is the number of seconds.
Test it with notify-send "your notification"
Source here.
2
This is awesome, I just set it to 1h :)
– Marcos Dione
Jan 22 at 12:32
brilliant, thank you
– kjones
5 hours ago
add a comment
|
The other answer is a successful hack, and I upvoted, but I have found a better one for some versions of KDE, and also add the instruction to refresh plasmashell, which also needs to be done for the other answer:
Edit a variable (setting), rather than code
By design, here is the higher level place to actually edit the expireTimeout, which means you can leave NotificationPopup.qml alone, since it reads expireTimeout.
edit the expireTimeout line in ms, so for OP who wants a shorter time:
If your version of KDE has the following file, set:
expireTimeout: 1000,
in
/usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/Jobs.qml
source: https://www.reddit.com/r/kde/comments/5jpje5/is_there_a_way_to_change_the_amount_of_time/
Unfortunately, in a more recent version of KDE Plasma, 5.12.7, I could not find that file. I found:
<entry name="expireTimeout" type="Int">
<label>The timeout after which the notification will be closed</label>
<default>1000</default>
</entry>
in
/usr/share/plasma/services/notifications.operations
but changing the default here did not work.
Restart window manager
ALSO, in both my answer and the other one, you need to restart the plasmashell to see any effect. If you don't want to just reboot, use the below for KDE >= 5.10, or click on the source link below that for older versions.
kquitapp5 plasmashell
(wait... for me it was around 30 seconds!)
kstart5 plasmashell
source: https://askubuntu.com/questions/481329/can-i-restart-the-kde-plasma-desktop-without-logging-out
add a comment
|
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f493561%2fset-the-time-of-notifications-in-plasma-5%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
This can be done by modifying the file /usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationPopup.qml
. So, open it in kate
:
kate /usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationPopup.qml
Find the line notificationTimer.interval = notification.expireTimeout
and comment/change it to
notificationTimer.interval = 1 * 1000
where 1
is the number of seconds.
Test it with notify-send "your notification"
Source here.
2
This is awesome, I just set it to 1h :)
– Marcos Dione
Jan 22 at 12:32
brilliant, thank you
– kjones
5 hours ago
add a comment
|
This can be done by modifying the file /usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationPopup.qml
. So, open it in kate
:
kate /usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationPopup.qml
Find the line notificationTimer.interval = notification.expireTimeout
and comment/change it to
notificationTimer.interval = 1 * 1000
where 1
is the number of seconds.
Test it with notify-send "your notification"
Source here.
2
This is awesome, I just set it to 1h :)
– Marcos Dione
Jan 22 at 12:32
brilliant, thank you
– kjones
5 hours ago
add a comment
|
This can be done by modifying the file /usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationPopup.qml
. So, open it in kate
:
kate /usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationPopup.qml
Find the line notificationTimer.interval = notification.expireTimeout
and comment/change it to
notificationTimer.interval = 1 * 1000
where 1
is the number of seconds.
Test it with notify-send "your notification"
Source here.
This can be done by modifying the file /usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationPopup.qml
. So, open it in kate
:
kate /usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationPopup.qml
Find the line notificationTimer.interval = notification.expireTimeout
and comment/change it to
notificationTimer.interval = 1 * 1000
where 1
is the number of seconds.
Test it with notify-send "your notification"
Source here.
answered Jan 9 at 21:47
user32012
2
This is awesome, I just set it to 1h :)
– Marcos Dione
Jan 22 at 12:32
brilliant, thank you
– kjones
5 hours ago
add a comment
|
2
This is awesome, I just set it to 1h :)
– Marcos Dione
Jan 22 at 12:32
brilliant, thank you
– kjones
5 hours ago
2
2
This is awesome, I just set it to 1h :)
– Marcos Dione
Jan 22 at 12:32
This is awesome, I just set it to 1h :)
– Marcos Dione
Jan 22 at 12:32
brilliant, thank you
– kjones
5 hours ago
brilliant, thank you
– kjones
5 hours ago
add a comment
|
The other answer is a successful hack, and I upvoted, but I have found a better one for some versions of KDE, and also add the instruction to refresh plasmashell, which also needs to be done for the other answer:
Edit a variable (setting), rather than code
By design, here is the higher level place to actually edit the expireTimeout, which means you can leave NotificationPopup.qml alone, since it reads expireTimeout.
edit the expireTimeout line in ms, so for OP who wants a shorter time:
If your version of KDE has the following file, set:
expireTimeout: 1000,
in
/usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/Jobs.qml
source: https://www.reddit.com/r/kde/comments/5jpje5/is_there_a_way_to_change_the_amount_of_time/
Unfortunately, in a more recent version of KDE Plasma, 5.12.7, I could not find that file. I found:
<entry name="expireTimeout" type="Int">
<label>The timeout after which the notification will be closed</label>
<default>1000</default>
</entry>
in
/usr/share/plasma/services/notifications.operations
but changing the default here did not work.
Restart window manager
ALSO, in both my answer and the other one, you need to restart the plasmashell to see any effect. If you don't want to just reboot, use the below for KDE >= 5.10, or click on the source link below that for older versions.
kquitapp5 plasmashell
(wait... for me it was around 30 seconds!)
kstart5 plasmashell
source: https://askubuntu.com/questions/481329/can-i-restart-the-kde-plasma-desktop-without-logging-out
add a comment
|
The other answer is a successful hack, and I upvoted, but I have found a better one for some versions of KDE, and also add the instruction to refresh plasmashell, which also needs to be done for the other answer:
Edit a variable (setting), rather than code
By design, here is the higher level place to actually edit the expireTimeout, which means you can leave NotificationPopup.qml alone, since it reads expireTimeout.
edit the expireTimeout line in ms, so for OP who wants a shorter time:
If your version of KDE has the following file, set:
expireTimeout: 1000,
in
/usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/Jobs.qml
source: https://www.reddit.com/r/kde/comments/5jpje5/is_there_a_way_to_change_the_amount_of_time/
Unfortunately, in a more recent version of KDE Plasma, 5.12.7, I could not find that file. I found:
<entry name="expireTimeout" type="Int">
<label>The timeout after which the notification will be closed</label>
<default>1000</default>
</entry>
in
/usr/share/plasma/services/notifications.operations
but changing the default here did not work.
Restart window manager
ALSO, in both my answer and the other one, you need to restart the plasmashell to see any effect. If you don't want to just reboot, use the below for KDE >= 5.10, or click on the source link below that for older versions.
kquitapp5 plasmashell
(wait... for me it was around 30 seconds!)
kstart5 plasmashell
source: https://askubuntu.com/questions/481329/can-i-restart-the-kde-plasma-desktop-without-logging-out
add a comment
|
The other answer is a successful hack, and I upvoted, but I have found a better one for some versions of KDE, and also add the instruction to refresh plasmashell, which also needs to be done for the other answer:
Edit a variable (setting), rather than code
By design, here is the higher level place to actually edit the expireTimeout, which means you can leave NotificationPopup.qml alone, since it reads expireTimeout.
edit the expireTimeout line in ms, so for OP who wants a shorter time:
If your version of KDE has the following file, set:
expireTimeout: 1000,
in
/usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/Jobs.qml
source: https://www.reddit.com/r/kde/comments/5jpje5/is_there_a_way_to_change_the_amount_of_time/
Unfortunately, in a more recent version of KDE Plasma, 5.12.7, I could not find that file. I found:
<entry name="expireTimeout" type="Int">
<label>The timeout after which the notification will be closed</label>
<default>1000</default>
</entry>
in
/usr/share/plasma/services/notifications.operations
but changing the default here did not work.
Restart window manager
ALSO, in both my answer and the other one, you need to restart the plasmashell to see any effect. If you don't want to just reboot, use the below for KDE >= 5.10, or click on the source link below that for older versions.
kquitapp5 plasmashell
(wait... for me it was around 30 seconds!)
kstart5 plasmashell
source: https://askubuntu.com/questions/481329/can-i-restart-the-kde-plasma-desktop-without-logging-out
The other answer is a successful hack, and I upvoted, but I have found a better one for some versions of KDE, and also add the instruction to refresh plasmashell, which also needs to be done for the other answer:
Edit a variable (setting), rather than code
By design, here is the higher level place to actually edit the expireTimeout, which means you can leave NotificationPopup.qml alone, since it reads expireTimeout.
edit the expireTimeout line in ms, so for OP who wants a shorter time:
If your version of KDE has the following file, set:
expireTimeout: 1000,
in
/usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/Jobs.qml
source: https://www.reddit.com/r/kde/comments/5jpje5/is_there_a_way_to_change_the_amount_of_time/
Unfortunately, in a more recent version of KDE Plasma, 5.12.7, I could not find that file. I found:
<entry name="expireTimeout" type="Int">
<label>The timeout after which the notification will be closed</label>
<default>1000</default>
</entry>
in
/usr/share/plasma/services/notifications.operations
but changing the default here did not work.
Restart window manager
ALSO, in both my answer and the other one, you need to restart the plasmashell to see any effect. If you don't want to just reboot, use the below for KDE >= 5.10, or click on the source link below that for older versions.
kquitapp5 plasmashell
(wait... for me it was around 30 seconds!)
kstart5 plasmashell
source: https://askubuntu.com/questions/481329/can-i-restart-the-kde-plasma-desktop-without-logging-out
answered Mar 13 at 16:22
StarmanStarman
356 bronze badges
356 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f493561%2fset-the-time-of-notifications-in-plasma-5%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown