├── README.md ├── createzip.sh ├── slideforkeyboard@simon.schumann.web.de └── src ├── extension.js ├── metadata.json └── stylesheet.css /README.md: -------------------------------------------------------------------------------- 1 | # gnome-shell-extension-slide-for-keyboard 2 | Shows virtual keyboard with a slide from the bottom screen edge. 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 slideforkeyboard\@simon.schumann.web.de src/* 11 | echo "done." 12 | -------------------------------------------------------------------------------- /slideforkeyboard@simon.schumann.web.de: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuhumi/gnome-shell-extension-slide-for-keyboard/c0bba0a56f8010f1d3dfa40b79ea7c378d271a0b/slideforkeyboard@simon.schumann.web.de -------------------------------------------------------------------------------- /src/extension.js: -------------------------------------------------------------------------------- 1 | 2 | const St = imports.gi.St; 3 | const Main = imports.ui.main; 4 | const Keyboard = imports.ui.keyboard.Keyboard; 5 | const EdgeDragAction = imports.ui.edgeDragAction; 6 | const Shell = imports.gi.Shell; 7 | const Lang = imports.lang; 8 | 9 | let gesture = new EdgeDragAction.EdgeDragAction(St.Side.BOTTOM, Shell.ActionMode.NORMAL); 10 | 11 | function init() { 12 | 13 | } 14 | 15 | function enable() { 16 | gesture.connect('activated', Lang.bind(this, function() { 17 | Main.keyboard._keyboardRequested = true; 18 | Main.keyboard._keyboardVisible = false; 19 | if(typeof Main.keyboard.Show === 'function') { 20 | Main.keyboard.Show(global.get_current_time()); // up to 3.28 21 | } else if (typeof Main.keyboard.show === 'function') { 22 | Main.keyboard.show(0); // from 3.28 to 3.31.2 23 | } else { 24 | Main.keyboard.open(0); // since 3.31.2 25 | } 26 | })); 27 | global.stage.add_action(gesture); 28 | } 29 | 30 | function disable() { 31 | global.stage.remove_action(gesture); 32 | } 33 | -------------------------------------------------------------------------------- /src/metadata.json: -------------------------------------------------------------------------------- 1 | {"name": "Slide for Keyboard", "uuid": "slideforkeyboard@simon.schumann.web.de", "description": "Shows virtual keyboard with a slide from the bottom screen edge", "shell-version": ["3.16", "3.18", "3.20", "3.22"]} 2 | -------------------------------------------------------------------------------- /src/stylesheet.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuhumi/gnome-shell-extension-slide-for-keyboard/c0bba0a56f8010f1d3dfa40b79ea7c378d271a0b/src/stylesheet.css --------------------------------------------------------------------------------