Updated for new lain version, fixed mcstatus to follow tag

This commit is contained in:
lanxu 2017-10-31 21:05:06 +02:00
parent c02e3dda18
commit 220bc3fe88
2 changed files with 13 additions and 4 deletions

View File

@ -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

View File

@ -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,