From 0f30c2f543b8a1a8b805b0bed937395c789bf6d9 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Wed, 2 Nov 2022 10:09:32 +0200 Subject: [PATCH] Create polybar config :p --- .config/polybar/config.ini | 286 +++++++++++++++++++++++++++++++++++++ 1 file changed, 286 insertions(+) create mode 100644 .config/polybar/config.ini diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini new file mode 100644 index 0000000..01257ec --- /dev/null +++ b/.config/polybar/config.ini @@ -0,0 +1,286 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; By: Anas Elgarhy: @anas-elgarhy, @anaselgarhy +; +;========================================================== + +[colors] +background = #282A2E +background-alt = #373B41 +foreground = #C5C8C6 +primary = #F0C674 +secondary = #8ABEB7 +alert = #A54242 +disabled = #707880 + +[bar/example] +width = 100% +height = 20pt +radius = 6 + +; dpi = 96 + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3pt + +border-size = 2pt +border-color = #00000000 + +padding-left = 0 +padding-right = 1 + +module-margin = 1 + +separator = | +separator-foreground = ${colors.disabled} + +font-0 = "FiraCode Nerd Font:size=13;0" +; https://github.com/polybar/polybar/wiki/Known-Issues#huge-emojis +font-1 = "NotoColorEmoji:scale=10;1" + +modules-left = xworkspaces xwindow +modules-right = pulseaudio xkeyboard memory cpu backlight battery date + +cursor-click = pointer +cursor-scroll = ns-resize + +enable-ipc = true + +tray-position = right + +; wm-restack = generic +wm-restack = bspwm +; wm-restack = i3 + +; override-redirect = true + +[module/xworkspaces] +type = internal/xworkspaces + +label-active = %name% +label-active-background = ${colors.background-alt} +label-active-underline= ${colors.primary} +label-active-padding = 1 + +label-occupied = %name% +label-occupied-padding = 1 + +label-urgent = %name% +label-urgent-background = ${colors.alert} +label-urgent-padding = 1 + +label-empty = %name% +label-empty-foreground = ${colors.disabled} +label-empty-padding = 1 + +[module/xwindow] +type = internal/xwindow +label = %title:0:60:...% + +[module/pulseaudio] +type = internal/pulseaudio + +label-muted = 🔇 muted +label-muted-foreground = #666 + +; Only applies if is used +ramp-volume-0 = 🔈 +ramp-volume-1 = 🔉 +ramp-volume-2 = 🔊 + +; Right and Middle click +click-right = pavucontrol + +format-volume-prefix-foreground = ${colors.primary} +format-volume = + +label-volume = %percentage%% + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +label-layout = %layout% +label-layout-foreground = ${colors.primary} + +label-indicator-padding = 2 +label-indicator-margin = 1 +label-indicator-foreground = ${colors.background} +label-indicator-background = ${colors.secondary} + +[module/memory] +type = internal/memory +interval = 2 +format-prefix = "RAM " +format-prefix-foreground = ${colors.primary} +label = %percentage_used:2%% + +[module/cpu] +type = internal/cpu +interval = 2 +format-prefix = "CPU " +format-prefix-foreground = ${colors.primary} +label = %percentage:2%% + +[module/backlight] +type = internal/backlight + +; Use the following command to list available cards: +; $ ls -1 /sys/class/backlight/ +card = nvidia_0 + +; Use the `/sys/class/backlight/.../actual-brightness` file +; rather than the regular `brightness` file. +; Defaults to true unless the specified card is an amdgpu backlight. +; New in version 3.6.0 +use-actual-brightness = true + +; Available tags: +;