Commit Graph
89 Commits
Author SHA1 Message Date
Ole Jørgen Brønner d8e6f4f7f9 Bugfix preview_navigate: parent constructor re-assigned _selectedIndex 2017-09-14 09:39:53 +02:00
Tor Hedin Brønner 2f831b6ec8 Add gnome-shell-mode to dir-locals 2017-09-14 09:27:10 +02:00
Ole Jørgen Brønner 88e1d82f87 Notes: "navigate-mode" 2017-09-14 08:28:44 +02:00
Ole Jørgen Brønner d68be69df4 PreviewedWindowNavigator: Navigate tiling with preview-strip and live changes
Temporary bindings: <super><ctrl>,/.

Note: can probably unify this and LiveWindowNavigator making the preview
optional. We probably want some sort of extra decoration on the actual windows
even when the preview is shown too.
2017-09-14 07:45:07 +02:00
Ole Jørgen Brønner 16edfa97f1 Remove debug noise 2017-09-14 07:23:46 +02:00
Ole Jørgen Brønner dd838977f1 Naming: FocusCycler -> LiveWindowNavigator 2017-09-14 07:10:07 +02:00
Ole Jørgen Brønner e965f03d7b notes 2017-09-14 06:57:39 +02:00
Ole Jørgen Brønner fee16e1dde notes 2017-09-14 05:47:13 +02:00
Ole Jørgen Brønner 10d6f56bed .dir-locals.el: enable org-indent-mode 2017-09-14 05:40:55 +02:00
Tor Hedin Brønner 11724bac52 Don't log the timestamp as journald already handles it 2017-09-14 02:38:09 +02:00
Tor Hedin Brønner eb95aeb12d Pass the workspace into the propogate functions
Also don't rely on declaration hoisting in `ensure_viewport`.

(sooo hard apparently to debug the fact I didn't pass the workspace in the
recursive calls at first...)
2017-09-14 02:38:04 +02:00
Tor Hedin Brønner 0e7c0276ed Fix alignment when closing the very first or last window
There's very little delay between `focus` and `window-removed` so there's no
jumpiness when running ensure twice.
2017-09-14 01:39:08 +02:00
Tor Hedin Brønner cc31091574 A problem with the stacklevel for two maximized windows 2017-09-14 01:11:32 +02:00
Tor Hedin Brønner e0b877431f Add a bug 2017-09-14 00:29:42 +02:00
Tor Hedin Brønner e0ab1619dd Closed bug 2017-09-14 00:28:43 +02:00
Tor Hedin Brønner acfb736e78 Use first-frame signal for initial positioning 2017-09-14 00:24:55 +02:00
Tor Hedin Brønner 9ca625d1f0 Add some comments and pull out the move_to function call 2017-09-14 00:13:19 +02:00
Tor Hedin Brønner 8313254e1f Add robust first/last window detection
Also some general cleanup of `ensure_viewport`.
2017-09-14 00:00:10 +02:00
Tor Hedin Brønner 3b49bcc066 Refactor out the common move code in ensure_viewport 2017-09-13 23:39:11 +02:00
Tor Hedin Brønner c67dec5ff6 Quick and dirty fix so that we're not double ensuring on focus
Keep track of what window we're moving into view, so we can abort subsequent
calls on the same window.
2017-09-13 23:30:12 +02:00
Ole Jørgen Brønner 32134619dc Don't wrap around on next/prev window 2017-09-13 21:29:57 +02:00
Ole Jørgen Brønner faf28459bb Change windows without changing focus immediately (on modifier release) 2017-09-13 19:13:55 +02:00
Ole Jørgen Brønner 6bc2f01afd repl: slow down factor 2017-09-13 17:40:27 +02:00
Tor Hedin Brønner a80786a0c7 Fix adding new window to the start (ie. index 0)
Should now properly set the initial position of new windows at the start, eg.
the first window on a workspace or maximized windows.
2017-09-13 16:40:35 +02:00
Ole Jørgen Brønner 64a455e85e regression maximize: key handlers have a particular signature
Added a `as_key_handler` helper to adapt simple functions to key handlers
2017-09-13 14:23:48 +02:00
Tor Hedin Brønner 69be1f4fcf Use custom maximize for new maximized windows 2017-09-13 13:10:19 +02:00
Tor Hedin Brønner 6e95b09162 Rename log to debug, as log is already used 2017-09-13 12:40:48 +02:00
Tor Hedin Brønner e8caf0eec7 Use the original x position on maximize before ensure 2017-09-12 17:46:56 +02:00
Tor Hedin Brønner 2deedca4e3 Fix ensure_viewport to center large windows
That is only use as much margin as there's room for without pushing the window
outside the viewport
2017-09-12 17:13:46 +02:00
Ole Jørgen Brønner 9a14679868 Action: toggle_maximize_horizontally
The built in maximze function forces the window to be fully visible so if we're
to use these we have to do some stuff when focus changes to other window.

