From 2a6904ec1e76fbf3d34cb9f6f0155b016c8f8b95 Mon Sep 17 00:00:00 2001 From: elenapan Date: Mon, 20 Apr 2020 01:55:51 +0300 Subject: [PATCH] Make dashboard appear on login (requires setup) Add `touch /tmp/awesomewm-show-dashboard` to your ~/.xprofile to make it work --- config/awesome/rc.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 52cdbec..d64b4bf 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -1023,6 +1023,19 @@ end) -- client.disconnect_signal("request::geometry", awful.ewmh.client_geometry_requests) -- client.disconnect_signal("request::geometry", awful.ewmh.geometry) +-- Show the dashboard on login +-- Add `touch /tmp/awesomewm-show-dashboard` to your ~/.xprofile in order to make the dashboard appear on login +local dashboard_flag_path = "/tmp/awesomewm-show-dashboard" +-- Check if file exists +awful.spawn.easy_async_with_shell("stat "..dashboard_flag_path.." >/dev/null 2>&1", function (_, __, ___, exitcode) + if exitcode == 0 then + -- Show dashboard + if dashboard_show then dashboard_show() end + -- Delete the file + awful.spawn.with_shell("rm "..dashboard_flag_path) + end +end) + -- Garbage collection -- Enable for lower memory consumption -- ===================================================================