volume: fix theme scaling

This commit is contained in:
Vincent Bernat 2018-08-25 00:58:08 +02:00
parent 8689e2583a
commit 785f25a296

View file

@ -2,9 +2,11 @@
local awful = require("awful") local awful = require("awful")
local naughty = require("naughty") local naughty = require("naughty")
local beautiful = require("beautiful")
local tonumber = tonumber local tonumber = tonumber
local string = string local string = string
local os = os local os = os
local theme = beautiful.get()
-- A bit odd, but... -- A bit odd, but...
require("lib/icons") require("lib/icons")
@ -14,6 +16,7 @@ module("vbe/volume")
local volid = nil local volid = nil
local function change(what) local function change(what)
os.execute("amixer -q sset Master " .. what, false) os.execute("amixer -q sset Master " .. what, false)
-- Read the current value -- Read the current value
local out = awful.util.pread("amixer sget Master") local out = awful.util.pread("amixer sget Master")