From d94cc5573cd5ec2a02b40addffda655ca4acb106 Mon Sep 17 00:00:00 2001
From: Nydragon <contact@ccnlc.eu>
Date: Mon, 23 Sep 2024 18:11:34 +0200
Subject: [PATCH] fix: inhibitor wont inhibit shutdown and adjusted position of
 audioman

---
 src/provider/Inhibitor.qml            | 2 +-
 src/windows/audioman/AudioManager.qml | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/provider/Inhibitor.qml b/src/provider/Inhibitor.qml
index ff9be38..133463b 100644
--- a/src/provider/Inhibitor.qml
+++ b/src/provider/Inhibitor.qml
@@ -12,6 +12,6 @@ Singleton {
 
     Process {
         running: inhibitor.active
-        command: ["systemd-inhibit", "sleep", "infinity"]
+        command: ["systemd-inhibit", "--what", "idle", "sleep", "infinity"]
     }
 }
diff --git a/src/windows/audioman/AudioManager.qml b/src/windows/audioman/AudioManager.qml
index c425e2b..f58b527 100644
--- a/src/windows/audioman/AudioManager.qml
+++ b/src/windows/audioman/AudioManager.qml
@@ -7,8 +7,8 @@ import "root:base"
 
 PopupWindow {
     anchor {
-        rect.x: 30
-        rect.y: 20
+        rect.x: lbar.width * 1.2
+        rect.y: lbar.width * 0.2
         window: lbar
     }