From c419b97b5cc61127ca2b7f9839a588c2ee3e7353 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Sat, 20 Jul 2024 20:22:03 +0400 Subject: directory name changed from dotfiles to config --- config/polybar/config.ini | 168 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100755 config/polybar/config.ini (limited to 'config/polybar/config.ini') diff --git a/config/polybar/config.ini b/config/polybar/config.ini new file mode 100755 index 0000000..14c4852 --- /dev/null +++ b/config/polybar/config.ini @@ -0,0 +1,168 @@ +# Compatiable with environmental color variables, fallback theme is set to be gruvbox + +[colors] +background_inactive = ${env:XDG_COLOR_INACTIVE_FOREGROUND:#a89984} +background = ${env:XDG_COLOR_BACKGROUND:#282828} +foreground = ${env:XDG_COLOR_FOREGROUND:#ebdbb2} +warning = ${env:XDG_COLOR_WARNING:#cc241d} +non_warning = ${env:XDG_COLOR_NON_WARNING:#458588} +interactive = ${env:XDG_COLOR_INTERACTIVE:#98971a} + +[bar/example] +width = 100% +height = 19 +; Change if using another window manager +wm-restack = bspwm + +; Align modules fixed to middle +fixed-center = true + +; Colors +background = ${colors.background} +foreground = ${colors.foreground} + +; Underline +line-size = 2 +line-color = ${colors.foreground} + +; Border +border-size = 1 +border-color = ${colors.background} + +; Padding +padding-left = 4 +padding-right = 4 + +; Margin of modules +module-margin-left = 2 +module-margin-right = 2 + +; Font +font-0 = "Roboto:size=11;3" + +; Modlues +; add "date" for clock +; beggining of modules-left is recommended for date module +modules-left = pulseaudio backlight +modules-center = bspwm +modules-right = battery cpu memory + +; Cursor actions +cursor-click = pointer +cursor-scroll = ns-resize +font-2 = "Noto Sans:size=11;1" + +[module/xworkspaces] +type = internal/xworkspaces +label = %title:0:60:...% +label-active-padding = 2 +label-urgent-padding = 2 +label-empty-padding = 2 +label-occupied-padding=2 + +label-urgent-foreground = ${colors.background_inactive} +label-occupied-foreground = ${colors.background_inactive} +label-active-font = 1 + +[module/bspwm] +type = internal/bspwm + +pin-workspaces = true +label-focused = %index% +label-focused-padding = 2 + +label-occupied = %index% +label-occupied-foreground = ${colors.background_inactive} +label-occupied-padding = 2 + +label-urgent = %index% +label-urgent-foreground = ${colors.warning} +label-urgent-padding = 2 + +label-empty = + +[module/battery] +type=internal/battery +full-at=99 +low-at=15 +battery=BAT0 +adapter=ADP1 +poll-interval=5 +format-discharging=Battery: +label-discharging=%percentage%% +format-charging=Charging: +label-charging=%percentage%% +format-discharging-foreground=${colors.background_inactive} +label-discharging-foreground=${colors.foreground} + +[module/backlight] +type = internal/backlight +card = intel_backlight +use-actual-brightness = true +enable-scroll = true +format = Brightness: