Updated for new lain version, fixed mcstatus to follow tag
This commit is contained in:
parent
c02e3dda18
commit
220bc3fe88
|
@ -3,6 +3,7 @@ local wibox = require("wibox")
|
|||
local json = require("dkjson")
|
||||
local https = require("ssl.https")
|
||||
local gears = require("gears")
|
||||
local focused = require("awful.screen").focused
|
||||
|
||||
local function factory(args)
|
||||
local args = args or {}
|
||||
|
@ -12,15 +13,23 @@ local function factory(args)
|
|||
local settings = args.settings or function() end
|
||||
local hideempty = args.hideempty or false
|
||||
local hideoffline = args.hideoffline or true
|
||||
local followtag = args.followtag or true
|
||||
local notification_preset = args.notification_preset or {}
|
||||
|
||||
minecraft.widget:set_markup("N/A")
|
||||
|
||||
function minecraft.show(tout)
|
||||
minecraft.hide()
|
||||
|
||||
if followtag then
|
||||
notification_preset.screen = focused()
|
||||
end
|
||||
|
||||
minecraft.notification = naughty.notify({
|
||||
text = minecraft.notification_text,
|
||||
-- icon = minecraft.icon
|
||||
timeout = 0
|
||||
timeout = 0,
|
||||
preset = notification_preset,
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ mygputemp = wibox.widget.textbox()
|
|||
vicious.register(mygputemp, gputemp, create_markup("GPU", "$0", "℃", valuecolor), 15, "AMD")
|
||||
|
||||
-- Volume
|
||||
volume = lain.widget.pulseaudio({
|
||||
volume = lain.widget.pulse({
|
||||
scallback = function()
|
||||
return "pacmd list-sinks | grep -Paoz \"(?s)(\\* index.*$(pactl info | grep -e 'ink' | cut -d' ' -f3).*(index)?)\" | tr -d '\\000' | grep -e 'index' -e 'device.string' -e 'name:' -e 'volume: front' -e 'muted'"
|
||||
end,
|
||||
|
|
Loading…
Reference in New Issue
Block a user