Skip to content

Instantly share code, notes, and snippets.

View mtwebster's full-sized avatar

Michael Webster mtwebster

View GitHub Profile

Actions

Actions enable you to add custom entries in Nemo's context menus.

At its most basic, an action can be defined by a single file.

Nemo Action File

  • An action file must end in .nemo_action
  • It can be placed in any data location under nemo/actions (for instance, /usr/share/nemo/actions, or ~/.local/share/nemo/actions). You should install user actions under your home folder.
diff --git a/__init__.py b/__init__.py
index 3dff370..3b27f4f 100644
--- a/__init__.py
+++ b/__init__.py
@@ -129,7 +129,7 @@ class DeferredException(object):
if PY3K:
raise self.value.with_traceback(self.traceback)
else:
- raise self.type, self.value, self.traceback
+ raise (self.type, self.value, self.traceback)
@mtwebster
mtwebster / gnome-dev-docs-cinnamon5.4+.json
Last active February 27, 2023 16:21
Preset file for Cinnamon 5.4+ for gjs-docs.gnome-org
{
"docs": "cairo10~1.0/clutter7~7/clutterx117~7/cogl7~7/coglpango7~7/css/dbusmenu04~0.4/gdk30~3.0/gdkpixbuf20~2.0/gdkx1130~3.0/gio20~2.0/girepository20~2.0/gjs/glib20~2.0/gobject20~2.0/graphene10~1.0/gsound10~1.0/gtk30~3.0/javascript/meta7~7/nm10~1.0/nma10~1.0/pango10~1.0/pangocairo10~1.0/st10~1.0/typescript/upowerglib10~1.0",
"hideDisabled": "1"
}
@mtwebster
mtwebster / xcursor theme tutorial
Created November 27, 2022 01:53 — forked from sole/xcursor theme tutorial
A lightly edited version of the xcursor theme tutorial by the_One at http://kde-look.org/content/show.php?content=11428
<---TUTORIAL FOR CREATING XCURSOR THEMES.--->
<---By ThEOnE @ kde-look--->
<---My_foros@yahoo.com.ar-->
_______________________________________________________________________________________
| |
| First of all, let me tell you that everything I know I've learned it by inspecting |
| some xcursor themes like jaguarx, and others. |
#! /bin/sh
PATH=/usr/sbin:/usr/bin:/sbin:/bin
NAME=live
# Exit if system was not booted by live
grep -qs boot=live /proc/cmdline || exit 0
# Exit if the system was booted from an ISO image rather than a physical CD
grep -qs find_iso= /proc/cmdline && exit 0
#!/usr/bin/python3
import json
import sys
import subprocess
import re
import sysconfig
import shutil
if len(sys.argv) < 2:
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Goa = imports.gi.Goa;
const Lang = imports.lang;
const St = imports.gi.St;
const Signals = imports.signals;
const Pango = imports.gi.Pango;
#!/usr/bin/python3
import gi
gi.require_version('Gio', '2.0')
from gi.repository import Gio
import os
TERMINATE_STR = "terminate\tterminate:ctrl_alt_bksp"
try:
@mtwebster
mtwebster / x
Created December 29, 2020 03:02
diff --git a/libxapp/xapp-gtk3-module.c b/libxapp/xapp-gtk3-module.c
index 99ac9e4..7eb5cc8 100644
--- a/libxapp/xapp-gtk3-module.c
+++ b/libxapp/xapp-gtk3-module.c
@@ -19,6 +19,7 @@
void gtk_module_init (gint *argc, gchar ***argv[]);
static void (* original_sidebar_constructed) (GObject *object);
+static void (* original_window_constructed) (GObject *object);
diff --git a/Makefile.am b/Makefile.am
index a68c63f..5530d57 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,5 @@
-pkgdatadir = $(datadir)/mutter-$(MUFFIN_PLUGIN_API_VERSION)
-pkglibdir = $(libdir)/mutter-$(MUFFIN_PLUGIN_API_VERSION)
+pkgdatadir = $(datadir)/muffin-$(MUFFIN_PLUGIN_API_VERSION)
+pkglibdir = $(libdir)/muffin-$(MUFFIN_PLUGIN_API_VERSION)