From 8163e2a01a7b3e2eef2f9e33ab9b45ecde9f5454 Mon Sep 17 00:00:00 2001 From: Aurelien LAJOIE Date: Thu, 10 Oct 2024 20:15:56 +0200 Subject: [PATCH] fix: volume default card should be 0 Majority of users has only one card so default should be 0 not 1 --- volume-widget/README.md | 2 +- volume-widget/volume.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/volume-widget/README.md b/volume-widget/README.md index 7a5c94d..48f7790 100644 --- a/volume-widget/README.md +++ b/volume-widget/README.md @@ -94,7 +94,7 @@ It is possible to customize the widget by providing a table with all or some of | `toggle_cmd` | *nil* | Use custom command instead of `amixer ... toggle` because [amixer's unmute option seems to be broken](https://superuser.com/a/822085) | | `step` | 5 | How much the volume is raised or lowered at once (in %) | | `widget_type` | `icon_and_text` | Widget type, one of `horizontal_bar`, `vertical_bar`, `icon`, `icon_and_text`, `arc` | -| `card` | 1 | Select the card name to control | +| `card` | 0 | Select the card name to control | | `device` | `pulse` | Select the device name to control | | `mixctrl` | `Master` | Select the mixer name to control | | `value_type` | `-M` | Select how the volume is increased/ decreased (intended for `-M`/ `-R` parameters). See `man amixer` for additional info | diff --git a/volume-widget/volume.lua b/volume-widget/volume.lua index ffab0a7..ac27f81 100644 --- a/volume-widget/volume.lua +++ b/volume-widget/volume.lua @@ -220,7 +220,7 @@ local function worker(user_args) local widget_type = args.widget_type local refresh_rate = args.refresh_rate or 1 local step = args.step or 5 - local card = args.card or 1 + local card = args.card or 0 local device = args.device or "pulse" local mixctrl = args.mixctrl or "Master" local value_type = args.value_type or "-M"