Skip to content

Commit

Permalink
Name change to TilixDropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivaylo Kuzev committed Mar 13, 2017
1 parent ab605b8 commit b46e749
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 32 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
# TerminixDropdown
# TilixDropdown

A GNOME Shell extension to open [Terminix](https://github.com/gnunn1/terminix) in [Quake Mode](https://github.com/gnunn1/terminix/wiki/Quake-Mode) .
A GNOME Shell extension to open [Tilix](https://github.com/gnunn1/tilix) in [Quake Mode](https://github.com/gnunn1/tilix/wiki/Quake-Mode) .

> Note that Terminix is changing it's name to Tilix due to a trademark issue with the Terminix International Corporation.
![preview](http://storage6.static.itmages.ru/i/16/1015/h_1476546656_3841355_d9df0ea092.png)

## Installation

### From Gnome Shell Extensions Page

The easiest way to install this extension is via the official [Gnome Shell Extensions](https://extensions.gnome.org/) resource page: <https://extensions.gnome.org/extension/1123/terminix-dropdown/>
The easiest way to install this extension is via the official [Gnome Shell Extensions](https://extensions.gnome.org/) resource page: <https://extensions.gnome.org/extension/1123/tilix-dropdown/>

### From Source

The extension can be installed directly from source, either for the convenience of using git or to test the latest version .

```
$ git clone https://github.com/ivoarch/gnome-shell-TerminixDropdown.git
$ mv gnome-shell-TerminixDropdown $HOME/.local/share/gnome-shell/extensions/TerminixDropdown@[email protected]
$ git clone https://github.com/ivoarch/gnome-shell-TilixDropdown.git
$ mv gnome-shell-TerminixDropdown $HOME/.local/share/gnome-shell/extensions/TilixDropdown@[email protected]
```

restart GNOME Shell (`Alt+F2 r Enter`) and enable the extension through gnome-tweak-tool.

## Configuring

### Custom hotkey
### Custom hotkey

Change keyboard shortcut key via extension settings from gnome-tweak-tool .

## Note

Make sure you have terminix installed!
## Note

Make sure you have tilix installed!
12 changes: 6 additions & 6 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const mySettings = Utils.getSettings();
// Globals
const key_bindings = {
'key': function(){
_startTerminix();
_startTilix();
}
};

Expand All @@ -30,19 +30,19 @@ function init(extensionMeta) {
track_hover: true
});
let icon = new St.Icon({
icon_name: 'com.gexperts.Terminix-symbolic',
icon_name: 'com.gexperts.Tilix-symbolic',
style_class: 'system-status-icon'
});

button.set_child(icon);
button.connect('button-press-event', _startTerminix);
button.connect('button-press-event', _startTilix);
}

function _startTerminix() {
function _startTilix() {
try {
Main.Util.trySpawnCommandLine('terminix --quake');
Main.Util.trySpawnCommandLine('tilix --quake');
} catch(err) {
Main.notify("Couldn't start terminix, is it installed?");
Main.notify("Couldn't start tilix, is it installed?");
}
}

Expand Down
14 changes: 6 additions & 8 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
{
"description": "Open Terminix in Quake mode .\n Add default keyboard shortcut (F10) .\n Easy way to change keyboard shortcut key via extension settings",
"name": "Terminix DropDown",
"description": "Open Tilix in Quake mode .\n Add default keyboard shortcut (F10) .\n Easy way to change keyboard shortcut key via extension settings",
"name": "Tilix DropDown",
"shell-version": [
"3.14",
"3.16",
"3.18",
"3.20",
"3.22"
],
"url": "https://github.com/ivoarch/gnome-shell-TerminixDropdown",
"uuid": "TerminixDropdown@[email protected]",
"version": 3,
"settings-schema": "org.gnome.shell.extensions.terminix-dropdown"
"url": "https://github.com/ivoarch/gnome-shell-TilixDropdown",
"uuid": "TilixDropdown@[email protected]",
"version": 4,
"settings-schema": "org.gnome.shell.extensions.tilix-dropdown"
}


2 changes: 1 addition & 1 deletion prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const mySettings = Utils.getSettings();

// Globals
const pretty_names = {
'key': 'start terminix in quake mode'
'key': 'start tilix in quake mode'
}

function init() {
Expand Down
Binary file modified schemas/gschemas.compiled
Binary file not shown.

This file was deleted.

8 changes: 8 additions & 0 deletions schemas/org.gnome.shell.extensions.tilix-dropdown.gschema.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<schemalist>
<schema id="org.gnome.shell.extensions.tilix-dropdown" path="/org/gnome/shell/extensions/tilix-dropdown/">
<key type="as" name="key">
<default><![CDATA[['F10']]]></default>
<summary>Key to start tilix in quake mode</summary>
</key>
</schema>
</schemalist>

0 comments on commit b46e749

Please sign in to comment.