GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jiriklepl/light-polybar-windows: A fast polybar script that shows opened windows on your current display. Click on window titles to switch between windows.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

82 Commits
82 Commits

Folders and files

NameName
Last commit message
Last commit date
screenshots
screenshots
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
polywins.awk
polywins.awk
 
 
polywins.sh
polywins.sh
 
 

Repository files navigation

polywins polywins

Script: polywins

A Polybar script forked from polybar-windows with additional features.

  • Left click: Focus window and raise it if it is minimized. If the window is already focused, minimize it.
  • Middle click: Close the window.
  • Right click: Select a rectangle for the window to be re-positioned to.
  • Mouse wheel: Resize the window incrementally.

For a very limited multihead implementation, check out the multihead branch.

Configuration

The following variables at the top of the file may be customized:

Setting Description
active_text_color="#250F0B" The color of the name of the active window.
active_underline="true" Whether to underline the active window.
active_underline_color="#E7A09E" The color of the active window underline.
inactive_text_color="#503631" The color of the name of inactive windows.
inactive_underline="false" Whether to underline inactive windows.
inactive_underline_color="#F1EF7D" The color of inactive window underline.
separator="·" Character displayed between window names.
display="window_class" Choose whether to display window_title, window_class or window_classname.
case="normal" Options: normal, upper, lower.
max_windows=15 Maximum number of displayed windows. Useful if you have limited space. Will show how many windows are hidden. (e.g. +3)
add_spaces="true" Whether to add a space to the side of each window name.
char_limit=20 Maximum window name length after which it will be truncated.
resize_increment=30 Size in pixel of resizing steps for the mouse wheel functions.
wm_border_width=0 Setting this variable might make resizing positions more accurate.

Installing

  • Install wmctrl, it should be packaged by most distros. For example on Ubuntu and Debian-based distros, sudo apt install wmctrl
  • Save polywins.sh, for example to ~/.config/polybar/scripts.
  • Make the script executable with chmod +x ~/.config/polybar/scripts/polywins.sh.
  • Save polywins.awk, for example to ~/.config/polybar/scripts.
  • Make the awk script executable with chmod +x ~/.config/polybar/scripts/polywins.awk.
  • Change any setting you wish at the top of the script.
  • Add the following module to your polybar config:
[module/polywins]
type = custom/script
exec = ~/.config/polybar/scripts/polywins.sh 2>/dev/null
label-padding = 1
tail = true
  • Add the module to one of your bars, for example like so:
[bar/your_bar_name]
modules-center = polywins

Dependencies

  • xprop
  • wmctrl

About

A fast polybar script that shows opened windows on your current display. Click on window titles to switch between windows.

Topics

polybarpolybar-scripts

Resources

Readme
MIT license
Activity

Stars

9 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.