From 7a1f3ad5f07cdb92314820af6a57ef6574c34481 Mon Sep 17 00:00:00 2001 From: hesam-init Date: Wed, 28 Feb 2024 23:02:57 +0330 Subject: [PATCH] feat: avizo package for display audio control --- README.md | 1 + configs/hyprland/avizo/config.ini | 44 ++++++++++++++++++++++ configs/hyprland/hypr/conf/autostart.conf | 1 + configs/hyprland/hypr/conf/keybinding.conf | 6 +-- 4 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 configs/hyprland/avizo/config.ini diff --git a/README.md b/README.md index 9299ca7..9da1d0f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/configs/hyprland/avizo/config.ini b/configs/hyprland/avizo/config.ini new file mode 100644 index 0000000..8f25061 --- /dev/null +++ b/configs/hyprland/avizo/config.ini @@ -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 = \ No newline at end of file diff --git a/configs/hyprland/hypr/conf/autostart.conf b/configs/hyprland/hypr/conf/autostart.conf index 54a4c91..f71a2cd 100644 --- a/configs/hyprland/hypr/conf/autostart.conf +++ b/configs/hyprland/hypr/conf/autostart.conf @@ -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 & diff --git a/configs/hyprland/hypr/conf/keybinding.conf b/configs/hyprland/hypr/conf/keybinding.conf index 8b01357..1deea4a 100644 --- a/configs/hyprland/hypr/conf/keybinding.conf +++ b/configs/hyprland/hypr/conf/keybinding.conf @@ -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