#+TITLE: Polybar Configuration #+SETUPFILE: ./setup/org-setup-file.org #+PROPERTY: header-args :comments no #+PROPERTY: header-args+ :mkdirp yes #+PROPERTY: header-args+ :tangle ~/.config/polybar/config.ini * Colors #+begin_src conf [colors] bg = ${xrdb:background} red = ${xrdb:color1} green = ${xrdb:color2} yellow = ${xrdb:color3} blue = ${xrdb:color4} purple = ${xrdb:color5} aqua = ${xrdb:color6} gray = ${colors.color7} darkgray = ${colors.color8} darkred = ${xrdb:color9} darkgreen = ${xrdb:color10} darkyellow = ${xrdb:color11} darkblue = ${xrdb:color12} darkpurple = ${xrdb:color13} darkaqua = ${xrdb:color14} fg = ${xrdb:foreground} #+end_src * VM #+begin_src conf [global/wm] margin-top = 0 margin-bottom = 0 #+end_src * Top Bar #+BEGIN_SRC conf [bar/top] enable-ipc = true # override-redirect = false bottom = false fixed-center = false width = 100% height = 27 radius = 0.0 background = ${colors.bg} foreground = ${colors.fg} line-size = 2 border-size = 0 padding-left = 2 padding-right = 2 module-margin-left = 1 module-margin-right = 1 font-0 = Hack Nerd Font:style=Regular:pixelsize=10;1 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 modules-left = i3 xwindow modules-center = modules-right = pipewire music tunnel_homelab tunnel_esrf dunst lockscreen cursor unread_mail calendar timer battery date tray # wm-restack = i3 #+END_SRC * Tray #+begin_src conf [module/tray] type = internal/tray # format-margin = 8px tray-background = ${colors.bg} tray-spacing = 2px #+end_src * Show Windows Title #+BEGIN_SRC conf [module/xwindow] type = internal/xwindow label = %title:0:30:...% #+END_SRC * I3 - Information about workspaces and active one #+BEGIN_SRC conf [module/i3] type = internal/i3 enable-scroll = false wrapping-scroll = false #+END_SRC #+BEGIN_SRC conf format = index-sort = true #+END_SRC #+BEGIN_SRC conf label-mode-foreground = ${colors.bg} label-mode-background = ${colors.fg} label-mode-padding = 1 # focused = Active workspace on focused monitor label-focused = %icon% %index% label-focused-foreground = ${colors.fg} label-focused-background = ${colors.bg} label-focused-underline = ${colors.aqua} label-focused-padding = 1 # unfocused = Inactive workspace on any monitor label-unfocused = %icon% %index% label-unfocused-foreground = ${colors.fg} label-unfocused-background = ${colors.bg} label-unfocused-underline = ${colors.bg} label-unfocused-padding = 1 # visible = Active workspace on unfocused monitor label-visible = %icon% %index% label-visible-background = ${colors.bg} label-visible-underline = ${colors.aqua} label-visible-padding = 1 # urgent = Workspace with urgency hint set label-urgent = %icon% %index% label-urgent-background = ${colors.red} label-urgent-padding = 1 #+END_SRC * Backlight level #+BEGIN_SRC conf [module/xbacklight] type = internal/xbacklight format = ramp-0 =  ramp-1 =  ramp-2 =  ramp-3 =  ramp-4 =  ramp-5 =  ramp-6 =  ramp-7 =  ramp-8 =  ramp-9 =  ramp-10 =  ramp-11 =  #+END_SRC * CPU Usage #+BEGIN_SRC conf [module/cpu] type = internal/cpu interval = 2 format-prefix-foreground = ${colors.fg} format-underline = ${colors.bg} label = %{A1:$TERMINAL -e htop &:} %percentage:2%%%{A} #+END_SRC * Date #+BEGIN_SRC conf [module/date] type = internal/date interval = 1 # Open google calendar on left right date = %{A1:$TERMINAL --title khal -e ikhal &:} %d-%m%{A} date-alt = "%{A1:$TERMINAL --title khal -e ikhal &:} %d-%m-%Y%{A}" time =  %H:%M time-alt =  %H:%M:%S label = %date% %time% #+END_SRC * Music #+BEGIN_SRC conf [module/music] type = custom/script format-underline = ${colors.bg} format =