Git Product home page Git Product logo

holo-layer's Introduction

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
  1. Download this repository using git clone, and replace the load-path in the configuration below
  2. Add the following code to your configuration file ~/.emacs:
(add-to-list 'load-path "<path-to-holo-layer>")
(require 'holo-layer)
(holo-layer-enable)

Note:

  • For MacOS, please use window mode
  • If you are using Conda or other virtual environments, please first set holo-layer-python-command to the corresponding Python path.

Demo

Jelly Cursor Animation

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

  • holo-layer-enable-cursor-animation: Whether to enable the animation of the jelly cursor, it is off by default
  • holo-layer-enable-place-info: Display information at the cursor in the upper right corner of the screen, such as the translation of the word at the cursor, it is off by default
  • holo-layer-enable-window-border: Display window border, it is off by default
  • holo-layer-hide-mode-line: Enable this option to hide the mode-line, it is off by default
  • holo-layer-active-window-color: The border color of the active window, only displayed when there are more than two windows
  • holo-layer-inactive-window-color: The border color of the inactive window, only displayed when there are more than two windows
  • holo-layer-cursor-color: The color of the jelly cursor, by default it matches the background color of the Emacs cursor
  • holo-layer-cursor-alpha: The Alpha transparency of the jelly cursor, the default is 200, completely transparent is 0, opaque is 255
  • holo-layer-cursor-animation-interval: The interval time of the jelly cursor animation, the default is 10ms, don't worry about the time interval, because the animation effect is drawn with PyQt multithreading, it does not affect Emacs performance
  • holo-layer-cursor-block-commands: If you don't want to display cursor animation in some cases, you can add the command string to this list, for example, after self-insert-command is added to the list, inserting characters will not produce animation
  • holo-layer-place-info-text-color: The text color of the information at the cursor, the default is the foreground color of default
  • holo-layer-place-info-background-color: The background color of the information at the cursor, the default is the background color of default
  • holo-layer-place-info-font-size: The font size of the information at the cursor, the default is 18
  • holo-layer-window-number-color: The color of the window jump number, use the holo-layer-jump-to-window command to jump windows
  • holo-layer-window-number-font-size: The font size of the window jump number, the default is 40
  • holo-layer-sort-tab-ui: Whether to show sort-tab ui, default is nil, need install sort-tab first
  • holo-layer-sort-tab-font-size: The font size of sort-tab

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)

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

holo-layer's People

Contributors

manateelazycat avatar kongds avatar mumu-lhl avatar a7r7 avatar hawnzug avatar xhcoding avatar allthelife avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.