feat: avizo package for display audio control

This commit is contained in:
hesam-init 2024-02-28 23:02:57 +03:30
parent b138ed7555
commit 7a1f3ad5f0
4 changed files with 49 additions and 3 deletions

View file

@ -81,6 +81,7 @@ The following packages are required for the proper functioning of Hyprland on Vo
- [swww](https://github.com/LGFae/swww) : path /usr/local/bin
- playerctl
- swaylock or [swaylock-effects](https://github.com/mortie/swaylock-effects)
- avizo
- grim
- slurp
- jq

View file

@ -0,0 +1,44 @@
[default]
time = 1.0
width = 250
height = 180
padding = 20
border-radius = 16
;image-base-dir =
;image-opacity = 1.0
# A relative offset of the notification to the top of the screen.
# Allowed values range from 0 (top) to 1.0 (bottom).
;y-offset = 0.75
# Sets the border width of the notification in px.
;border-width = 6
# The block height of the progress indicator.
;block-height = 16
# The spacing between blocks in the progress indicator.
;block-spacing = 2
# Sets the amount of blocks in the progress indicator.
;block-count = 20
# Sets the fade in animation duration in seconds.
;fade-in = 0.2
# Sets the fade out animation duration in seconds.
;fade-out = 0.5
# The color of the notification background in format: rgba([0, 255], [0, 255], [0, 255], [0, 1]).
background = rgba(160, 160, 160, 0.5)
# Sets the color of the notification border in format rgba([0, 255], [0, 255], [0, 255], [0, 1]).
;border-color = rgba(90, 90, 90, 0.8)
# The color of the filled bar blocks in format: rgba([0, 255], [0, 255], [0, 255], [0, 1]).
;bar-fg-color = rgba(0, 0, 0, 0.8)
# The color of the unfilled bar blocks in format rgba([0, 255], [0, 255], [0, 255], [0, 1]).
# Defaults to 'background' with 2/3 brightness.
;bar-bg-color =

View file

@ -9,6 +9,7 @@ exec-once = sleep 1 && pipewire &
exec-once = sleep 1 && /usr/bin/pipewire-pulse &
exec-once = sleep 1 && /usr/bin/wireplumber &
exec-once = wl-paste --watch cliphist store &
exec-once = avizo-service &
# wallpaper :
exec-once = ~/.config/hypr/scripts/wallpaper-daemon.sh &

View file

@ -38,9 +38,9 @@ bind = $mainMod, Y, exec, $random_wallpaper
bind = $mainMod, I, exec, $kill_wallpaper_daemon
# Audio control
binde=,XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%
binde=,XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%
bind=,XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle
binde=,XF86AudioRaiseVolume, exec, volumectl -u up
binde=,XF86AudioLowerVolume, exec, volumectl -u down
bind=,XF86AudioMute, exec, volumectl toggle-mute
bind=,XF86AudioPlay, exec, playerctl play-pause
bind=,XF86AudioPrev, exec, playerctl previous
bind=,XF86AudioNext, exec, playerctl next