mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-01 03:55:23 +08:00
Make dashboard appear on login (requires setup)
Add `touch /tmp/awesomewm-show-dashboard` to your ~/.xprofile to make it work
This commit is contained in:
parent
6613342a2f
commit
2a6904ec1e
1 changed files with 13 additions and 0 deletions
|
|
@ -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
|
||||
-- ===================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue