mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-30 13:24:21 +02:00
Revert "volume: scale volume text with DPI"
This reverts commit 1907e37928
. Icon is
not scaled.
This commit is contained in:
parent
785f25a296
commit
4c9ae36aeb
1 changed files with 1 additions and 4 deletions
|
@ -2,11 +2,9 @@
|
||||||
|
|
||||||
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")
|
||||||
|
@ -16,7 +14,6 @@ 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")
|
||||||
|
@ -37,7 +34,7 @@ local function change(what)
|
||||||
|
|
||||||
volid = naughty.notify({ text = string.format("%3d %%", vol),
|
volid = naughty.notify({ text = string.format("%3d %%", vol),
|
||||||
icon = icon,
|
icon = icon,
|
||||||
font = "Free Sans Bold " .. 24*theme.scale,
|
font = "Free Sans Bold 24",
|
||||||
replaces_id = volid }).id
|
replaces_id = volid }).id
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue