[gnome] Update extensions

This commit is contained in:
2024-02-06 01:31:09 -05:00
parent fb9f4f5824
commit 26aa549720
75 changed files with 13080 additions and 0 deletions

View File

@ -0,0 +1,28 @@
import * as KeyboardUI from 'resource:///org/gnome/shell/ui/keyboard.js';
function _modifiedLastDeviceIsTouchscreen() {
return false;
}
export default class BlockCaribou {
constructor() {
this._originalLastDeviceIsTouchscreen = null;
}
enable() {
this._originalLastDeviceIsTouchscreen = KeyboardUI.KeyboardManager.prototype._lastDeviceIsTouchscreen;
KeyboardUI.KeyboardManager.prototype._lastDeviceIsTouchscreen = _modifiedLastDeviceIsTouchscreen;
}
/*
* In the lock screen, the on-screen keyboard (Caribou) also pops up by
* default. So this extension requires the "unlock-dialog" session mode to
* block Caribou in lock screen.
*/
disable() {
if (this._originalLastDeviceIsTouchscreen !== null) {
KeyboardUI.KeyboardManager.prototype._lastDeviceIsTouchscreen = this._originalLastDeviceIsTouchscreen;
this._originalLastDeviceIsTouchscreen = null;
}
}
}

View File

@ -0,0 +1,15 @@
{
"_generated": "Generated by SweetTooth, do not edit",
"description": "Blocks caribou (the on screen keyboard) from popping up when you use a touchscreen. Even if it's disabled in the accessibility services menu. Continuation of keringar's work. Tested on GNOME Shell version 3.36 - 45 on Fedora 32 - 39. For a higher version see https://github.com/lxylxy123456/cariboublocker#installing-on-high-gnome-shell-version .",
"name": "Block Caribou 36",
"session-modes": [
"unlock-dialog",
"user"
],
"shell-version": [
"45"
],
"url": "https://github.com/lxylxy123456/cariboublocker",
"uuid": "block-caribou-36@lxylxy123456.ercli.dev",
"version": 10
}