Add Transparecy to bar and alacritty

This commit is contained in:
stephan.raabe 2023-01-23 17:31:16 +01:00
parent 1bf88375f8
commit 60122d65ee
3 changed files with 15 additions and 9 deletions

View File

@ -68,7 +68,7 @@ window:
# #
# Window opacity as a floating point number from `0.0` to `1.0`. # Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque. # The value `0.0` is completely transparent and `1.0` is opaque.
opacity: 0.8 opacity: 0.7
# Startup Mode (changes require restart) # Startup Mode (changes require restart)
# #
@ -185,10 +185,11 @@ font:
#draw_bold_text_with_bright_colors: false #draw_bold_text_with_bright_colors: false
# Colors (Tomorrow Night) # Colors (Tomorrow Night)
#colors: colors:
# Default colors # Default colors
#primary: primary:
# background: '#1d1f21' # background: '#1d1f21'
background: '#000000'
# foreground: '#c5c8c6' # foreground: '#c5c8c6'
# Bright and dim foreground colors # Bright and dim foreground colors

View File

@ -103,7 +103,11 @@ for i in groups:
) )
layouts = [ layouts = [
layout.Columns(border_focus_stack=["#d75f5f", "#8f3d3d"], border_width=1, margin=10), layout.Columns(
border_focus_stack=["#ffffff", "#333333"],
border_width=1,
margin=10
),
layout.Max(), layout.Max(),
# Try more layouts by unleashing below layouts. # Try more layouts by unleashing below layouts.
# layout.Stack(num_stacks=2), # layout.Stack(num_stacks=2),
@ -129,7 +133,7 @@ screens = [
Screen( Screen(
top=bar.Bar( top=bar.Bar(
[ [
widget.CurrentLayout(), # widget.CurrentLayout(),
widget.GroupBox(), widget.GroupBox(),
widget.Prompt(), widget.Prompt(),
widget.WindowName(), widget.WindowName(),
@ -139,8 +143,8 @@ screens = [
}, },
name_transform=lambda name: name.upper(), name_transform=lambda name: name.upper(),
), ),
widget.TextBox("default config", name="default"), # widget.TextBox("default config", name="default"),
widget.TextBox("Press <M-r> to spawn", foreground="#d75f5f"), # widget.TextBox("Press <M-r> to spawn", foreground="#d75f5f"),
# NB Systray is incompatible with Wayland, consider using StatusNotifier instead # NB Systray is incompatible with Wayland, consider using StatusNotifier instead
# widget.StatusNotifier(), # widget.StatusNotifier(),
widget.Systray(), widget.Systray(),
@ -148,8 +152,9 @@ screens = [
widget.QuickExit(), widget.QuickExit(),
], ],
24, 24,
# border_width=[2, 0, 2, 0], # Draw top and bottom borders opacity=0.7,
# border_color=["ff00ff", "000000", "ff00ff", "000000"] # Borders are magenta border_width=[2, 0, 2, 0], # Draw top and bottom borders
# border_color=["000000", "000000", "ffffff", "000000"] # Borders are magenta
), ),
), ),
] ]