rumno: update notification commands
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -317,6 +317,8 @@
|
||||
withUWSM = true;
|
||||
};
|
||||
|
||||
services.rumno.enable = true;
|
||||
|
||||
home-manager.sharedModules = [
|
||||
inputs.hyprscratch.homeModules.default
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user