Adds todo

This commit is contained in:
Thomas Forgione 2023-08-08 11:16:32 +02:00
parent b9b4c59e5a
commit 7951f7f2fe
2 changed files with 20 additions and 14 deletions

2
rc.lua
View File

@ -485,7 +485,7 @@ globalkeys = awful.util.table.join(
end, {description="start the web browser", group="shortcuts"}),
awful.key({modkey}, "z", function()
awful.spawn.easy_async(options.browser .. " https://web.telegram.org https://chat.polymny.studio https://discord.com/app https://nuage.polymny.studio/nextcloud/index.php/apps/calendar/", function() end)
awful.spawn.easy_async(options.browser .. " https://gitea.tforgione.fr/tforgione/todo/issues https://web.telegram.org https://chat.polymny.studio https://discord.com/app https://nuage.polymny.studio/nextcloud/index.php/apps/calendar/", function() end)
naughty.notify({title = "Starting social media"})
end, {description="Open social media", group="shortcuts"}),

View File

@ -76,20 +76,26 @@ theme.titlebar_maximized_button_focus_inactive = "/usr/share/awesome/themes/def
theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/default/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_active = "/usr/share/awesome/themes/default/titlebar/maximized_focus_active.png"
function getrandomwallpaper()
local wallpaperdir = os.getenv('HOME') .. '/.config/awesome/Wallpapers/'
local i, t, popen = 0, {}, io.popen
local pfile = popen('ls -a "'.. wallpaperdir .. '"')
for filename in pfile:lines() do
i = i + 1
t[i] = filename
end
pfile:close()
return wallpaperdir .. t[math.random(1, i)]
end
-- function getallwallpapers()
-- local wallpaperdir = os.getenv('HOME') .. '/.config/awesome/Wallpapers/'
-- local t, popen = 0, {}, io.popen
-- local pfile = popen('ls -a "'.. wallpaperdir .. '"')
-- theme.wallpaperlen = 0
-- for filename in pfile:lines() do
-- theme.wallpaperlen = theme.wallpaperlen + 1
-- theme.wallpapers[theme.wallpaperlen] = wallpaperdir .. filename
-- end
-- pfile:close()
-- end
--
-- getallwallpapers()
--
-- function getrandomwallpaper()
-- return wallpaperdir .. theme.wallpapers[math.random(1, theme.wallpaperlen)]
-- end
--
-- theme.wallpaper = getrandomwallpaper()
theme.wallpaper = os.getenv('HOME') .. "/.config/awesome/Wallpapers/kuala.png"
theme.wallpaper = os.getenv('HOME') .. "/.config/awesome/Wallpapers/toilet-3.png"
-- You can use your own layout icons like this:
theme.layout_fairh = "/usr/share/awesome/themes/default/layouts/fairhw.png"