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

View File

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

View File

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

View File

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