One option is to simply unmaximize on focus-lost.

Or find out if it's possible to disable those constraints. (probably not, see
constraints in mutter)
2017-09-12 15:09:29 +02:00
Ole Jørgen Brønner 64e7134dca notes maintance 2017-09-12 13:02:06 +02:00
Ole Jørgen Brønner bb3afeae78 notes maintance 2017-09-12 13:00:32 +02:00
Tor Hedin Brønner 9943b02e10 Add center functionality
Set `zen` to true to push all windows to the sides.
2017-09-12 12:41:33 +02:00
Tor Hedin Brønner 55c2c89a35 Fix stack level regression
Shouldn't lower the window which is brought into view.
2017-09-11 21:41:51 +02:00
Tor Hedin Brønner 1a32295aca Fix typo: move_right -> move_left 2017-09-11 21:39:32 +02:00
Tor Hedin Brønner 402147fa7a Fix broken startup
The workspace init loop doesn't like that workspaces aren't fully initialized
when running add_all_from_workspaces(workspace). (not sure why, since we really
should only be referencing workspaces[workspace.workspace_index] which is
initialized above the call.
2017-09-11 20:45:31 +02:00
Ole Jørgen Brønner 067f911927 ADHOC: Change default schema location 2017-09-11 20:23:39 +02:00
Ole Jørgen Brønner cf433f9210 Actions: move_left/right (<meta><shift>,/.)
Moves the focused window left/right in the tiling
2017-09-11 20:21:42 +02:00
Tor Hedin Brønner 61a33ad3bf Control the left and right edge of windows better
Anchor scaling/animation on the left edge for windows positioned to the right,
and on the right edge for windows positioned to the left.
2017-09-11 20:21:18 +02:00
Tor Hedin Brønner aee6adfbb6 Convenience: run add_all_from_workspace on startup 2017-09-11 19:10:38 +02:00
Tor Hedin Brønner fbb24ef75a Crash on fast close window/open window 2017-09-11 18:58:59 +02:00
Tor Hedin Brønner e1ad802040 Better new window animation
Move the window immediately to the correct position and adjust with
ensure_in_viewport.
2017-09-11 18:29:00 +02:00
Tor Hedin Brønner a335f49286 Bind <super>space to activities overview 2017-09-11 18:21:05 +02:00
Tor Hedin Brønner 97fa1d4aee Bind cycle-window to super too 2017-09-11 18:05:38 +02:00
Ole Jørgen Brønner e600299a9d Custom schema (let us create new keybindings/actions)
The path to the schema dir have to be set adhoc until we create a proper
extension.
2017-09-11 18:02:55 +02:00
Tor Hedin Brønner 772773c027 Focus window to the left when closing window 2017-09-11 17:15:52 +02:00
Tor Hedin Brønner 28b9b87408 Always propogate window changes 2017-09-11 15:31:00 +02:00
Tor Hedin Brønner 9a1efc1c13 Don't break when there's no focus_window
Sometimes when running apps from activities, and always for the first added
window on a workspace
2017-09-11 12:59:04 +02:00
Tor Hedin Brønner c3be4b3a97 Bug 2017-09-11 01:36:38 +02:00
Tor Hedin Brønner 52efb8bb38 Add a little debug script which uses journalctl
Inserts a new line and two spaces after the journal stamp for readability
2017-09-11 01:34:42 +02:00