Skip to content

Instantly share code, notes, and snippets.

@ghifarit53
Last active December 16, 2023 01:09
Show Gist options
  • Save ghifarit53/29125cd6099eaea2eb1a1311a4ea2df8 to your computer and use it in GitHub Desktop.
Save ghifarit53/29125cd6099eaea2eb1a1311a4ea2df8 to your computer and use it in GitHub Desktop.
[i3] big sur like polybar style

macOS Big Sur on Linux!

bigsurlinux

to replicate the bar and the blur effect, you'll need

  • polybar
  • fontawesome and sf pro text
  • compton tryone fork (you can use picom too, but i don't know if the config is compatible)

you can adjust the bar opacity by editing the number in the bar background color (0-100)

opacity-rule = [
"99:class_g = 'polybar'"
];
backend = "glx";
blur-background = true;
blur-method = "kawase";
blur-strength = 10;
fading = true;
fade-delta = 5.0;
# Shadows
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 5;
shadow-offset-x = -2;
shadow-offset-y = -2;
shadow-opacity = 0.15;
wintypes:
{
full-shadow = true;
};
[bar/mainbar]
monitor = "eDP-1"
background = #20ffffff
foreground = #ffffff
font-0 = SF Pro Text:style=Medium:pixelsize=11;2
font-1 = Font Awesome 5 Free Solid:style=Regular:size=9;2
font-2 = Font Awesome 5 Brands:style=Regular:size=13;2
height = 24
line-size = 2
modules-left = apple i3
modules-right = battery network redshift datetime
padding = 3
module-margin = 1.5
[module/apple]
type = custom/text
content = 
[module/i3]
type = internal/i3
label-focused-underline = #FFFFFF
strip-wsnumber = true
label-mode-padding = 1
label-focused = %index%
label-unfocused = %index%
label-focused-padding = 1
label-unfocused-padding = 1
enable-scroll = false
reverse-scroll = false
[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP0
format-charging = <ramp-capacity>
format-discharging = <ramp-capacity>
ramp-capacity-0 = ""
ramp-capacity-1 = ""
ramp-capacity-2 = ""
ramp-capacity-3 = ""
ramp-capacity-4 = ""
[module/network]
type = internal/network
interface = wlp2s0
label-disconnected = " Not connected"
label-connected = ""
[module/redshift]
type = custom/text
content = 
click-left = redshift -O 4300
click-right = redshift -x
[module/datetime]
type = internal/date
date = %a %b %d %H:%M %p
@funketh
Copy link

funketh commented Jun 25, 2020

I think the right-click command for redshift should be redshift -x (lowercase x)

@funketh
Copy link

funketh commented Jun 25, 2020

Also the correct options for text modules are click-left and click-right (instead of left-click and right-click)
(https://github.com/polybar/polybar/wiki/Module:-text)

@ghifarit53
Copy link
Author

@funketh thanks for the corrections, i don't actually use redshift and its module anymore, will fix it now

@harish3124
Copy link

harish3124 commented Jul 17, 2021

Picom doesn't need these :

no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;

Other than these your good to go !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment