Polybar Windows Script

polybar-windows

I made a simple polybar script to work with opened windows and switch between them.

https://github.com/aroma1994/polybar-windows

This script shows if there’re opened (and minimized too) windows on your current display. I don’t made any decorations (because I think anyone can make his own decoration style like changing text to icons and other things) and only your current active window is marked by #. Of course it’s clickable! You can switch between your programs by clicking to their titles in polybar.

I’ll be glad if you’ll test it by you own. Thank you!

How it looks like (sublime_text is minimized and chromium is on another display):

2 Likes

Nicee @aroma1994 . Thx for sharing.

Thank you! <3

As you can see I moved this to it’s own thread. Please don’t tack on to old threads, especially when they aren’t related.

Sorry for that!

No stress, it just makes stuff easier to find when searching if it has it’s own thread.

1 Like

If you’d like to play around with mine… here’s a copy of the script.

   #! /bin/sh
;==========================================================
;
;
;   bspwm Polybar
;
;
;   To learn more about how to configure Polybar
;   go to https://github.com/polybar/polybar
;	as well as https://arcolinux.info
;	and http:eirenicon.org
;
;   The README contains a lot of information
;
;   Colors are set to react and change based upon PyWal
;
;   To learn more about how to configure Polybar
;   go to https://github.com/jaagr/polybar 
;
;   These README sites contain useful information
;	Themes : https://github.com/jaagr/dots/tree/master/.local/etc/themer/themes
;   https://github.com/jaagr/polybar/wiki/
;   https://github.com/jaagr/polybar/wiki/Configuration
;   https://github.com/jaagr/polybar/wiki/Formatting
;
;=====================================================

[global/wm]
margin-top = 0
margin-bottom = 0

[settings]
throttle-output = 5
throttle-output-for = 10
throttle-input-for = 30
screenchange-reload = true
compositing-background = over
compositing-foreground = over
compositing-overline = over
compositing-underline = over
compositing-border = over

