mako & bmenu: use transparent background
This commit is contained in:
parent
3830da7085
commit
5640769579
|
@ -1,7 +1,7 @@
|
||||||
# {{@@ header() @@}}
|
# {{@@ header() @@}}
|
||||||
font={{@@ font.interface @@}} 12
|
font={{@@ font.interface @@}} 12
|
||||||
text-color={{@@ color.txt @@}}
|
text-color={{@@ color.txt @@}}
|
||||||
background-color={{@@ color.bg @@}}
|
background-color={{@@ color.bg @@}}{{@@ opacity | clamp_to_hex @@}}
|
||||||
border-color={{@@ accent_color @@}}
|
border-color={{@@ accent_color @@}}
|
||||||
border-size=5
|
border-size=5
|
||||||
progress-color={{@@ accent_color @@}}
|
progress-color={{@@ accent_color @@}}
|
||||||
|
|
|
@ -21,35 +21,35 @@ fi
|
||||||
# s selected
|
# s selected
|
||||||
# sc scrollbar
|
# sc scrollbar
|
||||||
|
|
||||||
fn="{{@@ font.mono @@}} {{@@ font.size.small @@}}"
|
fn="{{@@ font.mono @@}} {{@@ font.size.small @@}}"
|
||||||
|
|
||||||
tb="{{@@ color.bg @@}}"
|
tb="{{@@ color.bg @@}}{{@@ opacity | clamp_to_hex @@}}"
|
||||||
tf="{{@@ accent_color @@}}"
|
tf="{{@@ accent_color @@}}"
|
||||||
|
|
||||||
fb="{{@@ color.bg @@}}"
|
fb="{{@@ color.bg @@}}{{@@ opacity | clamp_to_hex @@}}"
|
||||||
ff="{{@@ color.txt @@}}"
|
ff="{{@@ color.txt @@}}"
|
||||||
|
|
||||||
nb="{{@@ color.bg @@}}"
|
nb="{{@@ color.bg @@}}{{@@ opacity | clamp_to_hex @@}}"
|
||||||
nf="{{@@ color.txt @@}}"
|
nf="{{@@ color.txt @@}}"
|
||||||
|
|
||||||
hb="{{@@ color.bg_light @@}}"
|
hb="{{@@ color.bg_light @@}}"
|
||||||
hf="{{@@ accent_color @@}}"
|
hf="{{@@ accent_color @@}}"
|
||||||
|
|
||||||
#{%@@ if False @@%}#
|
#{%@@ if False @@%}#
|
||||||
# Hacks to allow runnning even if not templated
|
# Hacks to allow runnning even if not templated
|
||||||
fn="Fira Code 12"
|
fn="Fira Code 12"
|
||||||
|
|
||||||
tf="#D9534F"
|
tf="#D9534F"
|
||||||
tb="#202020"
|
tb="#202020"
|
||||||
|
|
||||||
ff="#ffffff"
|
ff="#ffffff"
|
||||||
fb="#202020"
|
fb="#202020"
|
||||||
|
|
||||||
nf="#ffffff"
|
nf="#ffffff"
|
||||||
nb="#202020"
|
nb="#202020"
|
||||||
|
|
||||||
hf="#D9534F"
|
hf="#D9534F"
|
||||||
hb="#404040"
|
hb="#404040"
|
||||||
#{%@@ endif @@%}#
|
#{%@@ endif @@%}#
|
||||||
|
|
||||||
bemenu \
|
bemenu \
|
||||||
|
|
6
funcs.py
6
funcs.py
|
@ -80,3 +80,9 @@ def darker(arg1, amount=0.75):
|
||||||
|
|
||||||
def lighter(arg1, amount=1.25):
|
def lighter(arg1, amount=1.25):
|
||||||
return color_mult(arg1, amount)
|
return color_mult(arg1, amount)
|
||||||
|
|
||||||
|
def as_hex(in_number):
|
||||||
|
return hex(int(in_number))[2:]
|
||||||
|
|
||||||
|
def clamp_to_hex(in_number):
|
||||||
|
return as_hex(in_number * 255)
|
||||||
|
|
Reference in New Issue