Commit Graph

233 Commits

Author SHA1 Message Date
c980f7fe20 initial support for touch events
Calls lua handlers, then passes the event to the appropriate client

Doesn't do pointer emulation (unlike sway) because in the
GNOME/Gtk worldview that's done client-side, so my assumption is
anything else that wants to co-exist with GNOME also has to
do it client-side

Still to do:

- verify whether return value of the lua handler will affect whether
event passed to child

- clean up the hacky int we use to track whether to set touch
seat capability
2022-07-12 23:16:44 +00:00
2c51676436 choose view by clicking it in overview 2022-07-07 12:17:46 +01:00
36496ad126 pointer focus needs to account for view transform matrix 2022-07-07 11:58:40 +01:00
41b72f95c1 hook up overview button, first part
- co-ordinates hardcoded, need to adjust for screen size
- confuses the pointer x/y mapping for underlying views
- can't click on windows
- can't spin the carousel
2022-07-03 23:36:17 +01:00
9110280373 rename local 2022-07-03 23:17:39 +01:00
b34a43897a remove many hard-coded co-ordinates 2022-07-03 23:08:33 +01:00
bd18a20251 some generally (I hope) useful config for the Pinephone 2022-07-03 23:08:33 +01:00
27b28e997b nixos module to start kiwmi at boot
this is here for my convenience, I make no claims of practicality
or beauty (it uses nix-shell and hardcodes pathnames)
2022-07-03 23:08:33 +01:00
ee2730f757 only resize output when using wayland backend
surprisingly enough, real hardware complains
2022-07-03 23:08:33 +01:00
8683fce4aa use output width/height instead of hardcoding 2022-07-03 23:08:33 +01:00
1875b87592 use output width/height instead of hardcoding 2022-07-03 23:08:33 +01:00
69753c2345 add some matrix functions 2022-07-03 23:08:33 +01:00
07fd321f94 extract texture-from-file into module 2022-07-03 23:08:33 +01:00
67e03c6736 extract function 2022-07-03 11:09:02 +01:00
60d4466857 terminate repl & cleanup when eof 2022-07-02 23:17:00 +01:00
6ed0e63a8f we don't need a Makefile any more 2022-07-01 22:39:59 +01:00
798dd9ed5c fennel repl on a unix socket 2022-07-01 22:28:41 +01:00
03b32ffa7e make event_loop_add_fd available to Lua on kiwmi singleton
CAUTION - the implementation is unfinished, as it doesn't
clean up when the fd is closed
2022-07-01 22:17:41 +01:00
49229c75f3 add per-view transformation matrices
Note that this breaks output layout. Would prefer to deal with that
stuff ("monitor 1 is left of monitor 2") in Lua for more flexibility
2022-05-21 20:30:54 +01:00
3628e93d18 kiwmi debug build 2022-05-18 10:33:37 +01:00
b346323d0b detect mouse clicks in bottom bar (hacky) 2022-05-08 22:48:44 +01:00
7ea1e9a0e7 add some very professional icons 2022-05-08 22:38:44 +01:00
7c061624c7 output render callback accepts { : output : renderer } 2022-05-05 23:38:39 +01:00
b804bb1c1f add "render" callback on output 2022-05-05 23:23:49 +01:00
f626324825 new lua bindings for textures
- output:renderer
- renderer:texture_from_pixels
- renderer:draw_texture

We need to be able to access the renderer outside of the post_render
hook (hence output:renderer) because we can't call
wlr_texture_from_pixels while rendering

texture_from_pixels accepts a string as the data argument not a
userdata, because that matches what we getk from GdkPixbuf.Pixbuf
new_from_file when using gobject-introspection.
2022-04-28 20:27:09 +01:00
12d0e93a3e
Merge pull request #1 from telent/add-license-1
Create LICENSE
2022-04-27 13:33:33 +01:00
303f50a734
Create LICENSE 2022-04-27 13:33:17 +01:00
74dea6bc57 more to do 2022-04-27 13:27:06 +01:00
07ccbe1131 add Just Browsing 2022-04-27 13:26:54 +01:00
119f9f2427 just: enable tls 2022-04-27 10:14:10 +01:00
0fc08474e7 add an icon 2022-04-27 10:14:10 +01:00
417e443ed3 create and document build.nix 2022-04-27 10:14:10 +01:00
4ee558f906 Merge pull request #4 from telent/simplify-and-add-shortness
Simplify and add shortness
2022-04-27 10:14:10 +01:00
084c6440cd update TODO 2022-04-27 10:14:10 +01:00
aa2c23a48e rudimentary support for downloads 2022-04-27 10:14:10 +01:00
da435b0667 restore adblock (rather messy) 2022-04-27 10:14:10 +01:00
b7956d70bb hook up the "new tab" button 2022-04-27 10:14:10 +01:00
ad69c88486 update TODO 2022-04-27 10:14:10 +01:00
75811b6d6c remove debug output 2022-04-27 10:14:10 +01:00
400124570d add completions to text entry 2022-04-27 10:14:10 +01:00
a16d1a46e3 handle ESC in text entry to revert changes to current url 2022-04-27 10:14:10 +01:00
a928c40cd0 open a blank webview if no URLs on command line 2022-04-27 10:14:09 +01:00
d831ccbb67 add DWIMminess to url bar text entry
- prepend https:// to things that might be partial URLs
- perform searches for things that are not URLs (e.g. contain spaces)
- use different search engines for things that start with @foo

e.g. @ebay, @ddg, @lua
2022-04-27 10:14:09 +01:00
5871afe197 hide stop/refresh when loading is/isn't in progress 2022-04-27 10:14:09 +01:00
ccdf63eea1 add loading progress bar, hook to signals 2022-04-27 10:14:09 +01:00
263704ba37 todo 2022-04-27 10:14:09 +01:00
2e6d7fa3d2 set window title 2022-04-27 10:14:09 +01:00
07708b47fd move webview thumbnail code from viewplex to webview 2022-04-27 10:14:09 +01:00
8567c4d81c make names more consistent 2022-04-27 10:14:09 +01:00
f5503c3838 implement pane chooser 2022-04-27 10:14:09 +01:00