diff --git a/awesome-workspace-grid.lua b/awesome-workspace-grid.lua index 6135386..2e69f59 100644 --- a/awesome-workspace-grid.lua +++ b/awesome-workspace-grid.lua @@ -1,6 +1,11 @@ local awful = require("awful") local naughty = require("naughty") +function script_path() + local str = debug.getinfo(2, "S").source:sub(2) + return str:match("(.*/)") +end + function on_tag_selected(t) if t.screen == nil then return @@ -16,11 +21,13 @@ function on_tag_selected(t) for i = 1, screen.count() do s = screen[i] notification = naughty.notify({ + icon = script_path() .. "icons/workspace_0" .. t.index .. ".svg", + icon_size = 100, position = "top_middle", preset = naughty.config.presets.normal, replaces_id = s.workspace_notification_id, screen = i, - text = t.name, + text = nil, timeout = 1, }) s.workspace_notification_id = notification.id diff --git a/icons/workspace.svg b/icons/workspace.svg new file mode 100644 index 0000000..8f5ddef --- /dev/null +++ b/icons/workspace.svg @@ -0,0 +1,78 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/icons/workspace_01.svg b/icons/workspace_01.svg new file mode 100644 index 0000000..9546343 --- /dev/null +++ b/icons/workspace_01.svg @@ -0,0 +1,85 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/icons/workspace_02.svg b/icons/workspace_02.svg new file mode 100644 index 0000000..3fc2437 --- /dev/null +++ b/icons/workspace_02.svg @@ -0,0 +1,85 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/icons/workspace_03.svg b/icons/workspace_03.svg new file mode 100644 index 0000000..81e7cca --- /dev/null +++ b/icons/workspace_03.svg @@ -0,0 +1,85 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/icons/workspace_04.svg b/icons/workspace_04.svg new file mode 100644 index 0000000..54e46a9 --- /dev/null +++ b/icons/workspace_04.svg @@ -0,0 +1,85 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/icons/workspace_05.svg b/icons/workspace_05.svg new file mode 100644 index 0000000..1f270a9 --- /dev/null +++ b/icons/workspace_05.svg @@ -0,0 +1,85 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/icons/workspace_06.svg b/icons/workspace_06.svg new file mode 100644 index 0000000..ac4d36f --- /dev/null +++ b/icons/workspace_06.svg @@ -0,0 +1,85 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + +