G-dH / custom-hot-corners-extended

A GNOME Shell Extension that allows you to give a function to any corner or edge of your monitors and expand your keyboard capabilities.
GNU General Public License v3.0
133 stars 19 forks source link
gjs gnome gnome-shell-extension

Custom Hot Corners - Extended

A GNOME Shell Extension which allows you to control and navigate Gnome Shell environment through the corners and edges of your monitors. But not just that. It also adds many unique actions with custom keyboard shortcuts, so even if you don't like hot corners, this extension may improve your workflow.

This extension is based on the original Custom Hot Corners extension, but not much of the original code remains.

Features:

Video references:

CHC-E on Linux Tex channel

CHC-E on The Linux Experiment channel

Changelog

CHANGELOG.md

DND Window Thumbnails

Window thumbnails are scaled-down window clones that can be used to monitor windows not currently visible on the screen. Default position for the thumbnail is bottom right corner of the current monitor. You can create as many clones as you want and place them anywhere on the screen. Each thumbnail can be independently resized, you can adjust its opacity, even change its source window. When the thumbnail's source window close, thumbnail is removed too.

Control Action
Double click activate source window
Primary cLick toggle scroll wheel function (resize / source)
Scroll wheel resize or switch source window
Ctrl + Scroll wheel switch source window or resize
Secondary click show full-size window preview and toggle sowing preview on mouse hover
Shift + Scroll wheel change thumbnail opacity

Extension configuration window

Installation

You can install this extension in several ways.

Installation from extensions.gnome.org

The easiest way to install Custom Hot Corners - Extended: go to extensions.gnome.org and toggle the switch. This installation also gives you automatic updates in the future.

Installation from the latest Github release

Download the latest release archive using following command:

wget https://github.com/G-dH/custom-hot-corners-extended/releases/latest/download/custom-hot-corners-extended@G-dH.github.com.zip

Install the extension (--force switch needs to be used only if some version of the extension is already installed):

gnome-extensions install --force custom-hot-corners-extended@G-dH.github.com.zip

Installation from source

If you want to test the latest version from the Github repository (which is usually working well enough as it's the code I'm currently using on my own system), you can use following guide.

Make sure you have installed packages providing following commands: glib-compile-resources, glib-compile-schemas, git

GNOME 45+
git clone https://github.com/G-dH/custom-hot-corners-extended.git
cd custom-hot-corners-extended
make install
GMONE 3.36 - 44
git clone https://github.com/G-dH/custom-hot-corners-extended.git
cd custom-hot-corners-extended
git checkout gnome-3.36-44
make install

Installation from AUR on Arch based distributions

Custom Hot Corners - Extended has also AUR repository maintainer (but I know nothing more about it): https://aur.archlinux.org/packages/gnome-shell-extension-custom-hot-corners-extended

Enable installed extension

After installation you need to enable the extension. Only direct installation from extension.gnome.org loads the code and enables the extension immediately.

Contribution

Contributions are welcome and I will try my best to answer quickly to all suggestions.

Translations

You can contribute with translation to your language, source .pot file can be generated using

make pot

command within the cloned git repository, then you can use Poedit application for translation and export to .po file.

Buy me a coffee

If you like my work and want to keep me motivated, you can also buy me a coffee: buymeacoffee.com/georgdh

Credits

During development of this extension I was inspired by many extensions and other developers, I'll try to name the main contributors to my code: