├── caribou_resize_workspace.png ├── caribou-resize-workspace@simon.schumann.web.de ├── README.md ├── createzip.sh └── src ├── metadata.json └── extension.js /caribou_resize_workspace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/F-i-f/gnome-shell-extension-caribou-resize-workspace/master/caribou_resize_workspace.png -------------------------------------------------------------------------------- /caribou-resize-workspace@simon.schumann.web.de: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/F-i-f/gnome-shell-extension-caribou-resize-workspace/master/caribou-resize-workspace@simon.schumann.web.de -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # gnome-shell-extension-caribou-resize-workspace 2 | Makes working with Gnome's virtual keyboard "caribou" more pleasant by resizing the workspace on caribou's appearance so that it doesn't cover the window the user want's to type in. 3 | -------------------------------------------------------------------------------- /createzip.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This script creates a zip file suitable for extensions.gnome.org 4 | 5 | # Dependencies: 6 | # zip 7 | 8 | 9 | echo "creating zip..." 10 | zip -j caribou-resize-workspace\@simon.schumann.web.de src/* 11 | echo "done." 12 | -------------------------------------------------------------------------------- /src/metadata.json: -------------------------------------------------------------------------------- 1 | {"name": "caribou-resize-workspace", "uuid": "caribou-resize-workspace@simon.schumann.web.de", "description": "Resizes the workspace when Gnome's virual keyboard caribou appears so that it doesn't cover the window the user wants to type in.", "shell-version": ["3.18", "3.20"]} 2 | -------------------------------------------------------------------------------- /src/extension.js: -------------------------------------------------------------------------------- 1 | 2 | const Main = imports.ui.main; 3 | 4 | function init() { 5 | 6 | } 7 | 8 | function enable() { 9 | // Make caribou resize windows to not cover them 10 | Main.layoutManager.removeChrome(Main.layoutManager.keyboardBox); 11 | Main.layoutManager.addChrome( Main.layoutManager.keyboardBox, { affectsStruts: true, trackFullscreen: true }); 12 | 13 | } 14 | 15 | function disable() { 16 | // Revert: Make caribou resize windows to not cover them 17 | Main.layoutManager.removeChrome(Main.layoutManager.keyboardBox); 18 | Main.layoutManager.addChrome( Main.layoutManager.keyboardBox); 19 | } 20 | --------------------------------------------------------------------------------