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"]
|
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)
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user