Commit Graph
39 Commits
Author SHA1 Message Date
Ole Jørgen Brønner f3e7f94d9b add left binding for fit available 2021-01-30 15:42:57 +01:00
Ole Jørgen Brønner 303e55dc8b semicolons 2021-01-30 15:42:57 +01:00
Ole Jørgen Brønner f4f3972798 WIP:
- move most layout related function into separate file
- restructure a bit
- create cycleLayoutDir to allow explict control over which neighbour to use
- add bindings for expandOrShrink (aka. "fit") right neighbour
2021-01-30 15:42:55 +01:00
Ole Jørgen Brønner 89cc823db8 examples/keybindings: cycle-layouts 2021-01-30 15:42:20 +01:00
Ole Jørgen Brønner 30c2d06d63 examples/keybindings: expand-available-width 2021-01-30 15:42:20 +01:00
Ole Jørgen Brønner 7b7bdb1637 examples/keybindings: small fix swap-neighbours 2021-01-30 15:42:20 +01:00
mrspikerootandMichael Root 4f5b9319ed Add "StackUnstack" action in Examples. (#358)
If the focused window is not stacked, it stacks it at the bottom of an adjacent column
If the focused window is stacked, it moves it out into its own column.

Co-authored-by: Michael Root <michael.root@rjginc.com>
2020-12-24 01:06:27 +01:00
Tor Hedin Brønner 54b7448e4d Simple fixes for 3.38
log no longer takes several arguments...

actor.add seems brokenish?
2020-08-23 16:56:32 +02:00
Ole Jørgen Brønner 065526d409 examples/keybindings: reorder workspace 2020-03-14 23:09:31 +01:00
Ole Jørgen Brønner cd9101067d examples/keybindings: cycle edge snap 2020-01-11 13:27:35 +01:00
Ole Jørgen Brønner d2887263a2 examples/keybindings: tile into left/right column
Takes the selected window and tile it into the left/right neighbour column.
2019-10-31 20:08:03 +01:00
Tor Hedin Brønner 4cfe445477 tiling: Move cycle to Tiling.cycleWorkspaceSettings 2019-10-21 12:47:39 +02:00
Ole Jørgen Brønner 60a5a95277 examples/keybindings: adjust width (<Super>plus/minus) 2019-10-10 22:14:43 +02:00
Tor Hedin Brønner 3b6d9309cc examples/keybindings: moveSpaceToMonitor fixup
No idea why this is necessary, but I sometimes get bugged focus and topbar
without it.
2019-10-10 21:33:38 +02:00
Tor Hedin Brønner fd605e425b examples/keybindings: add moveSpaceToMonitor binding 2019-10-10 19:58:21 +02:00
Ole Jørgen Brønner 024e8bb705 examples: keybinding for cycling workspace settings (among "unbound" and current)
Only relevant when using dynamic workspace. Typically used to change the empty
workspace settings to the one you want.
2019-09-29 23:18:30 +02:00
Tor Hedin Brønner 5ed464eac3 examples/user.js: add Keybindings and Examples
Examples is especially useful, as there's a bunch of bindings that can be
activated:
  Examples.keybindings.cycleMonitor()
2019-09-28 00:58:39 +02:00
Rasmus Eneman f949799c37 Fix crash under Gnome 3.34 2019-08-30 08:16:23 +02:00
Ole Jørgen Brønner ae8e91093b Show a warning notification when failing to bind a key (user.js) 2019-07-02 21:49:20 +02:00
Tor Hedin Brønner a5f0eefa4b keybind examples: support specifying keyboard combo 2019-07-01 22:17:09 +02:00
Ole Jørgen Brønner 9a6cf9dba3 examples: don't use global.screen
screen is removed in gnome 3.3x
2019-06-29 12:20:53 +02:00
Ole Jørgen Brønner f5bf26cbde examples: usage instructions 2019-06-29 12:18:26 +02:00
Ole Jørgen Brønner ce68de1125 examples: cycle focused monitor action 2019-06-29 12:17:40 +02:00
Julia Evans 7eb0bc1322 Fix typo in keybindings example
I tried using this and got an error because `i` should be `k`, with this change it works for me.
2019-06-23 01:09:56 +02:00
Ole Jørgen Brønner d5a7c81895 keybindings: cycle window height <super><shift>r 2019-01-05 12:52:52 +01:00
Ole Jørgen Brønner e4916a434b examples/keybindings.js: cycle-height 2019-01-05 11:14:39 +01:00
Ole Jørgen Brønner 80256f2215 examples/keybindings.js: window marks update
Goto mark when the it's already focused now selects previous (mru) window.

Quite common to just quickly check a marked window - more convenient to repeat
the binding instead of using super-tab.
2018-12-23 16:44:18 +01:00
Ole Jørgen Brønner 43974ba50c Minor fixes keybinding system
- rebinding a schemaless binding lost it's implied options
- fix showNavigator example
- wrong documentaion in README
2018-12-09 14:53:53 +01:00
Tor Hedin Brønner 3929fe9daf Add focus winprop option
Useful for eg. rofi in normal window mode in wayland.
2018-09-25 18:37:39 +02:00
Ole Jørgen Brønner 71b6ee8f56 Unify regular keybinding api an schemaless keybinding api
Try to make it a bit more "action oriented":

  An action exists independently of its binding. It could conceivable be invoked
  by other means too.

Some weirdness from the marriage remain to weed out, but this is a working
stepping stone.
2018-07-06 12:16:37 +02:00
Ole Jørgen Brønner e8e01dfbf7 more examples 2018-07-06 12:16:37 +02:00
Ole Jørgen Brønner 8bbb0cc23d examples: make marks work when navigator is open 2018-07-06 12:16:37 +02:00
Ole Jørgen Brønner f9fd005fa5 Utility function for checking if a key-combo is bound 2018-07-06 12:16:37 +02:00
Ole Jørgen Brønner 5bce8922c1 API for ad-hoc/schemaless/user keybindings 2018-07-06 12:16:37 +02:00
Ole Jørgen Brønner b08194b9ab user.js: Initialize "local" imports in init
Otherwise gnome-shell-reload will fail.
2018-07-01 18:08:13 +02:00
Ole Jørgen Brønner 49f402c8d2 Include the most common imports in user.js
No need to split declaration and initialization any more either (?)
2018-07-01 17:52:11 +02:00
Tor Hedin Brønner db6252fe54 user.js: Add mode decoration 2018-05-03 16:01:19 +02:00
Ole Jørgen Brønner ba21e6859c Implement rcfile/user-config as module (#51)
Fixes #51
2018-05-01 17:07:05 +02:00
Ole Jørgen Brønner d2f3784e1d Remove riot and copyq winprops from tiling
Should be up to the user
2018-04-15 11:55:53 +02:00