From 4209b5d81e553b2235056e7c4243b664bdd0dc20 Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Fri, 3 Oct 2025 11:25:30 +0200 Subject: add: polybar config --- polybar/colors.ini | 22 ++++ polybar/config.ini | 50 ++++++++ polybar/modules.ini | 360 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 432 insertions(+) create mode 100644 polybar/colors.ini create mode 100644 polybar/config.ini create mode 100644 polybar/modules.ini diff --git a/polybar/colors.ini b/polybar/colors.ini new file mode 100644 index 0000000..f9ca8ae --- /dev/null +++ b/polybar/colors.ini @@ -0,0 +1,22 @@ +[gruvbox] +black= #1F1F28 +dark= #16161D +disabled= #727169 +red= #E82424 +red-alt= #C34043 +orange= #FFA066 +orange-mat=#FF5D62 +yellow= #FF9E3B +yellow-mat=#DCA561 +green= #76946A +green-alt=#2B3328 +aqua= #6A9589 +aqua-alt= #7AA89F +blue= #7E9CD8 +blue-alt=#658594 +grey= #727169 +dark-grey=#D27E99 +cream= #E6C384 +white= #DCD7BA +transparent= #00000000 +Stransparent= #CC000000 diff --git a/polybar/config.ini b/polybar/config.ini new file mode 100644 index 0000000..4b45376 --- /dev/null +++ b/polybar/config.ini @@ -0,0 +1,50 @@ +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ + +;========================================================== +; Importing files +include-file = ~/.config/polybar/modules.ini +include-file = ~/.config/polybar/colors.ini + +;========================================================== +[bar/i3_bar] +width = 100% +height = 30pt +radius = 0 +dpi = 180 +background = ${gruvbox.transparent} +foreground = ${gruvbox.aqua-alt} +border-size = 3pt +border-color = ${gruvbox.transparent} +module-margin = 0 +padding-left= 10pt +padding-right= 10pt +separator =" " +separator-foreground = ${gruvbox.transparent} + +font-0 = "tintin:size=16:weight=bold;3" +font-1 = Font Awesome 6 Free:pixelsize=11;2 +font-2 = Font Awesome 6 Free Solid:pixelsize=11;2 +font-3 = Font Awesome 6 Brands:pixelsize=11;2 +font-4 = "Cousine Nerd Font Mono:size=20:weight=bold;5" + +; Language Fonts +font-5 = "Noto Sans Bengali:size=11:weight=bold;1" +font-6 = "Noto Sans JP:size=11:weight=bold;1" +font-7 = "Noto Sans Arabic:size=11:weight=bold;1" + +modules-left = i3 xwindow tray +modules-center = time +modules-right = backlight battery pulseaudio +cursor-click = pointer +;cursor-scroll = ns-resize +enable-ipc = true +wm-restack = i3 + +locale = fr_FR.UTF-8 diff --git a/polybar/modules.ini b/polybar/modules.ini new file mode 100644 index 0000000..e4b6b37 --- /dev/null +++ b/polybar/modules.ini @@ -0,0 +1,360 @@ +;[module/rofi] +;type=custom/text +;content="󰋜" +;content-padding=3 +;click-left= exec rofi -show drun -disable-history -show-icons +;click-right= exec ~/.config/custom_scripts/power.sh +;content-foreground=${gruvbox.orange} +;content-background=${gruvbox.black} + +;========================================================== +[module/ss] +type=custom/text +content=" " +content-foreground=${gruvbox.black} +content-background=${gruvbox.black} + +;========================================================== +[module/i3] +type = internal/i3 +enable-scroll = false +show-urgent = true +strip-wsnumbers = true +index-sort = true +enable-click = true +fuzzy-match = true + +ws-icon-0 = 1;un +ws-icon-1 = 2;deux +ws-icon-2 = 3;trois +ws-icon-3 = 4;quatre +ws-icon-4 = 5;cinq +ws-icon-5 = 6;six +ws-icon-6 = 7;sept +ws-icon-7 = 8;huit +ws-icon-8 = 9;neuf +ws-icon-9 = 10;dix + +format = +label-mode = %mode% +label-mode-padding = 1 +label-mode-background = ${gruvbox.red-alt} +label-mode-foreground = ${gruvbox.white} + +label-focused = %icon% +label-focused-font = 5 +label-focused-foreground = ${gruvbox.aqua} +label-focused-background= ${gruvbox.transparent} +label-focused-padding = 2 + +label-unfocused = %icon% +label-unfocused-font = 5 +label-unfocused-foreground = ${gruvbox.blue} +label-unfocused-background= ${gruvbox.transparent} +label-unfocused-padding = 2 + +label-visible = %icon% +label-visible-padding = 2 + +label-urgent = %icon% +label-urgent-font = 5 +label-urgent-foreground = ${gruvbox.red} +label-urgent-background= ${gruvbox.black} +label-urgent-padding = 2 + +label-separator = "" +label-separator-padding = 0 +label-separator-foreground = ${gruvbox.transparent} + +;========================================================== +[module/xwindow] +type = internal/xwindow +format-prefix="  " +format-prefix-foreground=${gruvbox.green} +format-prefix-background=${gruvbox.black} + +label = %class% +label-maxlen=60 +label-foreground = ${gruvbox.aqua} +label-background= ${gruvbox.dark} +label-padding-left=2 +label-padding-right=2 + +;========================================================== +[module/time] +type = internal/date +interval = 1 +format-prefix = "  " +format-prefix-foreground=${gruvbox.aqua} +format-prefix-background=${gruvbox.black} + +date = %A %d %B %Y | %H:%M:%S +label =%date% +label-foreground = ${gruvbox.cream} +label-background= ${gruvbox.dark} +label-padding-left=2 +label-padding-right=2 + +;========================================================== +;[module/filesystem] +;type = internal/fs +;interval = 2 +;mount-0 = / +;format-mounted-prefix = "  " +;format-mounted-prefix-foreground = ${gruvbox.red} +;format-mounted-prefix-background= ${gruvbox.black} +; +;label-mounted = %free% +;label-unmounted = %mountpoint% not mounted +;label-mounted-foreground = ${gruvbox.cream} +;label-mounted-background= ${gruvbox.dark} +;label-mounted-padding-left=2 +;label-mounted-padding-right=2 + +;========================================================== +;[module/cpu] +;type = internal/cpu +;interval = 1 +;format-prefix = "  " +;format-prefix-foreground = ${gruvbox.orange-mat} +;format-prefix-background= ${gruvbox.black} +; +;label = %percentage%% +;label-foreground = ${gruvbox.cream} +;label-background= ${gruvbox.dark} +;label-padding-left=2 +;label-padding-right=2 + +;========================================================== +;[module/temp] +;type = internal/temperature +;interval = 0.5 +;thermal-zone = 0 +;hwmon-path = /sys/class/hwmon/hwmon1/temp1_input +;base-temperature = 20 +;warn-temperature = 70 +;units = true +; +;format =