Add systemd-inhibt lock while Spotify is playing song Announcing the arrival of Valued...
How could we fake a moon landing now?
Draw 4 of the same figure in the same tikzpicture
Electrolysis of water: Which equations to use? (IB Chem)
Misunderstanding of Sylow theory
macOS: Name for app shortcut screen found by pinching with thumb and three fingers
How does a spellshard spellbook work?
preposition before coffee
How does Belgium enforce obligatory attendance in elections?
Amount of permutations on an NxNxN Rubik's Cube
How many morphisms from 1 to 1+1 can there be?
Google .dev domain strangely redirects to https
What does 丫 mean? 丫是什么意思?
How many time has Arya actually used Needle?
Karn the great creator - 'card from outside the game' in sealed
C's equality operator on converted pointers
What to do with repeated rejections for phd position
If Windows 7 doesn't support WSL, then what is "Subsystem for UNIX-based Applications"?
Why weren't discrete x86 CPUs ever used in game hardware?
How do I find out the mythology and history of my Fortress?
Semigroups with no morphisms between them
Should a wizard buy fine inks every time he want to copy spells into his spellbook?
Why does 14 CFR have skipped subparts in my ASA 2019 FAR/AIM book?
Did any compiler fully use 80-bit floating point?
How would a mousetrap for use in space work?
Add systemd-inhibt lock while Spotify is playing song
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30UTC (7:30pm US/Eastern)How to prevent radiotray from playing (from buffer) on lock screen after resumingHow to add a scrollable time bar to the sound indicatorIssues with CuteSpotify in Ubuntu PhoneUbuntu with Kodi — how do I suspend based on audio output?How can I query mplayer about the currently playing song?How to disable sleep and keep lock screen in xubuntu?Popping/crackling sounds and audio stuttering after resuming from suspendDetect media play / pause eventsWhy does systemd stop my service but not restart it?External USB sound cards pops and cracks
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I would like to prevent my PC from going to sleep while Spotify is playing a song. If Spotify is open but does not play a song, the PC should go to sleep regularly.
So is it possible to add a lock using systemd-inhibt (or is there a better alternative) whenever Spotify starts a song and remove it when the song is stopped?
sound suspend systemd
add a comment |
I would like to prevent my PC from going to sleep while Spotify is playing a song. If Spotify is open but does not play a song, the PC should go to sleep regularly.
So is it possible to add a lock using systemd-inhibt (or is there a better alternative) whenever Spotify starts a song and remove it when the song is stopped?
sound suspend systemd
I was working on a suspend problem for a bit, I think I found that Ubuntu does not respect systemd-inhibit.
– Charles Green
1 hour ago
add a comment |
I would like to prevent my PC from going to sleep while Spotify is playing a song. If Spotify is open but does not play a song, the PC should go to sleep regularly.
So is it possible to add a lock using systemd-inhibt (or is there a better alternative) whenever Spotify starts a song and remove it when the song is stopped?
sound suspend systemd
I would like to prevent my PC from going to sleep while Spotify is playing a song. If Spotify is open but does not play a song, the PC should go to sleep regularly.
So is it possible to add a lock using systemd-inhibt (or is there a better alternative) whenever Spotify starts a song and remove it when the song is stopped?
sound suspend systemd
sound suspend systemd
asked 1 hour ago
InvisibleShadowGhostInvisibleShadowGhost
107110
107110
I was working on a suspend problem for a bit, I think I found that Ubuntu does not respect systemd-inhibit.
– Charles Green
1 hour ago
add a comment |
I was working on a suspend problem for a bit, I think I found that Ubuntu does not respect systemd-inhibit.
– Charles Green
1 hour ago
I was working on a suspend problem for a bit, I think I found that Ubuntu does not respect systemd-inhibit.
– Charles Green
1 hour ago
I was working on a suspend problem for a bit, I think I found that Ubuntu does not respect systemd-inhibit.
– Charles Green
1 hour ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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/3.0/"u003ecc by-sa 3.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%2faskubuntu.com%2fquestions%2f1135377%2fadd-systemd-inhibt-lock-while-spotify-is-playing-song%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1135377%2fadd-systemd-inhibt-lock-while-spotify-is-playing-song%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
I was working on a suspend problem for a bit, I think I found that Ubuntu does not respect systemd-inhibit.
– Charles Green
1 hour ago