[colors]
############  PyWal & Default Color Settings ############ 
;background = ${xrdb:color0:#7F000000}
background = #80000000
background-alt = ${xrdb:color1:#7F000000}
foreground = ${xrdb:color6:#B5B5B5}
foreground-alt = ${xrdb:color4:#2D66C9}
underline = ${xrdb:color7:#BFBFBF}
primary = ${xrdb:color2:#7F7F7F}
secondary = ${xrdb:color3:#bfbfbf}
alert = ${xrdb:color5:#FF0000}
occupied = ${xrdb:color4:#C9972D}
date = ${xrdb:color1:#BFBFBF}

############  Left-Bar-BSPWM  ############
[bar/leftbar-bspwm]
monitor = ${env:MONITOR}
;monitor-fallback = HDMI1
width = 24%
height = 35
offset-x = 0.5%
offset-y = 0.25%
radius = 3.0
fixed-center = true
bottom = false
separator = |
line-size = 2

background = #80000000
foreground = ${colors.foreground}

wm-restack = bspwm
override-redirect = true

; Enable support for inter-process messaging
enable-ipc = true

border-size = 0

padding-left = 2
padding-right = 0

module-margin-left = 3
module-margin-right = 3

font-0 = "Noto Sans:size=11;0"
font-1 = "FontAwesome:size=11;3"
font-2 = "Iosevka:size=15;4"
font-3 = "Bitstream Vera Sans:style=Roman:size=15;4"

modules-left = rofi bspwm

scroll-up = bspwm-desknext
scroll-down = bspwm-deskprev

############  Middle-Bar-BSPWM  ############
[bar/mainbar-bspwm]
monitor = ${env:MONITOR}
;monitor-fallback = HDMI1
width = 20%
height = 35
offset-x = 30%
offset-y = 0.25%
radius = 3.0
fixed-center = true
bottom = false
line-size = 2
separator = %{F#54F358}%{F-}

background = #80000000
foreground = ${colors.foreground}

wm-restack = bspwm
override-redirect = true

; Enable support for inter-process messaging
enable-ipc = true

border-size = 0

padding-left = 0
padding-right = 0

module-margin-left = 3
module-margin-right = 3

font-0 = "Noto Sans:size=11;0"
font-1 = "FontAwesome:size=11;3"
font-2 = "Iosevka:size=15;4"
font-3 = "Bitstream Vera Sans:style=Roman:size=15;4"

modules-center =  

############  Right-Bar-BSPWM  ############
[bar/rightbar-bspwm]
monitor = ${env:MONITOR}
;monitor-fallback = HDMI1
width = 35.5%
height = 35
offset-x = 64%
offset-y = 0.25%
radius = 3.0
fixed-center = false
bottom = false
;separator = |
line-size = 2

background = #80000000
foreground = ${colors.foreground}

wm-restack = bspwm
override-redirect = true

; Enable support for inter-process messaging
enable-ipc = true

border-size = 0

padding-left = 3
padding-right = 3

module-margin-left = 3
module-margin-right = 3

font-0 = "Noto Sans:size=11;0"
font-1 = "FontAwesome:size=11;3"
font-2 = "Iosevka:size=15;4"
font-3 = "Bitstream Vera Sans:style=Roman:size=15;4"

modules-right = memory2 temperature2 cpu1 fan-speed battery pavolume xbacklight
;nm-launcher wlan popup-calendar 

;tray-detached = false
;tray-transparent = true
;tray-offset-x = 0
;tray-offset-y = 0
;tray-padding = 2
;tray-maxsize = 28
;tray-scale = 1.0
;tray-position = right
;tray-background = ${colors.background}
;tray-background = #FF000000
;tray-border-size = 1
;tray-border-color = #ffffff

############                  MAINBAR-BSPWM-EXTRA                   ############
[bar/mainbar-bspwm-extra]
monitor = ${env:MONITOR}
;monitor-fallback = HDMI1
width = 100%
height = 30
radius = 0.0
fixed-center = true
bottom = true
separator = |

background = ${colors.background}
foreground = ${colors.foreground}

line-size = 2
line-color = #f00

wm-restack = bspwm
override-redirect = true

; Enable support for inter-process messaging
enable-ipc = true

border-size = 0

padding-left = 0
padding-right = 1

module-margin-left = 3
module-margin-right = 3

font-0 = "Noto Sans:size=10;0"
font-1 = "FontAwesome:size=13;0"
font-2 = "Noto Sans:size=10;0"
font-3 = "Noto Sans Mono:size=10;0"

modules-left = load-average
modules-center = networkspeeddown networkspeedup
modules-right = filesystem

;tray-detached = false
;tray-offset-x = 0
;tray-offset-y = 0
;tray-padding = 2
;tray-maxsize = 28
;tray-scale = 1.0
;tray-position = right
;tray-background = ${colors.background}

scroll-up = bspwm-desknext
scroll-down = bspwm-deskprev

############                       MODULE BSPWM                     ############
[module/bspwm]
type = internal/bspwm

enable-click = true
enable-scroll = true
reverse-scroll = true
pin-workspaces = true


; Note: the label needs to correspond with the bspwm workspace name
ws-icon-0 = I; 
ws-icon-1 = II; 
ws-icon-2 = III; 
ws-icon-3 = IV;
ws-icon-4 = V; 
ws-icon-5 = VI; 
ws-icon-6 = VII;
ws-icon-7 = VIII;
ws-icon-8 = IX; 
ws-icon-9 = X;
;ws-icon-default = ♟

format = <label-state> <label-mode>

label-focused = %icon%
label-focused-background = ${colors.background}
label-focused-underline = ${colors.foreground-alt}
label-focused-padding = 2
label-focused-foreground = ${colors.foreground-alt}

label-occupied = %icon%
label-occupied-padding = 2
label-occupied-background = ${colors.background-alt}
label-occupied-foreground = ${colors.occupied}

label-urgent = %icon%
label-urgent-padding = 2

label-empty = %icon%
label-empty-foreground = ${colors.primary}
label-empty-padding = 2
label-empty-background = ${colors.background}

label-monocle = "  "
label-monocle-foreground = ${colors.foreground}
label-tiled = "  "
label-tiled-foreground = ${colors.foreground}
label-fullscreen = "  "
label-fullscreen-foreground = ${colors.foreground}
label-floating = "  "
label-floating-foreground = ${colors.foreground}
label-pseudotiled = "  "
label-pseudotiled-foreground = ${colors.foreground}
label-locked = "  "
label-locked-foreground = ${colors.foreground}
label-sticky = "  "
label-sticky-foreground = ${colors.foreground}
label-private =  "     "
label-private-foreground = ${colors.foreground}

format-foreground = ${colors.foreground}
format-background = ${colors.background}


############                     Other MODULES                      ############
################################################################################
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-prefix-foreground = #7D49B6
format-prefix-underline = #7D49B6
format-underline = #7D49B6

################################################################################
[module/backlight]
type = internal/backlight

; Use the following command to list available cards:
; $ ls -1 /sys/class/backlight/
card = intel_backlight

; Create scroll handlers used to set the backlight value
; Default: true
enable-scroll = true

; Available tags:
;   <label> (default)
;   <ramp>
;   <bar>
format = <label><ramp>
format-foreground = ${colors.foreground}
format-background = ${colors.background}

; Available tokens:
;   %percentage% (default)
label = %percentage%%

; Only applies if <ramp> is used
ramp-0 = 🌕
ramp-1 = 🌔
ramp-2 = 🌓
ramp-3 = 🌒
ramp-4 = 🌑

; Only applies if <bar> is used
bar-width = 10
bar-indicator = |
bar-fill = ─
bar-empty = ─

################################################################################
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC0
full-at = 100

format-charging = <animation-charging> <label-charging>
label-charging =  %percentage%%
format-charging-foreground = ${colors.foreground}
format-charging-background = ${colors.background}
format-charging-underline = #C9C22D

format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%%
format-discharging-underline = #92C92D
format-discharging-foreground = #92C92D
format-discharging-background = ${colors.background}

format-full-prefix = " "
format-full-prefix-foreground = #92C92D
format-full-underline = #92C92D
format-foreground = #92C92D
format-background = ${colors.background}

ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 =  
ramp-capacity-foreground = #92C92D

animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-foreground = #C9C22D
animation-charging-framerate = 250

################################################################################
[module/brightness_shell]
type=custom/script

;format-foreground = ${colors.foreground}
;format-foreground = #FFA500
format-background = ${colors.background}
exec=~/.config/polybar/scripts/brightness_shell.sh
interval=1

################################################################################
[module/compton]
type = custom/script
exec = ~/.config/polybar/scripts/compton.sh
click-left = ~/.config/polybar/scripts/compton-toggle.sh
interval = 5
format-foreground = ${colors.foreground}
format-background = ${colors.background}

################################################################################
[module/cpu1]
type = internal/cpu
; Seconds to sleep between updates
; Default: 1
interval = 1
format-foreground = ${colors.foreground}
format-background = ${colors.background}
;   
format-prefix = " "
format-prefix-foreground = #A58657
format-underline = #A58657

; Available tags:
;   <label> (default)
;   <bar-load>
;   <ramp-load>
;   <ramp-coreload>
format = <label>

format-padding = 2

; Available tokens:
;   %percentage% (default) - total cpu load
;   %percentage-cores% - load percentage for each core
;   %percentage-core[1-9]% - load percentage for specific core
;label-font = 2
label = CPU %percentage:%%
ramp-coreload-0 = ▁
ramp-coreload-0-font = 3
ramp-coreload-0-foreground = #aaff77
ramp-coreload-1 = ▂
ramp-coreload-1-font = 3
ramp-coreload-1-foreground = #aaff77
ramp-coreload-2 = ▃
ramp-coreload-2-font = 3
ramp-coreload-2-foreground = #aaff77
ramp-coreload-3 = ▄
ramp-coreload-3-font = 3
ramp-coreload-3-foreground = #aaff77
ramp-coreload-4 = ▅
ramp-coreload-4-font = 3
ramp-coreload-4-foreground = #fba922
ramp-coreload-5 = ▆
ramp-coreload-5-font = 3
ramp-coreload-5-foreground = #fba922
ramp-coreload-6 = ▇
ramp-coreload-6-font = 3
ramp-coreload-6-foreground = #ff5555
ramp-coreload-7 = █
ramp-coreload-7-font = 3
ramp-coreload-7-foreground = #ff5555

################################################################################
[module/cpu2]
type = internal/cpu
; Seconds to sleep between updates
; Default: 1
interval = 1
format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-prefix = "  "
format-prefix-foreground = #A58657
format-underline = #A58657

label-font = 3

; Available tags:
;   <label> (default)
;   <bar-load>
;   <ramp-load>
;   <ramp-coreload>
format = <label>

format-padding = 2

; Available tokens:
;   %percentage% (default) - total cpu load
;   %percentage-cores% - load percentage for each core
;   %percentage-core[1-9]% - load percentage for specific core
label = CPU %percentage:3%%

################################################################################
[module/fan-speed]
type = custom/script
format-prefix = " "
format-prefix-foreground = ${xrdb:color3:#A52A2A}
format-underline = ${xrdb:color3:#A52A2A}
exec = ~/.config/polybar/scripts/fan-speed.sh
interval = 5

################################################################################
[module/hlwm-workspaces]
type = custom/script
exec = ~/.config/polybar/scripts/hlwm-workspaces.sh
tail = true
scroll-up = herbstclient use_index -1 --skip-visible
scroll-down = herbstclient use_index +1 --skip-visible

################################################################################
[module/jgmenu]
type = custom/script
interval = 120
;format-prefix = "  "
;format-prefix-foreground = ${xrdb:color7:#A52A2A}
exec = echo "Menu"
click-left = "jgmenu_run >/dev/null 2>&1 &"
format-foreground = ${colors.foreground}
format-background = ${colors.background}

################################################################################
[module/kernel]
type = custom/script
exec = uname -r
tail = false
interval = 1024

format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-prefix = "  "
format-prefix-foreground = #738678
format-underline = #738678
format-overline = #738678

################################################################################
[module/load-average]
type = custom/script
exec = uptime | grep -ohe 'load average[s:][: ].*' | awk '{ print $3" "$4" "$5"," }' | sed 's/,//g'
interval = 100

;HOW TO SET IT MINIMAL 10 CHARACTERS - HIDDEN BEHIND SYSTEM ICONS
;label = %output%
label = %output:10%

format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-prefix = "  "
format-prefix-foreground = #62FF00
format-underline = #62FF00

################################################################################
[module/memory1]
type = internal/memory
interval = 1
; Available tokens:
;   %percentage_used% (default)
;   %percentage_free%
;   %gb_used%
;   %gb_free%
;   %gb_total%
;   %mb_used%
;   %mb_free%
;   %mb_total%
label = %percentage_used%%
bar-used-indicator =
bar-used-width = 10
bar-used-foreground-0 = #3384d0
bar-used-fill = 
bar-used-empty = 
bar-used-empty-foreground = #ffffff

format = <label> <bar-used>
format-prefix = "  "
format-prefix-foreground = #C46B22
format-underline = #C46B22
format-foreground = ${colors.foreground}
format-background = ${colors.background}

################################################################################
[module/memory2]
type = internal/memory
interval = 1
; Available tokens:
;   %percentage_used% (default)
;   %percentage_free%
;   %gb_used%
;   %gb_free%
;   %gb_total%
;   %mb_used%
;   %mb_free%
;   %mb_total%
label = %percentage_used%%

format = Mem <label>
format-prefix = " "
format-prefix-foreground = #C9632D
format-underline = #C9632D
format-foreground = ${colors.foreground}
format-background = ${colors.background}

################################################################################
[module/memory3]
type = internal/memory
interval = 1
; Available tokens:
;   %percentage_used% (default)
;   %percentage_free%
;   %gb_used%
;   %gb_free%
;   %gb_total%
;   %mb_used%
;   %mb_free%
;   %mb_total%
label = %gb_used%/%gb_free%

format = Mem <label>
format-prefix = "  "
format-prefix-foreground = #C9632D
format-underline = #C46B22
format-foreground = ${colors.foreground}
format-background = ${colors.background}

################################################################################
[module/mpd]
type = internal/mpd
;format-online =  "<label-song>   <icon-prev>  <icon-stop>  <toggle>  <icon-next>"
format-online =  "<label-song>  <bar-progress>"
;format-online =  "<label-song>  <bar-progress> <icon-prev>  <icon-stop>  <toggle>  <icon-next>"
icon-prev = 
icon-stop = 
icon-play = 
icon-pause = 
icon-next = 
label-song-maxlen = 40
label-song-ellipsis = true
bar-progress-width = 10
bar-progress-indicator = 
bar-progress-fill = 
bar-progress-empty = 
bar-progress-fill-foreground = #ff0
bar-progress-fill-background = ${colors.background}
bar-progress-indicator-foreground = ${colors.foreground}
format-online-foreground = ${colors.foreground}
format-online-background = ${colors.background}

################################################################################
[module/networkspeedup]
type = internal/network
;interface = wlp3s0
;interface = enp14s0
interface = enp0s31f6
;interface = enp4s0
label-connected = "%upspeed:7%"
format-connected = <label-connected>
format-connected-prefix = ""
format-connected-prefix-foreground = #FE522C
format-connected-foreground = ${colors.foreground}
format-connected-background = ${colors.background}
format-connected-underline = #62FF00

################################################################################
[module/networkspeeddown]
type = internal/network
;interface = wlp3s0
;interface = enp14s0
interface = enp0s31f6
;interface = enp4s0
label-connected = "%downspeed:7%"
format-connected = <label-connected>
format-connected-prefix = ""
format-connected-prefix-foreground = #3EC13F
format-connected-foreground = ${colors.foreground}
format-connected-background = ${colors.background}
format-connected-underline = #62FF00

################################################################################
[module/pavolume]
type = custom/script
tail = true
label = %output%
exec = ~/.config/polybar/scripts/pavolume.sh --listen
click-right = exec pavucontrol
click-left = ~/.config/polybar/scripts/pavolume.sh --togmute
scroll-up = ~/.config/polybar/scripts/pavolume.sh --up
scroll-down = ~/.config/polybar/scripts/pavolume.sh --down
format-underline = #1E90FF
format-foreground = ${colors.foreground}
format-background = ${colors.background}

################################################################################
[module/popup-calendar]
format-prefix = " "
format-foreground = ${colors.foreground-alt}
format-background = ${colors.background}
format-prefix-foreground = ${colors.foreground-alt}
format-underline = ${colors.date}
;format-overline = ${colors.date}
type = custom/script
exec = ~/.config/polybar/scripts/calendar.sh
interval = 0
click-left = ~/.config/polybar/scripts/calendar.sh --popup

################################################################################
[module/pub-ip]
type = custom/script
exec = ~/.config/polybar/scripts/pub-ip.sh
interval = 100
format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-underline = #FFBB00
label = %output%
format-prefix = "  "
format-prefix-foreground = #FFBB00

################################################################################
[module/release]
type = custom/script
exec = (lsb_release -d | awk {'print $2'} ;echo " "; lsb_release -r | awk {'print $2'}) | tr -d '\n'
interval = 6000

format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-prefix = "  "
format-prefix-foreground = #9B271E 
format-underline = #9B271E 

################################################################################
[module/rofi]
type = custom/script
interval = 120
format-prefix = "  "
format-prefix-foreground = #4A79C7
exec = echo "Menu"
click-left = "rofi -modi drun,window -show drun -show-icons -sidebar-mode -location 1 -yoffset 40 -xoffset 40 -width 360 &"
format-foreground = ${colors.foreground}
format-background = ${colors.background}

################################################################################
[module/sep]
; alternative separator
type = custom/text
content = 
content-foreground = ${colors.foreground}
content-background =  ${colors.background}
format-foreground = ${colors.foreground}
format-background = ${colors.background}

################################################################################
[module/temperature1]
type = internal/temperature
; Thermal zone to use
; To list all the zone types, run
; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
; Default: 0
thermal-zone = 0

; Full path of temperature sysfs path
; Use `sensors` to find preferred temperature source, then run
; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
; to find path to desired file
; Default reverts to thermal zone setting
hwmon-path = /sys/devices/virtual/thermal/thermal_zone5/hwmon1/temp1_input

warn-temperature = 70
format = <ramp> <label>
format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-underline = #BFBFBF
format-warn = <ramp> <label-warn>
format-warn-underline = #FF0000
label = %temperature%
label-warn =  %temperature%
label-warn-foreground = #FF0000

ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-3 = 
ramp-4 = 
ramp-5 = 
ramp-0-foreground =#0000FF
ramp-1-foreground =#00FFBB
ramp-2-foreground =#FFFF00
ramp-3-foreground =#FFA500
ramp-4-foreground =#FF7100
ramp-5-foreground =#FF0000

################################################################################
[module/temperature2]
type = custom/script
exec = ~/.config/polybar/scripts/tempcores.sh
interval = 2
format-padding = 1
format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-underline = #FFFF00
format-prefix-foreground = #C1B93E
label = %output:0:150:%

################################################################################
[module/updates-arch]
type = custom/script
exec = ~/.config/polybar/scripts/updates-arch.sh

################################################################################
[module/uptime]
type = custom/script
exec = uptime | awk -F, '{sub(".*up ",x,$1);print $1}'
interval = 100
label = Uptime : %output%

format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-prefix = " "
format-prefix-foreground = #C15D3E
format-underline = #C15D3E

################################################################################
[module/volume]
type = internal/volume
format-volume = "<label-volume>  <bar-volume>"

label-volume = " "
label-volume-foreground = #40ad4b
label-muted = muted

bar-volume-width = 10
bar-volume-foreground-0 = #40ad4b
bar-volume-foreground-1 = #40ad4b
bar-volume-foreground-2 = #40ad4b
bar-volume-foreground-3 = #40ad4b
bar-volume-foreground-4 = #40ad4b
bar-volume-foreground-5 = #40ad4b
bar-volume-foreground-6 = #40ad4b
bar-volume-gradient = false
bar-volume-indicator = 
bar-volume-indicator-font = 2
bar-volume-fill = 
bar-volume-fill-font = 2
bar-volume-empty = 
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground}
format-volume-foreground = ${colors.foreground}
format-volume-background = ${colors.background}
format-muted-prefix = "  "
format-muted-prefix-foreground = "#ff0000"
format-muted-foreground = ${colors.foreground}
format-muted-background = ${colors.background}

################################################################################
[module/weather]
type = custom/script
interval = 10
format = <label>
format-prefix = " "
format-prefix-foreground = #3EC13F
format-underline = #3EC13F
format-foreground = ${colors.foreground}
format-background = ${colors.background}
exec = python -u ~/.config/polybar/scripts/weather.py
tail = true

#################################################################################
[module/wired-network]
type = internal/network
interface = enp4s0
;interface = enp14s0
interval = 3.0

; Available tokens:
;   %ifname%    [wireless+wired]
;   %local_ip%  [wireless+wired]
;   %essid%     [wireless]
;   %signal%    [wireless]
;   %upspeed%   [wireless+wired]
;   %downspeed% [wireless+wired]
;   %linkspeed% [wired]
; Default: %ifname% %local_ip%
label-connected =  %ifname%
label-disconnected = %ifname% disconnected

format-connected-foreground = ${colors.foreground}
format-connected-background = ${colors.background}
format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = #55aa55
format-connected-prefix-background = ${colors.background}

format-disconnected = <label-disconnected>
format-disconnected-underline = ${colors.alert}
label-disconnected-foreground = ${colors.foreground}

################################################################################
[module/nm-launcher]
type = custom/text
format-underline = ${colors.date}
content = ""
format-content-foreground = ${xrdb:color4:#FFA500}
format-content-background = ${colors.background}
format-prefix-foreground = ${xrdb:color4:#FFA500}
click-left = cmst

################################################################################
[module/wlan]
type = internal/network
interface = wlan0
interval = 3.0

;format-connected-prefix = "  "
;format-connected-prefix-foreground = ${xrdb:color4:#FFA500}
;format-connected-prefix-background = ${colors.background}
format-prefix-foreground = ${xrdb:color4:#FFA500}
format-connected-underline = ${xrdb:color4:#FFA500}
;label-connected-foreground = ${colors.foreground}
;label-connected =%essid% %{A1:nm-connection-editor:}%{A1}
label-connected = %essid%
;label-connected = %essid% %{F#7F7F7F} %local_ip%
;format-connected = <label-connected> <ramp-signal>
; Only applies if <ramp-signal> is used
;ramp-signal-0 = 
;ramp-signal-1 = 
;ramp-signal-2 = 
;ramp-signal-3 = 
;ramp-signal-4 = 
;ramp-signal-5 = 
;ramp-signal-foreground = #BFBFBF

;Default: %ifname% %local_ip%
;label-connected = %essid% %downspeed:9%
;label-connected-foreground =  ${colors.foreground-alt}

;format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}

################################################################################
[module/xbacklight]
type = internal/xbacklight
; XRandR output to get get values from
; Default: the monitor defined for the running bar
;output = HDMI-1

; Create scroll handlers used to set the backlight value
; Default: true
enable-scroll = true
; Available tags:
;   <label> (default)
;   <ramp>
;   <bar>
format =  <bar> <label>    
format-foreground = ${colors.foreground}
format-underline = ${xrdb:color8:#FFA500}

; Available tokens:
;   %percentage% (default)
label = %percentage%%

; Only applies if <ramp> is used

ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-3 = 
ramp-4 = 

; Only applies if <bar> is used
bar-width = 5
bar-indicator = 
bar-fill = 
bar-empty = 

################################################################################
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock

format-prefix = " "
format-prefix-foreground = ${colors.foreground}
format-prefix-background = ${colors.background}
format-prefix-underline = #3ecfb2
format-foreground = ${colors.foreground}
format-background = ${colors.background}

label-layout = %layout%
label-layout-underline = #3ecfb2
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.background}
label-indicator-underline = ${colors.foreground}

################################################################################
[module/xwindow]
type = internal/xwindow

; Available tokens:
;   %title%
; Default: %title%
label = %title%
label-maxlen = 30

format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-underline = ${colors.background-alt}
format-overline = ${colors.background-alt}

###############################################################################

Thank you, but I’m sorry do you want to do something interesting with your config or you just need to install my script in your config? As I see on your screenshot (in april 2020 screenshots thread) you already have beautiful icon panel on your desktop (plank or smth).

Okay. I recently added decoration for an active window. Now it looks like:

polybar-windows-decorated

1 Like

I use polybar & tint2… no plank.

1 Like

Woah! Sorry, that’s very very cool! May I ask you for highlighting in your config a module with icons which I see on bottom-center on your screenshot https://ibb.co/g74j2XV?

Hi, I wonder why you put shebang in the top of your config ?

@aroma1994 The bottom of tat screen uses tint2…
@archus and as for shebang, I have always used it. It seems when I don’t have it there, I run into more problems. Probably that’s just me though. I know it’s not required. What can I say???

Here’s the tint2 code:

#---- Generated by tint2conf 7e63 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for 
# full documentation of the configuration options.
#-------------------------------------
# Gradients
#-------------------------------------
# Backgrounds
# Background 1: Active desktop name, Inactive desktop name, Launcher icon, Tooltip
rounded = 5
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #1e1e1e 40
border_color = #1e1e1e 40
background_color_hover = #888888 20
border_color_hover = #888888 20
background_color_pressed = #888888 20
border_color_pressed = #888888 20

# Background 2: Active taskbar
rounded = 0
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 75
background_color = #000000 31
border_color = #1e1e1e 0
background_color_hover = #000000 0
border_color_hover = #000000 0
background_color_pressed = #000000 0
border_color_pressed = #000000 0

# Background 3: Panel
rounded = 6
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #1b1111 29
border_color = #1e1e1e 0
background_color_hover = #000000 0
border_color_hover = #000000 0
background_color_pressed = #000000 0
border_color_pressed = #000000 0

#-------------------------------------
# Panel
panel_items = PTPSCP
panel_size = 99% 34
panel_margin = 5 5
panel_padding = 0 0 2
panel_background_id = 3
wm_menu = 0
panel_dock = 0
panel_pivot_struts = 0
panel_position = bottom center horizontal
panel_layer = bottom
panel_monitor = 1
panel_shrink = 0
autohide = 0
autohide_show_timeout = 0.2
autohide_hide_timeout = 1
autohide_height = 4
strut_policy = follow_size
panel_window_name = OB.tint2
disable_transparency = 0
mouse_effects = 0
font_shadow = 0
mouse_hover_icon_asb = 100 0 0
mouse_pressed_icon_asb = 100 3 0
scale_relative_to_dpi = 0
scale_relative_to_screen_height = 0

#-------------------------------------
# Taskbar
taskbar_mode = multi_desktop
taskbar_hide_if_empty = 0
taskbar_padding = 3 0 0
taskbar_background_id = 0
taskbar_active_background_id = 2
taskbar_name = 1
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 1
taskbar_name_padding = 10 0
taskbar_name_background_id = 1
taskbar_name_active_background_id = 1
taskbar_name_font = FontAwesome 14
taskbar_name_font_color = #828282 100
taskbar_name_active_font_color = #5294e2 100
taskbar_distribute_size = 1
taskbar_sort_order = none
task_align = center

#-------------------------------------
# Task
task_text = 0
task_icon = 0
task_centered = 0
urgent_nb_of_blink = 20
task_maximum_size = 35 26
task_padding = 2 2 8
task_font = Noto Sans 10
task_tooltip = 0
task_thumbnail = 1
task_thumbnail_size = 210
task_font_color = #f9f9f9 100
task_normal_font_color = #f9f9f9 100
task_active_font_color = #f9f9f9 100
task_urgent_font_color = #000000 100
task_iconified_font_color = #f9f9f9 100
task_icon_asb = 100 0 0
task_normal_icon_asb = 100 0 0
task_active_icon_asb = 100 25 25
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 100 0 0
task_background_id = 0
task_normal_background_id = 0
task_active_background_id = 0
task_urgent_background_id = 0
task_iconified_background_id = 0
mouse_left = toggle_iconify
mouse_middle = close
mouse_right = none
mouse_scroll_up = toggle
mouse_scroll_down = iconify

#-------------------------------------
# System tray (notification area)
systray_padding = 5 0 6
systray_background_id = 0
systray_sort = right2left
systray_icon_size = 24
systray_icon_asb = 100 0 0
systray_monitor = 1
systray_name_filter = 

#-------------------------------------
# Launcher
launcher_padding = 8 0 8
launcher_background_id = 0
launcher_icon_background_id = 1
launcher_icon_size = 28
launcher_icon_asb = 100 2 0
launcher_icon_theme_override = 0
startup_notifications = 1
launcher_tooltip = 0

#-------------------------------------
# Clock
time1_format = %a. %d. %b. %Y ~ %H:%M
time2_format = 
time1_font = Noto Sans Bold 11
time1_timezone = 
time2_timezone = 
time2_font = 
clock_font_color = #f9f9f9 100
clock_padding = 10 0
clock_background_id = 0
clock_tooltip = 
clock_tooltip_timezone = 
clock_lclick_command = gsimplecal
clock_rclick_command = gsimplecal
clock_mclick_command = 
clock_uwheel_command = 
clock_dwheel_command = 

#-------------------------------------
# Battery
battery_tooltip = 1
battery_low_status = 20
battery_low_cmd = 
battery_full_cmd = 
bat1_font = Noto Sans 10
bat2_font = Noto Sans 0
battery_font_color = #000000 100
bat1_format = 
bat2_format = 
battery_padding = 4 2
battery_background_id = 0
battery_hide = 101
battery_lclick_command = 
battery_rclick_command = xfce4-power-manager-settings
battery_mclick_command = 
battery_uwheel_command = 
battery_dwheel_command = 
ac_connected_cmd = 
ac_disconnected_cmd = 

#-------------------------------------
# Button 1
button = new
button_text =  Menu
button_tooltip = jgmenu
button_lclick_command = jgmenu
button_rclick_command = jgmenu
button_mclick_command = 
button_uwheel_command = 
button_dwheel_command = 
button_font = Roboto 11
button_font_color = #f9f9f9 100
button_padding = 10 0
button_background_id = 0
button_centered = 0
button_max_icon_size = 0

#-------------------------------------
# Button 2
button = new
button_icon = /usr/share/icons/MR-icons/tools.png
button_text = 
button_lclick_command = ~/.config/yad/System-Maintenance.sh
button_rclick_command = ~/.config/yad/System-Maintenance.sh
button_mclick_command = 
button_uwheel_command = 
button_dwheel_command = 
button_font_color = #000000 100
button_padding = 0 0
button_background_id = 0
button_centered = 0
button_max_icon_size = 32

#-------------------------------------
# Button 3
button = new
button_icon = /usr/share/icons/MR-icons/shutdown-icon.png
button_text = 
button_lclick_command = openbox --exit
button_rclick_command = openbox --exit
button_mclick_command = 
button_uwheel_command = 
button_dwheel_command = 
button_font = Noto Sans 11
button_font_color = #f5e3e3 100
button_padding = 0 0
button_background_id = 0
button_centered = 0
button_max_icon_size = 0

#-------------------------------------
# Tooltip
tooltip_show_timeout = 0.3
tooltip_hide_timeout = 0
tooltip_padding = 10 4
tooltip_background_id = 1
tooltip_font_color = #1e1e1e 100
tooltip_font = Noto Sans 10

tint2
I thought something like this. Ok. Thank you for your answer. So thank you for listing of your configs but what do you want me to do with them?

You may do whatever you wish with them… enjoy. @aroma1994