rumno: update notification commands

This commit is contained in:
2026-05-23 03:45:40 -07:00
parent ff23cb8da6
commit eec9f0ba0e
4 changed files with 6 additions and 4 deletions

View File

@@ -135,7 +135,7 @@ sendNotification brightness = do
rawSystem "sh" ["-c", "command -v rumno >/dev/null 2>&1"]
if rumnoExists
then do
_ <- readProcess "rumno" ["notify", "-t", timeoutSeconds, "-b", show brightness] ""
_ <- readProcess "rumno" ["-t", timeoutSeconds, "-b", show brightness] ""
return ()
else putStrLn (show brightness)

View File

@@ -87,7 +87,7 @@ RUMNO_TIMEOUT="${RUMNO_TIMEOUT:-2.5}"
# Show notification if rumno is available
if command -v rumno &> /dev/null; then
rumno notify -t "$RUMNO_TIMEOUT" -b "$BRIGHTNESS"
rumno -t "$RUMNO_TIMEOUT" -b "$BRIGHTNESS"
else
echo "$BRIGHTNESS"
fi

View File

@@ -3,12 +3,12 @@
function pashowvolume {
timeout="${RUMNO_TIMEOUT:-2.5}"
if paismuted; then
rumno notify -t "$timeout" -m
rumno -t "$timeout" -m true
else
actual=$(pavolume)
max=100
show=$(( actual < max ? actual : max ))
rumno notify -t "$timeout" -v "$show"
rumno -t "$timeout" -v "$show"
fi
}

View File

@@ -317,6 +317,8 @@
withUWSM = true;
};
services.rumno.enable = true;
home-manager.sharedModules = [
inputs.hyprscratch.homeModules.default
(