Revert "volume: scale volume text with DPI"

This reverts commit 1907e37928. Icon is
not scaled.
This commit is contained in:
Vincent Bernat 2018-08-25 00:58:37 +02:00
parent 785f25a296
commit 4c9ae36aeb

View file

@ -2,11 +2,9 @@
local awful = require("awful")
local naughty = require("naughty")
local beautiful = require("beautiful")
local tonumber = tonumber
local string = string
local os = os
local theme = beautiful.get()
-- A bit odd, but...
require("lib/icons")
@ -16,7 +14,6 @@ module("vbe/volume")
local volid = nil
local function change(what)
os.execute("amixer -q sset Master " .. what, false)
-- Read the current value
local out = awful.util.pread("amixer sget Master")
@ -37,7 +34,7 @@ local function change(what)
volid = naughty.notify({ text = string.format("%3d %%", vol),
icon = icon,
font = "Free Sans Bold " .. 24*theme.scale,
font = "Free Sans Bold 24",
replaces_id = volid }).id
end