From 67c7567f719639340f5ce2eceedb70ad09b1f7d7 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 14 Oct 2024 20:39:34 +1100 Subject: [PATCH] feat: Add polybar --- .alacritty.toml | 5 +- .config/polybar/config.ini | 220 +++++++++++++++++++++++++++++++++++++ .zshrc | 17 ++- theme.omp.json | 18 +-- 4 files changed, 250 insertions(+), 10 deletions(-) create mode 100644 .config/polybar/config.ini diff --git a/.alacritty.toml b/.alacritty.toml index c5746d0..69ee54d 100644 --- a/.alacritty.toml +++ b/.alacritty.toml @@ -1,7 +1,7 @@ import = ["~/.config/alacritty/themes/themes/hyper.toml"] [shell] -program = "/home/nathan/.local/bin/zellij" +program = "/home/nathan/.cargo/bin/zellij" [env] TERM = "xterm-256color" @@ -10,12 +10,13 @@ shell = "zsh" [window] decorations = "none" -opacity = 1 +opacity = 5 blur = true # padding = { x = 10, y = 10 } [font] normal = { family = "Fira Code", style = "Regular" } +size = 6.5 [selection] save_to_clipboard = true diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini new file mode 100644 index 0000000..cfc5807 --- /dev/null +++ b/.config/polybar/config.ini @@ -0,0 +1,220 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; To learn more about how to configure Polybar +; go to https://github.com/polybar/polybar +; +; The README contains a lot of information +; +;========================================================== + +[colors] +background = #282A2E +background-alt = #373B41 +foreground = #C5C8C6 +primary = #F0C674 +secondary = #8ABEB7 +alert = #A54242 +disabled = #707880 + +[bar/default] +width = 100% +height = 24pt +radius = 6 + +; dpi = 96 + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3pt + +; border-size = 4pt +border-color = #000000 + +padding-left = 2 +padding-right = 2 + +module-margin = 1 + +separator = "" +separator-foreground = ${colors.disabled} + +font-0 = monospace;2 +; Import Firacode nerd fonts +font-1 = FiraCode Nerd Font Mono:size=15;2 +; Add Noto Color Emoji for emoji support +font-2 = Noto Color Emoji:fontformat=truetype:scale=10:antialias=false;2 + + +modules-left = music message +modules-right = filesystem memory cpu wlan tailscale eth battery bluetooth date + +cursor-click = pointer +cursor-scroll = ns-resize + +enable-ipc = true +bottom = false + +; wm-restack = generic +; wm-restack = bspwm +; wm-restack = i3 + +; override-redirect = true + +[module/message] +type = custom/ipc + +hook-0 = cat /tmp/message +hook-1 = echo "" > /tmp/message + +format = +format-padding = 5 +format-foreground = #FFFFFF +format-background = #000000 +label = %output% +click-left = "#message.hook.1" + +[module/music-controls] +type = custom/ipc + +hook-0 = echo "" +hook-1 = /home/nathan/scripts/music.sh p +hook-2 = /home/nathan/scripts/music.sh prev +hook-3 = /home/nathan/scripts/music.sh next +initial = 1 + +format =