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
This commit is contained in:
parent
4f850f7173
commit
2401cfcee2
56 changed files with 2040 additions and 858 deletions
|
@ -19,15 +19,15 @@ local net_cmd = [[
|
|||
]]
|
||||
|
||||
awful.widget.watch(net_cmd, update_interval, function(_, stdout)
|
||||
local net_ssid = stdout
|
||||
net_ssid = string.gsub(net_ssid, '^%s*(.-)%s*$', '%1')
|
||||
local net_status = true
|
||||
local net_ssid = stdout
|
||||
net_ssid = string.gsub(net_ssid, '^%s*(.-)%s*$', '%1')
|
||||
local net_status = true
|
||||
|
||||
-- update networks status
|
||||
if net_ssid == "disabled" then
|
||||
net_status = false
|
||||
end
|
||||
-- update networks status
|
||||
if net_ssid == "disabled" then
|
||||
net_status = false
|
||||
end
|
||||
|
||||
-- emit (true or false)
|
||||
awesome.emit_signal("signal::airplane", net_status)
|
||||
-- emit (true or false)
|
||||
awesome.emit_signal("signal::airplane", net_status)
|
||||
end)
|
||||
|
|
|
@ -29,7 +29,7 @@ local emit_brightness_info = function()
|
|||
stdout = function(value)
|
||||
awful.spawn.with_line_callback(brightness_max, {
|
||||
stdout = function(max)
|
||||
percentage = tonumber(value)/tonumber(max) * 100
|
||||
local percentage = tonumber(value)/tonumber(max) * 100
|
||||
percentage = tonumber(percentage) or 0
|
||||
awesome.emit_signal("signal::brightness", percentage)
|
||||
end})
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
|
||||
local which_disk = "/dev/sda2"
|
||||
local which_disk = "/dev/nvme0n1p5"
|
||||
|
||||
local function get_disk()
|
||||
local script = [[
|
||||
|
|
|
@ -11,5 +11,5 @@ req = {
|
|||
}
|
||||
|
||||
for _, x in pairs(req) do
|
||||
require("signals."..x)
|
||||
require("signals." .. x)
|
||||
end
|
||||
|
|
|
@ -6,25 +6,25 @@
|
|||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
|
||||
local city = "" -- Ex. London or Salt+Lake+City
|
||||
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.. [["
|
||||
]]
|
||||
--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
|
||||
-- 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
|
||||
}
|
||||
--gears.timer {
|
||||
-- timeout = 1200,
|
||||
-- call_now = true,
|
||||
-- autostart = true,
|
||||
-- callback = function()
|
||||
-- get_weather()
|
||||
-- end
|
||||
--}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue