Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

jiriklepl/light-polybar-windows

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polywinspolywins

Script: polywins

APolybar script forked frompolybar-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 themultihead branch.

Configuration

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

SettingDescription
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=15Maximum 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=20Maximum window name length after which it will be truncated.
resize_increment=30Size in pixel of resizing steps for the mouse wheel functions.
wm_border_width=0Setting this variable might make resizing positions more accurate.

Installing

  • Installwmctrl, it should be packaged by most distros. For example on Ubuntu and Debian-based distros,sudo apt install wmctrl
  • Savepolywins.sh, for example to~/.config/polybar/scripts.
  • Make the script executable withchmod +x ~/.config/polybar/scripts/polywins.sh.
  • Savepolywins.awk, for example to~/.config/polybar/scripts.
  • Make the awk script executable withchmod +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/scriptexec = ~/.config/polybar/scripts/polywins.sh 2>/dev/nulllabel-padding = 1tail = 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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Awk94.6%
  • Shell5.4%

[8]ページ先頭

©2009-2025 Movatter.jp