luca-awesome-dotfiles/home/.config/awesome/signals/weather.lua
Hydroxycarbamide 2401cfcee2 Add revelation
Update and add bling task_preview, tag_preview and window_switcher
Add catppuccin-macchiato
Use my weather key
Update keybindings
Update autorun
Fix sliders
2023-03-20 09:51:48 +01:00

30 lines
694 B
Lua

-- ## Wearther ##
-- ~~~~~~~~~~~~~~
-- requirements
-- ~~~~~~~~~~~~
local awful = require("awful")
local gears = require("gears")
local city = "Toulouse" -- Ex. London or Salt+Lake+City
--local get_weather = function()
-- local script = [[
-- bash -c "$HOME/.config/awesome/signals/weather_script.sh ]] .. city .. [["
-- ]]
-- awful.spawn.easy_async_with_shell(script, function(stdout)
-- local weather = stdout:match("(.+):")
-- local feels_like = stdout:match(".+[:](.+)")
-- awesome.emit_signal('signal::weather', weather, feels_like)
-- end)
--end
--gears.timer {
-- timeout = 1200,
-- call_now = true,
-- autostart = true,
-- callback = function()
-- get_weather()
-- end
--}