diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d07242..2bb2f37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## v0.3.1 + +### Changed + +Set wallpaper for main monitor -> Set wallpaper for all monitors. + +### Fixed + +- Fix bug for `Move to Next Monitor` + ## v0.3.0 ### Added diff --git a/bing_daily_wallpaper.lua b/bing_daily_wallpaper.lua index 13ecf63..26bb3bc 100644 --- a/bing_daily_wallpaper.lua +++ b/bing_daily_wallpaper.lua @@ -13,7 +13,13 @@ local function curl_callback(exitCode, stdOut, stdErr) _M.last_pic = hs.http.urlParts(_M.full_url).lastPathComponent local localpath = os.getenv("HOME") .. "/.Trash/" .. hs.http.urlParts(_M.full_url).lastPathComponent - hs.screen.mainScreen():desktopImageURL("file://" .. localpath) + + -- 为每个显示器都设置壁纸(注意不是macOS新建的其他桌面, 而是扩展显示器) + local screens = hs.screen.allScreens() + for _, screen in ipairs(screens) do + print("[INFO] set wallpaper for ", screen) + screen:desktopImageURL("file://" .. localpath) + end else print(stdOut, stdErr) end diff --git a/shortcuts_config.lua b/shortcuts_config.lua index 25391a3..abe2a5f 100644 --- a/shortcuts_config.lua +++ b/shortcuts_config.lua @@ -117,7 +117,7 @@ _M.windows = { }, to_next_screen = { prefix = {"Ctrl", "Option"}, - key = "space", + key = "space", -- 扩展显示器比较少的情况只用这个就可以. message = "Move to Next Monitor" }, -- **********************************