manateelazycat / holo-layer

HoloLayer is a multimedia layer plugin designed specifically for Emacs
GNU General Public License v3.0
123 stars 18 forks source link

English | 简体中文

Introduction

HoloLayer is a multimedia layer plugin specifically designed for Emacs. It is developed based on PyQt, aiming to significantly enhance the visual experience of Emacs. The plugin provides a series of visual enhancement features, including modern window borders, window jump prompts, cursor animations, window screenshots, transparent floating terminals, and real-time dictionaries, etc. These features not only make the Emacs interface look more modern, but also ensure that the performance of Emacs will not be affected.

Installation

  1. Install Emacs 28 or above
  2. Install Python dependencies:
    • Linux: pip3 install epc sexpdata six pynput inflect PyQt6 PyQt6-Qt6 PyQt6-sip (For ArchLinux, please use pacman to install PyQt6)
    • Windows: pip3 install epc sexpdata six pynput inflect pygetwindow PyQt6 PyQt6-Qt6 PyQt6-sip
    • macOS: pip3 install epc sexpdata six pynput inflect pyobjc PyQt6 PyQt6-Qt6 PyQt6-sip
  3. Download this repository using git clone, and replace the load-path in the configuration below
  4. Add the following code to your configuration file ~/.emacs:
(add-to-list 'load-path "<path-to-holo-layer>")
(require 'holo-layer)
(holo-layer-enable)

If the holo-layer hasn't started normally, please ensure that the holo-layer-python-command path is consistent with your system's which python path.

Note:

Demo

Jelly Cursor Animation

Type Animation

Indent Rainbow

Modern Tab Line

Need install sort-tab first, then enable option holo-layer-sort-tab-ui

All icons are placed under the subdirectory icon_cache. You're welcome to contribute icons that you think look good. Icons can be found from websites such as https://devicon.dev or https://icons8.com/icons/set/programming-language.

To modify the color of the svg icon, just add the style="fill: hex-color" attribute under path.

Options

Hyprland

Add the following configuration when using Hyprland:

windowrulev2 = float,title:(holo_layer.py)
windowrulev2 = nofocus,title:(holo_layer.py)
windowrulev2 = noblur,title:(holo_layer.py)
windowrulev2 = fakefullscreen,title:(holo_layer.py)

Feedback Issues

For other issues, please use the command emacs -q and only add holo-layer configuration for a comparison test. If emacs -q can work normally, please check your personal configuration file.

If the problem still exists under the emacs -q environment, please go here to provide feedback, and attach the content of the *holo-layer* window to submit an issue to us. There are many clues in there that can help us troubleshoot the problem.

If you encounter a crash, please use the following method to collect crash information:

  1. First install gdb and turn on the option (setq holo-layer-enable-debug t)
  2. Use the command holo-layer-stop-process to stop the holo-layer process
  3. Reopen holo-layer, and send the content of *holo-layer* at the next crash

Contributors