Skip to content

Commit 8163e2a

Browse files
committed
fix: volume default card should be 0
Majority of users has only one card so default should be 0 not 1
1 parent 68ddbd9 commit 8163e2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

volume-widget/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ It is possible to customize the widget by providing a table with all or some of
9494
| `toggle_cmd` | *nil* | Use custom command instead of `amixer ... toggle` because [amixer's unmute option seems to be broken](https://superuser.com/a/822085) |
9595
| `step` | 5 | How much the volume is raised or lowered at once (in %) |
9696
| `widget_type` | `icon_and_text` | Widget type, one of `horizontal_bar`, `vertical_bar`, `icon`, `icon_and_text`, `arc` |
97-
| `card` | 1 | Select the card name to control |
97+
| `card` | 0 | Select the card name to control |
9898
| `device` | `pulse` | Select the device name to control |
9999
| `mixctrl` | `Master` | Select the mixer name to control |
100100
| `value_type` | `-M` | Select how the volume is increased/ decreased (intended for `-M`/ `-R` parameters). See `man amixer` for additional info |

volume-widget/volume.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ local function worker(user_args)
220220
local widget_type = args.widget_type
221221
local refresh_rate = args.refresh_rate or 1
222222
local step = args.step or 5
223-
local card = args.card or 1
223+
local card = args.card or 0
224224
local device = args.device or "pulse"
225225
local mixctrl = args.mixctrl or "Master"
226226
local value_type = args.value_type or "-M"

0 commit comments

Comments
 (0)