-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f491f0
commit 4c983f3
Showing
4 changed files
with
54 additions
and
47 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
-- Switch to prev/next tab in topmost tabbed layout | ||
local i3 = require("i3ipc") | ||
local ipc = i3.Connection:new() | ||
ipc.main(function(ipc) | ||
local ret = ipc:get_inputs() | ||
print(require("inspect")(ret)) | ||
ipc:on("window", function(_, event) | ||
print(require("inspect")(event)) | ||
i3.main(function(ipc) | ||
ipc:on("shutdown", function(ipc) | ||
print("Shutdown!") | ||
end) | ||
ipc:on("window", function(ipc, event) | ||
print("window event", event.container.id) | ||
ipc:command(("exec notify-send Window '%s'"):format(event.container.name)) | ||
end) | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.