A small tool to view real-world ActivityPub objects as JSON! Enter a URL
or username from Mastodon or a similar service below, and we'll send a
request with
the right
Accept
header
to the server to view the underlying object.
{
"@context": [
"https://join-lemmy.org/context.json",
"https://www.w3.org/ns/activitystreams"
],
"type": "Page",
"id": "https://lemmy.world/post/17258136",
"attributedTo": "https://lemmy.world/u/mobsenpai",
"to": [
"https://lemmy.world/c/hyprland",
"https://www.w3.org/ns/activitystreams#Public"
],
"name": "I am so confused regarding hyprlock and systemctl combination",
"cc": [],
"content": "<p>cross-posted from: <a href=\"https://lemmy.world/post/17258082\">lemmy.world/post/17258082</a></p>\n<blockquote>\n<p>Problem -> When doing file transfers (mtp) or running some cli commands like nixos-rebuild, when the hyprlock kicks in they are pause at that point and only resume after unlock.</p>\n<p>One thing I am kind of noticing that it may be the systemctl suspend command that is suspending the processes. But overall I am confused with the best combination of pairing both the two programs.</p>\n<p>Here is the config\n(for hypridle)</p>\n<pre style=\"background-color:#ffffff;\">\n<span style=\"color:#323232;\">general {\n</span><span style=\"color:#323232;\"> before_sleep_cmd=loginctl lock-session\n</span><span style=\"color:#323232;\"> lock_cmd=hyprlock\n</span><span style=\"color:#323232;\">}\n</span><span style=\"color:#323232;\">\n</span><span style=\"color:#323232;\">listener {\n</span><span style=\"color:#323232;\"> on-timeout=suspend-script\n</span><span style=\"color:#323232;\"> timeout=1800\n</span><span style=\"color:#323232;\">}\n</span><span style=\"color:#323232;\">\n</span></pre>\n<p>(The suspend script)</p>\n<pre style=\"background-color:#ffffff;\">\n<span style=\"color:#323232;\"> pw-cli i all </span><span style=\"color:#0086b3;\">2</span><span style=\"font-weight:bold;color:#a71d5d;\">>&</span><span style=\"color:#0086b3;\">1 </span><span style=\"font-weight:bold;color:#a71d5d;\">| </span><span style=\"color:#323232;\">grep running -q\n</span><span style=\"color:#323232;\"> </span><span style=\"font-style:italic;color:#969896;\"># Only suspend if audio isn't running\n</span><span style=\"color:#323232;\"> </span><span style=\"font-weight:bold;color:#a71d5d;\">if </span><span style=\"color:#62a35c;\">[ </span><span style=\"color:#323232;\">$? </span><span style=\"font-weight:bold;color:#a71d5d;\">==</span><span style=\"color:#323232;\"> 1 </span><span style=\"color:#62a35c;\">]</span><span style=\"font-weight:bold;color:#a71d5d;\">; then\n</span><span style=\"color:#323232;\"> systemctl suspend\n</span><span style=\"color:#323232;\"> </span><span style=\"font-weight:bold;color:#a71d5d;\">fi\n</span><span style=\"color:#323232;\">\n</span></pre>\n<p>Let me know if you have any solution.\nThe link attached to this post is for my github hosting my nixos dotfiles, maybe that can also help.</p>\n</blockquote>\n",
"mediaType": "text/html",
"source": {
"content": "cross-posted from: https://lemmy.world/post/17258082\n>Problem -> When doing file transfers (mtp) or running some cli commands like nixos-rebuild, when the hyprlock kicks in they are pause at that point and only resume after unlock. \n> \n> One thing I am kind of noticing that it may be the systemctl suspend command that is suspending the processes. But overall I am confused with the best combination of pairing both the two programs. \n> \n> Here is the config\n> (for hypridle)\n> \n> ```\n> general {\n> before_sleep_cmd=loginctl lock-session\n> lock_cmd=hyprlock\n> }\n> \n> listener {\n> on-timeout=suspend-script\n> timeout=1800\n> }\n> \n> ```\n> \n> (The suspend script)\n> \n> ```bash\n> pw-cli i all 2>&1 | grep running -q\n> # Only suspend if audio isn't running\n> if [ $? == 1 ]; then\n> systemctl suspend\n> fi\n> \n> ```\n> \n> Let me know if you have any solution.\n> The link attached to this post is for my github hosting my nixos dotfiles, maybe that can also help.",
"mediaType": "text/markdown"
},
"attachment": [
{
"href": "https://github.com/mobsenpai/hana",
"mediaType": null,
"type": "Link"
}
],
"image": {
"type": "Image",
"url": "https://lemmy.world/pictrs/image/6296f08b-5f7a-442d-a075-961ba25d330b.png"
},
"sensitive": false,
"published": "2024-07-05T17:00:46.900425Z",
"language": {
"identifier": "en",
"name": "English"
},
"audience": "https://lemmy.world/c/hyprland",
"tag": [
{
"href": "https://lemmy.world/post/17258136",
"name": "#hyprland",
"type": "Hashtag"
}
]
}