Add some configs from generic Ubuntu

This commit is contained in:
2020-05-11 05:16:27 -04:00
parent f32c1048d1
commit 754f64f135
16037 changed files with 205635 additions and 137 deletions

View File

@@ -0,0 +1,24 @@
# Notejot Button
A button to easily open notejot.
## Installation
You have to manually install Notejot from Software Center, either from the distribution repo or from flathub.
The extension **has not** been tested with a manual build of notejot repo: https://github.com/lainsce/notejot
You can then automatically install the extension or you can download the files and being nerdish! :D
**Automatic installation (best option):**
* From gnome extension website
**Manual installation:**
* Download the zip file
* Unzip it
* Put the folder in `~/.local/share/gnome-shell/extensions/`
* Restart the gnome shell environnment (reboot, logout and login again, or `alt+f2` then write `r` and press enter).

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -0,0 +1,44 @@
// St : for creating UI elements
const St = imports.gi.St;
// Main : have all the UI elements
const Main = imports.ui.main;
const Util = imports.misc.util;
const Shell = imports.gi.Shell;
let notejotButton;
function init(extensionMeta) {
}
function enable() {
notejotButton = new St.Bin({
style_class: 'panel-button',
reactive: true,
can_focus: true,
x_fill: true,
y_fill: false,
track_hover: true});
let icon = new St.Icon({
icon_name: 'document-edit-symbolic',
style_class: 'system-status-icon'});
notejotButton.set_child(icon);
notejotButton.connect('button-press-event', toggleNotejot);
Main.panel._rightBox.insert_child_at_index(notejotButton, 0);
}
function disable() {
Main.panel._rightBox.remove_child(notejotButton);
}
function toggleNotejot() {
try {
Util.trySpawnCommandLine('/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=com.github.lainsce.notejot com.github.lainsce.notejot --new-note');
Util.trySpawnCommandLine('com.github.lainsce.notejot --new-note');
} catch(err) {
Main.notify("Can't load Notejot. Is it installed?");
}
}

View File

@@ -0,0 +1,12 @@
{
"_generated": "Generated by SweetTooth, do not edit",
"description": "A button to easily open a new notejot note.",
"name": "Notejot Button",
"shell-version": [
"3.30",
"3.32"
],
"url": "https://github.com/amivaleo/Notejot-Button",
"uuid": "notejot-button@amivaleo",
"version": 2
}