Giter Site home page Giter Site logo

tiny_polybar's Introduction

Tiny_polybar

A tiny polybar for hiding tray icons and modules that are rarely used.

Tiny_bar

Installation

Clone this repository and move the files to your polybar config location.

Example:

git clone https://github.com/phon31x/Tiny_polybar
cd Tiny_polybar
cp tinybar.sh killbar.sh ~/.config/polybar

Usage example

  1. Change a polybar name in tinybar.sh
polybar tray (name of your bar here instead of tray) >> /tmp/polybar2.log 2>&1
  1. Create a second bar in your polybar config. Example of a bar:
[bar/tray]

monitor-strict = false

width = 20

height = 25

offset-x = 98% ######### offset values only dtermine the position of bar in the screen set it accordingly to your need

offset-y = 35   


override-redirect = true  ############### to make offset vales to work override-direct value must be true

fixed-center = true

background = ${colors.modules-right-background}

;foreground = ${colors.foreground}

radius = 8

line-size = 0

line-color = #f00


padding-left = 0

padding-right = 1

module-margin-left = 0

module-margin-right = 0


modules-right =  sep

tray-position = right

tray-detached = false

tray-offset-x = 0

tray-offset-y = 0

tray-padding = 1

tray-maxsize = 20

tray-scale = 1.0

tray-background = ${colors.background}
  1. Create a module to access the bar
[module/arrow]

type = custom/script

exec = echo "๏ƒ—"

click-left = bash $HOME/.config/polybar/tinybar.sh

click-right = bash $HOME/.config/polybar/killbar.sh
  1. Click left (tinybar) is used to launch the bar. Click right (kill bar) is used to close tiny bar.

  • Tinybar.sh a script to launch the bar.
  • Killbar.sh a script to kill the bar.
  • The kill script only kill the newly created bar not the whole bar.

tiny_polybar's People

Contributors

phon31x avatar pietryszak 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.