From d51354ae4f6f7bce9d44370616eff146c32f04c2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 8 Apr 2018 20:50:18 -0300 Subject: Run xconky refresh on resolution change --- config.dot/awesome.link/xrandr.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'config.dot/awesome.link/xrandr.lua') diff --git a/config.dot/awesome.link/xrandr.lua b/config.dot/awesome.link/xrandr.lua index bd90c19..dbf1445 100644 --- a/config.dot/awesome.link/xrandr.lua +++ b/config.dot/awesome.link/xrandr.lua @@ -1,4 +1,4 @@ ---- Separating Multiple Monitor functions as a separeted module (taken from awesome wiki) +--- Separating Multiple Monitor functions as a separated module (taken from awesome wiki) local awful = require("awful") local naughty = require("naughty") @@ -96,6 +96,11 @@ local function naughty_destroy_callback(reason) local action = state.index and state.menu[state.index - 1][2] if action then awful.util.spawn(action, false) + + -- See https://www.reddit.com/r/linux/comments/6odeur/i3_automatically_resize_wallpaperconky_on/ + -- https://github.com/ritave/xeventbind + awful.spawn("xconky refresh") + state.index = nil end end -- cgit v1.2.3