Giter VIP home page Giter VIP logo

polybar_autohide's Introduction

PolyBar_Autohide

Polybar is a beautiful bar but in some cases for example if you have a small screen it might take too much space so I've made a simple script that hide Polybar when there are windows in the current workspace, the script shows the bar if you move the cursor where the bar is or if you don't have any windows in the workspace that you're using.

How to Install

  1. Clone the git repo in your home:

    git clone https://github.com/arkeane/polybar_autohide.git ~/polybar_autohide
    
    • Install nedeed software: polybar xdotool xdo
  2. Move to the script directory cd ~/polybar_autohide

  3. Make adjustments to the script

    • You can adjust polybar_height definition to change sensibility.
    • You can also change paths but be carefull!!!
  4. Compile the script make

  5. Autostart the script

    • Add the autohide file to your autostart system
      • If you use i3wm add this to your config file, change $USER with your username:
        exec --no-startup-id /home/$USER/polybar_autohide/polybar-autohide
        
      • If not just use your usual autostart system.

Changes from upstream

  • Removed hotkey support to avoid file I/O, since I'm not using it anyway
  • Added some delays for mouse movements and window presence
  • Tried to minimize calls to external calls by keeping more state in the script, to keep the script lightweight

Known Problems (working on, but upstream not by me)

  • Dual monitor setup works but in a strange way
  • Trying to convert all the shell commands to c++ syntax to avoid external programs
  • Multiple bars support

If you want to support me (upstream person) PayPalMe

polybar_autohide's People

Contributors

arkeane avatar davidwzhao 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.